{"id":3465,"date":"2023-03-11T09:52:46","date_gmt":"2023-03-11T14:52:46","guid":{"rendered":"https:\/\/dft.wiki\/?p=3465"},"modified":"2026-06-08T16:55:44","modified_gmt":"2026-06-08T20:55:44","slug":"running-debian-11-on-wd-my-cloud-home","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=3465","title":{"rendered":"Running Debian 11 on WD MyCloud Home"},"content":{"rendered":"<p>If you own a Western Digital My Cloud Home, you might have noticed that product support ended mid-2023. If you&#8217;re looking for an alternative to keep using it safely, here are some reasons to take full control of your device:<\/p>\n<ul>\n<li>It no longer receives firmware updates or security patches, leaving your device exposed to known vulnerabilities. The number and severity of CVEs associated with this product is worth looking into.<\/li>\n<li>Its hard drive has died and a new image needs to be written to a replacement drive before powering it back on with a new HDD or SSD.\n<ul>\n<li>Note: an adapter may be required because the 3.5&#8243; HDD mounting holes are used to secure the PCB to the case:\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3472\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/Screenshot-from-2023-03-11-08-48-51.png\" alt=\"\" width=\"800\" height=\"301\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/Screenshot-from-2023-03-11-08-48-51.png 800w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/Screenshot-from-2023-03-11-08-48-51-300x113.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/Screenshot-from-2023-03-11-08-48-51-768x289.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li><strong>Note:<\/strong> I have never found a confirmed case of anyone successfully replacing the drive. Please reach out if you got it working.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>You want full control of your device and wish to secure it with Debian. There are many basic features WD will never support, such as:\n<ul>\n<li>Using a secondary network adapter or additional storage via USB 3,<\/li>\n<li>SSH access to run or schedule tasks,<\/li>\n<li>Installing virtually any application (web server, Active Directory, printer sharing, etc.)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>If you want to keep your device secure and up-to-date, follow along to install a clean Debian 11 image (built March 2023).<\/p>\n<hr \/>\n<p><strong>INSTALLATION PROCEDURE<\/strong><\/p>\n<p>Preparation<\/p>\n<ul>\n<li><strong>Backup<\/strong> your data from the NAS to another location (at your own risk),<\/li>\n<li><strong>Download<\/strong> the image file [<a href=\"https:\/\/r2.dft.wiki\/dft\/wd-my-cloud-home-debian-11.zip\">Link<\/a>] and decompress it (feel free to inspect the image before using it),<\/li>\n<li><strong>Format<\/strong> an 8+ GB USB drive as <strong>FAT32<\/strong> on MBR,<\/li>\n<li><strong>Copy the contents<\/strong> of the decompressed image to the drive.<\/li>\n<\/ul>\n<p>Execution<\/p>\n<ul>\n<li><strong>Power off<\/strong> the NAS,<\/li>\n<li><strong>Insert<\/strong> the USB drive,<\/li>\n<li><strong>Press and hold the Reset<\/strong> button (just above the USB port),<\/li>\n<li><strong>While holding the button, power on the device<\/strong> and keep it held until the light turns ON (about 30 seconds),<\/li>\n<li>Once released, <strong>keep pinging the NAS<\/strong> and watch for it to stop and then start responding again (this means it has rebooted),<\/li>\n<li><strong>Remove<\/strong> the USB drive.<\/li>\n<\/ul>\n<hr \/>\n<p><strong>FIRST ACCESS<\/strong><\/p>\n<pre>ssh root@<strong>IP<\/strong><\/pre>\n<p>Find the IP assigned to the NAS by checking your DHCP server, running an ARP scan, scanning port 22, etc.<\/p>\n<p>The default password is <code>password<\/code> &#8211; <strong><span style=\"color: red;\">Change it immediately!<\/span><\/strong><\/p>\n<p>Perform basic system hardening: create your own account, grant it <code>sudo<\/code> privileges, disable root SSH login, and enforce SSH key authentication.<\/p>\n<p>Then check for updates:<\/p>\n<pre>sudo apt update\r\nsudo apt upgrade -y\r\nsudo apt --purge autoremove -y\r\nsudo apt autoclean -y\r\nsudo apt dist-upgrade -y\r\nsudo apt --purge autoremove -y\r\nsudo apt autoclean -y<\/pre>\n<p>Always monitor mounted partitions with <code>df -h<\/code> as they are small and can fill up quickly. A workaround is to use symbolic links to redirect directories to the larger partition (<code>\/srv\/dev-sataa24\/<\/code>).<\/p>\n<hr \/>\n<p><strong>UNDERSTANDING THE NEW SYSTEM<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3468\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/wd-my-cloud-home.png\" alt=\"\" width=\"3248\" height=\"1221\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/wd-my-cloud-home.png 3248w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/wd-my-cloud-home-300x113.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/wd-my-cloud-home-1024x385.png 1024w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/wd-my-cloud-home-768x289.png 768w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/wd-my-cloud-home-1536x577.png 1536w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/wd-my-cloud-home-2048x770.png 2048w\" sizes=\"auto, (max-width: 3248px) 100vw, 3248px\" \/><\/p>\n<p>The single-bay 2 TB version (also available in higher capacities) has the following hardware specs:<\/p>\n<ul>\n<li>Storage: WD RED 3.5&#8243; HDD 2TB (usable <strong>&lt; 1.8 TB<\/strong>)<\/li>\n<li>Processor: <strong>ARM<\/strong> Cortex-A53 Quad-Core 1.4 GHz <strong>64<\/strong>-bit<\/li>\n<li>Memory: 1 GB DDR3 (usable <strong>730 MB<\/strong>)<\/li>\n<li>Network: <strong>Gigabit Ethernet<\/strong><\/li>\n<li>USB: One <strong>USB 3.0 Type-A<\/strong> port on the back<\/li>\n<li>Power: <strong>~7W<\/strong> (18W max) = approximately 60 kWh\/year<\/li>\n<\/ul>\n<p>The hard drive has 24 partitions (GPT):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3470\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/Screenshot-from-2023-03-10-14-16-47.png\" alt=\"\" width=\"466\" height=\"461\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/Screenshot-from-2023-03-10-14-16-47.png 638w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/03\/Screenshot-from-2023-03-10-14-16-47-300x297.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><code>sataa1<\/code> to <code>sataa19<\/code> and <code>sataa23<\/code> &#8211; Not used by the OS; leave these alone.<\/li>\n<li><code>sataa20<\/code> &#8211; 775 MB (12% used) &#8211; Root filesystem <code>\/<\/code><\/li>\n<li><code>sataa21<\/code> &#8211; 775 MB (67% used) &#8211; Mounted at <code>\/var<\/code><\/li>\n<li><code>sataa22<\/code> &#8211; 2 GB (73% used) &#8211; Mounted at <code>\/usr<\/code><\/li>\n<li><code>sataa24<\/code> &#8211; 1.8 TB &#8211; User storage, mounted at <code>\/srv\/dev-sataa24\/<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Note:<\/strong> Avoid modifying partitions 1 through 23, as doing so could break the recovery procedure. The last partition can be resized to use the full drive capacity.<\/p>\n<p>The USB drive image contains the following file structure:<\/p>\n<ul>\n<li><code>rescue.root.sata.cpio.gz_pad.img<\/code><\/li>\n<li><code>rescue.sata.dtb<\/code><\/li>\n<li><code>sata.uImage<\/code><\/li>\n<li><code>bluecore.audio<\/code><\/li>\n<li><code>omv\/20-root.tar.gz<\/code> &#8211; copied to <code>sataa20<\/code><\/li>\n<li><code>omv\/21-var.tar.gz<\/code> &#8211; copied to <code>sataa21<\/code><\/li>\n<li><code>omv\/22-usr.tar.gz<\/code> &#8211; copied to <code>sataa22<\/code><\/li>\n<li><code>omv\/bootConfig<\/code><\/li>\n<li><code>omv\/fwtable.bin<\/code><\/li>\n<li><code>omv\/rootfs.bin<\/code><\/li>\n<\/ul>\n<p>After the image is written, expected resource usage at idle:<\/p>\n<ul>\n<li>~20% RAM (~140 MB \/ 730 MB)<\/li>\n<li>&lt;5% CPU<\/li>\n<\/ul>\n<hr \/>\n<p><strong>HOW IT WAS BUILT<\/strong><\/p>\n<p>Credit to CyberTalk [<a href=\"https:\/\/cybertalk.io\/en\/install-debian-and-openmediavault-on-a-wd-my-cloud-home\/\">Link<\/a>], who originally released an image that replaces the WD OS with Debian 9 and OMV 4 pre-installed.<\/p>\n<p>Goals and Reflections<\/p>\n<ul>\n<li>OMV (OpenMediaVault) 4 (Arrakis) was released in 2018 and reached EOL in 2020.\n<ul>\n<li>Not all repositories were still available at the time of writing.<\/li>\n<\/ul>\n<\/li>\n<li>Debian 9 (Stretch) was released in 2017 and reached EOL in 2020.\n<ul>\n<li>There was not enough space to run <code>apt update<\/code>.<\/li>\n<\/ul>\n<\/li>\n<li>Not every use case needs OMV installed.\n<ul>\n<li>All OMV-related components were stripped before upgrading.<\/li>\n<li>The goal was to keep the base image lightweight so users can install only what they need.<\/li>\n<\/ul>\n<\/li>\n<li>In the event of a hard drive failure, a full image with the complete partition schema is available to write to a new drive [<a href=\"https:\/\/r2.dft.wiki\/dft\/sataa.img.gz\">Link<\/a>].\n<ul>\n<li>It is unclear whether the partition schema must be preserved (cloned) for the firmware to boot correctly.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Thanks again to the CyberTalk team for the base image. I only cleaned it up and updated it.<\/p>\n<hr \/>\n<p><strong>BONUS<\/strong><\/p>\n<ul>\n<li>Disable IPv6 if not needed,<\/li>\n<li>Update <code>\/etc\/fstab<\/code> to mount the large partition at your preferred location instead of <code>\/srv\/dev-sataa24<\/code>,<\/li>\n<li>Do not try to install UFW as it will not work as expected. Use <code>iptables<\/code> for firewall rules instead (if you know how to get UFW working, please reach out).\n<li>NFS was broken on the original Debian 9 image and I could not get it working on any version (if you know how, please reach out).\n<ul>\n<li>As an alternative, NFS Ganesha works:\n<ul>\n<li>\n<pre>sudo apt install nfs-ganesha nfs-ganesha-vfs -y\r\nsudo nano \/etc\/ganesha\/ganesha.conf<\/pre>\n<\/li>\n<li>\n<pre>EXPORT {\r\n  Export_Id = 1;\r\n  Path = \/PATH_TO_SHARE;\r\n  Pseudo = \/SHARE_NAME;\r\n  Access_Type = RW;\r\n  Squash = No_Root_Squash;\r\n  FSAL {\r\n    Name = VFS;\r\n  }\r\n  clients = 192.168.1.0\/24;\r\n}<\/pre>\n<\/li>\n<li>\n<pre>sudo systemctl restart nfs-ganesha\r\nsudo systemctl status nfs-ganesha<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>For local network file sharing, <code>samba<\/code> is available out of the box.<\/li>\n<li>For secure remote file storage, I recommend MinIO, an enterprise-grade AWS S3-compatible server [<a href=\"https:\/\/dft.wiki\/?p=3047\">Link<\/a>].<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>If you own a Western Digital My Cloud Home, you might have noticed that product [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-3465","post","type-post","status-publish","format-standard","hentry","category-linux","category-ccna"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3465"}],"version-history":[{"count":16,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3465\/revisions"}],"predecessor-version":[{"id":5646,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3465\/revisions\/5646"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}