{"id":1305,"date":"2021-12-01T15:24:55","date_gmt":"2021-12-01T15:24:55","guid":{"rendered":"https:\/\/www.ridiculously-simple.com\/?p=1305"},"modified":"2026-04-16T11:43:10","modified_gmt":"2026-04-16T11:43:10","slug":"my-western-digital-my-book-live","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2021\/12\/01\/my-western-digital-my-book-live\/","title":{"rendered":"New firmware for my Western Digital &#8220;My Book Live&#8221; NAS storage device"},"content":{"rendered":"\n<p>The WD My Book Live is a NAS device based on Debian Linux, Since Debian stopped supporting this processor (APM82181), the device has received no updates and will probably never, so the next best thing to do in my opinion is to install openWRT.<\/p>\n\n\n\n<p><strong>WARNING<\/strong>: I recently got a second MyBook Live device, tried installing 23.05.0 but for some reason, i could not get networking to work, So i simply installed V21, then upgraded to 23&#8230; there was probably just something I was missing, but i could not be bothered figuring it out, this was a faster way&#8230;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Before you start<\/h2>\n\n\n\n<p>1- <strong>Only the first few paragraphs of this tutorial (STEPS 1 THROUGH 6) are the instructions you need<\/strong>, the remaining is just for extra reference and in short you don&#8217;t need to read it to have your device running, but <strong>I do recommend YOU SKIM THE WHOLE THING BEFORE YOU START<\/strong>.<br>2- This procedure requires you to take the disk out and install it on a PC to switch the firmware, then put it back<br>3- The upgrade will delete all your data, You will need to move your data that is already on your WD NAS drive somewhere else while the upgrade is ready.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 1: <\/strong>Move any existing data BEFORE TAKING APART.<\/h2>\n\n\n\n<p>Move any data you may have on the drive to a temporary location outside the NAS drive. this has to be done before taking the drive apart as the unconventional 64 kB block size of the disk will be nothing but trouble if you want to extract the data while mounting the disk to a linux PC for example.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Take the disk apart<\/h2>\n\n\n\n<p>I have included photos to help you do that, it is not rocket science.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Mount the disk on a linux PC (Windows and MAC should work)<\/h2>\n\n\n\n<p> and mount it to a linux PC (Windows might work with software such as etcher, but i have no guarantees).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Download the openWRT firmware<\/h2>\n\n\n\n<p>Go to the drive&#8217;s page on the openwrt website (<a href=\"https:\/\/openwrt.org\/toh\/western_digital\/mybooklive\">Here<\/a>), and download it to your Linux (Or windows) PC<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Write the firmware to the disk.<\/h2>\n\n\n\n<p>Decompress the file, then copy it to the drive with a command similar to the command below, but make 100% sure to replace sdx with your own drive designation<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> dd if=\/root\/wdsata.img of=\/dev\/sdx bs=64k<\/pre>\n\n\n\n<p>Write the firmware to the disk, overwriting it, and effectively loosing any data you did not backup in step 1<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Put the drive back in the enclosure<\/h2>\n\n\n\n<p>Nothing to say here, this is the reverse of step 2<\/p>\n\n\n\n<p>Once it is in the enclosure, you can not just connect it to your router as it in itself has this port defined as 192.168.1.1 and is serving dhcp !<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 8: Create the data partition<\/h2>\n\n\n\n<p>At this stage, your device will boot, but you will need to create\/expand the data partition, the partition that should not be overwritten when you upgrade the firmware for example.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">opkg update\nopkg install gdisk blkid openssh-sftp-server block-mount\ngdisk -i \/dev\/sda<\/pre>\n\n\n\n<p>As soon as gdisk opens, you may be presented with the following message, if so<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Found valid MBR and corrupt GPT. Which do you want to use? (Using the\nGPT MAY permit recovery of GPT data.)\n 1 - MBR\n 2 - GPT\n 3 - Create blank GPT<\/pre>\n\n\n\n<p id=\"block-4c312ec2-ad06-49d4-af5d-db807c9c3324\">Chose 1 to maintain the 2 partitions we have, Now hit the command (w) to write and confirm, then quit, gdisk has just switched your disk to GPT from MBR, now run gdisk again the same way (gdisk -i \/dev\/sda)<\/p>\n\n\n\n<p>n for new partition, accept the (3) for partition number, use the number (<strong>2097152<\/strong>) for alignment with 4K sector advanced format nearest to the 1GB mark<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mkfs.ext4 \/dev\/sda3\nmkdir \/share\nblkid \/dev\/sda3<\/pre>\n\n\n\n<p>You might find a file named fstab in \/etc, this is not the file that needs to be edited, the one you are seeking is in <strong>\/etc\/config\/fstab<\/strong> in my case, the UUID was as follows UUID=&#8221;9643bd00-f117-4074-a252-7ea30a5174e2&#8243; yours will certainly be different, so in my fstab i added the following lines near the end<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">config mount\noption target '\/share'\noption uuid '9643bd00-f117-4074-a252-7ea30a5174e2'\noption enabled '1'<\/pre>\n\n\n\n<p>Now, network sharing is what i was originally interested in when i got this unit, and it is why I am replacing it&#8217;s firmware, so to installing samba<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">opkg update &amp;&amp; opkg install samba4-server luci-app-samba4<\/pre>\n\n\n\n<p>Now, add the following line to \/etc\/passwd to add me as a user to the system<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yazeed:*:1000:65534:yazeed:\/var:\/bin\/false<\/pre>\n\n\n\n<p>Or, if you do not want to add the user manually, you can install the adduser package, and add the users through it like so<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">opkg install shadow-useradd\nuseradd yazeed\nUnfortunately, this command won't do and you will have to edit it in the passwords file\n<\/pre>\n\n\n\n<p>Now, for either method from the above, run the command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">passwd yazeed\nsmbpasswd -a yazeed\n<\/pre>\n\n\n\n<p>Now, since this is a NAS device, disk tools may be a good idea<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">opkg install hd-idle luci-app-hd-idle hdparm\n\nTo check if disk is spinning, try the command\nhdparm -C \/dev\/sda\nThe responce active\/idle means it is spinning<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">You are done.<\/h2>\n\n\n\n<h1 class=\"wp-block-heading\">FAQ<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Is the hardware and the new openWRT firmware compatible with my 8TB hard drive<\/h2>\n\n\n\n<p>Yes it is, I have found many people asking if the hardware supports drives over 2TB, the answer is yes, but you will have to use the GPT rather than the MBR (See steps above)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">about the original firmware<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">What is that vulnerability about<\/h2>\n\n\n\n<p>it comes from WDs cloud service, bottom line is that many devices were completely wiped remotely by malicious users and it is unknown if the data itself leaked, so yes, it is very serious<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the difference between quick factory restore and full factory restore<\/h2>\n\n\n\n<p>Quick factory restore is probably what you are looking for, the later seems to do a zero fill on the hard drive after performing a factory restore to disallow data retrieval (For example before you sell it), you can verify this by logging in using SSH, and by the fact that the tool tips state something to that effect.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Inspecting the device<\/h1>\n\n\n\n<p>To begin with, I logged in via SSH and inspected some stuff, to enable SSH access on the My Book Live original firmware, you will need to visit a page at a URL such as <strong><a href=\"http:\/\/mybooklive\/UI\/ssh\">http:\/\/mybooklive\/UI\/ssh<\/a><\/strong> or http:\/\/192.168.2.116\/UI\/ssh (Replace the IP with your own)<\/p>\n\n\n\n<p>the system is based on the following CPU<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">CPU\nprocessor       : 0\ncpu             : APM82181\nclock           : 800.000008MHz\nrevision        : 28.130 (pvr 12c4 1c82)\nbogomips        : 1600.00\ntimebase        : 800000008\nplatform        : PowerPC 44x Platform\nmodel           : amcc,apollo3g\nMemory          : 256 MB<\/pre>\n\n\n\n<p>With that out of the way, A look at \/etc\/apt\/sources.list revealed that it is a Debian Distro, the only problem with this is that debian stopped supporting this CPU some time ago, so you can&#8217;t go past Debian 8 (Jessie)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">deb http:\/\/ftp.us.debian.org\/debian\/ squeeze main\ndeb http:\/\/ftp.us.debian.org\/debian\/ wheezy main\n#deb-src http:\/\/ftp.us.debian.org\/debian\/ wheezy main\n#deb http:\/\/ftp.us.debian.org\/debian\/ sid main<\/pre>\n\n\n\n<p>Checking the disk info with hdparm revealed that the disk is a WDC WD20EARX-00PASB0, which is as i expected a Caviar Green (SMR disk)<\/p>\n\n\n\n<p>parted (The new fdisk so to speak) shows the following partition scheme for the existing system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Model: ATA WDC WD20EARX-00P (scsi)\nDisk \/dev\/sda: 2000GB\nSector size (logical\/physical): 512B\/512B\nPartition Table: gpt\n\nNumber  Start   End     Size    File system     Name     Flags\n 3      15.7MB  528MB   513MB   linux-swap(v1)  primary\n 1      528MB   2576MB  2048MB  ext3            primary  raid\n 2      2576MB  4624MB  2048MB  ext3            primary  raid\n 4      4624MB  2000GB  1996GB  ext4            primary\n\n<\/pre>\n\n\n\n<p>And a &#8220;df -h&#8221; reveals<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Filesystem            Size  Used Avail Use% Mounted on\n\/dev\/md0              1.9G  555M  1.3G  31% \/\ntmpfs                 5.0M     0  5.0M   0% \/lib\/init\/rw\nudev                   10M  6.7M  3.4M  67% \/dev\ntmpfs                 5.0M     0  5.0M   0% \/dev\/shm\ntmpfs                 100M  4.6M   96M   5% \/tmp\nramlog-tmpfs           20M  4.5M   16M  23% \/var\/log\n\/dev\/sda4             1.9T  2.1G  1.9T   1% \/DataVolume<\/pre>\n\n\n\n<p>A good alternative for this Gigabit Lan network attached storage might be openWRT, the same firmware I use for my routers !<\/p>\n\n\n\n<p>there are things you need to know in advance though, first of which is that changing the firmware will require you to delete everything on the drive ! as Western Digital have used an unconventional bunch of things such as a 64 kB block size !<\/p>\n\n\n\n<p>With that out of the way, you can skip down to the installing  openWRT about the upgrade process step by step (Including backing up your system), then come back to why etc&#8230;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What if i want to revert back to the WD software ?<\/h2>\n\n\n\n<p>That is indeed a good question, and to make it easy to do that, I have already backed up the entire disk to another while I am sure that i don&#8217;t want to go back. Also worth mentioning that the latest firmware on the WD website dates back to 2015 ! which is at the time of writing 6 years ago !<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where can i find the up to date openWRT distribution for this drive ?<\/h2>\n\n\n\n<p>OpenWRT has a page dedicated to this drive, both the single and the Duo here (<a href=\"https:\/\/openwrt.org\/toh\/western_digital\/mybooklive\">https:\/\/openwrt.org\/toh\/western_digital\/mybooklive<\/a>)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are the benefits of the NAS box (enclosure), why not just take out the hard drive and put it in a PC somewhere.<\/h2>\n\n\n\n<p>The Western Digital My Book Live has a super low power CPU, and when the disk is spun down, it consumes very little energy (Not a significant load to your UPS for example), It is also fan-less, so it is with the exception of the spinning drive when it is spinning silent, which is also a nice thing, So i would argue that keeping it by updating it&#8217;s software is a good idea<\/p>\n\n\n\n<p>Another reason is the amount of relevant software provided through openWRT packages, covering many more things than the original firmware (miniDLNA included).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Errors and resolution<\/h2>\n\n\n\n<p>1- I have this error that i have not resolved yet<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mv: setting attribute 'user.DOSATTRIB' for 'user.DOSATTRIB': Permission denied<\/pre>\n\n\n\n<p>2- The NAS box will not accept many files that windows creates such as Thumbs.db, to allow such files to be stored, This can easily be resolved by editing the samba template and commenting the &#8220;veto&#8221; files line, then make sure the config is regenerated from the template<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How do i keep the system up to date<\/h2>\n\n\n\n<p>If you come from a debian background, you would normally apt-get update then apt-get upgrade and that is that, in OpenWRT, there is no such upgrade command, the upgrade command in openWRT is meant to upgrade 1 package specified by name, so the solution is the following line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> opkg list-upgradable | cut -f 1 -d ' ' | xargs -r opkg upgrade<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The WD My Book Live is a NAS device based on Debian Linux, Since Debian stopped supporting this processor (APM82181), the device has received no updates and will probably never, so the next best thing to do in my opinion is to install openWRT. WARNING: I recently got a second MyBook Live device, tried installing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,8,135,1],"tags":[],"class_list":["post-1305","post","type-post","status-publish","format-standard","hentry","category-linux","category-networking","category-openwrt","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=1305"}],"version-history":[{"count":53,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1305\/revisions"}],"predecessor-version":[{"id":6223,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1305\/revisions\/6223"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=1305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=1305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=1305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}