Install Debian on WD My Cloud home

To everyone wondering about installing Debian (OMV) on MCH.
I tried it and it works .

@ahmedespo to reinstall a clean version on Debian:

  1. Turn off your MCH device and remove the power cord.
  2. Plug the USB containing the extracted files from wd-mycloud-home-debian.7z (link in the first post) in the MCH port.
  3. While holding the Reset button, plug in the power cord. (Don’t release the reset button, yet)
  4. The MCH light indicator will rapidly flash and than it will dim to a steady light. (This might take around 20 seconds maybe)
  5. Now you can release the reset button.

The process might take 3 to 5 minutes. The device will reboot after installation.
Don’t remove the USB until your device is discoverable on the network under “wdnas”.

8 Likes

Thank you for your work on this subject.

I’m new dealing with WD, but I have experience with Linux. I’m not sure about this, and I hope you can resolve my doubts:

Could I use this on my WD Home Duo?
Does the Debian OS remove all the WD previous OS?
Could I access to the device from a different network after installing?
Could I install a different cloud, as Nextcloud, in this Debian distribution?
Will this NextCloud accessible from a different network of my local?

If someone could guide me in this objective it will be more than welcome.

Thank you in advance.

My Cloud Home and My Cloud Home Duo are 2 different devices.
Since you are able to swap HDD on the Duo device, this may change the whole process of Installing Debian.

There’s this thread: Intalling Open Media Vault (alpha state) (finished, there is an easier method now, i keep the post for research data))
I have never tried the method, but It’s more likely to find the answers you are looking for there.

In case you want to Install Debian on a My Cloud Home device,
I’ll be more than happy in guiding you through the process and answering your questions.

2 Likes

Hello, you cannot use this on the Home Duo, they are different devices, Home Duo has a 4GB eMMC, that´s where the OS resides, I manage to make a rescue usb that boots into minimal linux (for rooting or make changes on the OS), the info is on one of my post, and right now i manage to install OMV but have limitations and is not an easy process. Right now i manage to repartition the eMMC and install debian 10, but i have an error trying to install OMV5, I working with someone from 4pda forum to try to make an script to make easier the installation process. By the way in this case if you want to install debian, you lose the original firmware, but you alway can recover it if you make a full backup of the eMMC

Thanks for your answer.

Recently I recover an old pogoplug V4 with a 16GB USB, with an Arch Linux and Nextcloud, but it is very very slow. That’s why I’m thinking about a similar process over the WD HDD.

If I can help you in this project, I will be glad to add my effort

Thank you again.

Thank you I will follow this link and see what happens.

Hi all, is there any way to install a clean Debian version on it (without OMV)?

What it the process (step-by-step) to generate the three zip (debian system split in three parts) inside the USB installer? Because I want to install Debian 10 (which seems to be archived for Home Cloud Duo Intalling Open Media Vault (alpha state) (finished, there is an easier method now, i keep the post for research data)))

Thanks.

Hello, you can make a clean root base with debootstrap. Right now debian 10 works very well, but have some problems installing things like docker. I manage to even edit the emmc to have more space, and even running the os from 1 of the sata disks, but the method that i publish is messy and dangerous if you don’t know what you are doing. Right know the original author of omv for the cloud home bought an home duo, and is working on it; (unlike me) he knows what he is doing and i’m confident that he can managed to make an easier and safer method to install debian

Does anyone know how to switch back to the original firmware? It’s fine also if that require to lose all data. If you know how to, please tell me.

Regards

How do you installed debian with debootstrap (never used, if you can tell me how to or give me a link to a guide or video will help thx)?

Best regards

Hello, right now I’m not home, i can share a clean image of debian when i’m there (after the weekend), i use this guide [BPI-R2] How to build an Ubuntu/Debian SD image from scratch - Banana Pi BPI-R2/BPI-R64/BPI-R3/BPI-R3 Mini - banana pi single board computer open source project official forum BPI team , for going back to original firmware, you only need to boot from usb with the rescue files, and use “busybox dd” command to copy your backup image to the emmc

(Talking about My Cloud Home - not duo)

Thank you very much for you answer. For the guide I’ll take a closer look later, because it’s the first time for me with this “unusual” installation. For restoring I didn’t get how to manage the backup I’ve made some months ago. I would be grateful if you could write a guide on how to restore the backup, also to help others because there is still no guide on how to do it.

Right now I’ve only a folder with this content:
01-fwtable.backup
04-rootfs_b.backup
06-ftd_b.backup
08-kernel_b.backup
11-afw_b.backup
bootConfig
data.backup.tar
system_b.backup.tar
and idk how to use dd (sorry for bothering you, but I didn’t found anything about this procedure, and now I’ve found someone who knows how to). Will this erase all my data?

Thanks you, very appreciated.

Sorry, I think that you were talking about the duo. For restoring your firmware look in to the files from fox_exe (Clean OS (Debian), OpenMediaVault and other "firmwares") there you have instructions on how to restore your original firmware (the installer makes an automated backup, the files that you have with a backup extension are what you need), and if you use the installer of omv, you automatically get debian + omv, if you only want debian enter with ssh and remove omv with apt command. I don’t know if you are going to loose any data, I only have the cloud home duo and works in a different way (mine has 4 gb emmc where the OS resides, and the cloud home with one disk has the OS on the sata disk)

Thanks you so much. Anyway the process of “making” the linux installer still be the same?

is not an installer, is a image. the installer is what forth32 make for installing omv on the home cloud (the files I think you use, and create that backup files). the method that I was talking about (debootstrap) is to make a clean image and maybe works on yours, you just need to tar the “var”, “usr” and “root”, and then untar it on the respective partitions (because you can not modified the partitions on the disk, unless you know how to edit the fwtable file), please be careful with all that i tell you, because i dont understand very much about this myself, if you want to know exactly what the installer do, and how you can revert or modify the OS, I recommend you decompress the rescue.root.sata.cpio.gz_pad.img (is a gz file) and view the rc file on the etc folder

This is very interesting. As I understood I can use debootstrap from the USB with rescue files which gives me a ssh. At that point we have to use the debootstrap to download the files into the right place. Another thing that I didn’t understand is bootloader (grub) and the kernel. It seems that we don’t have grub and the kernel is the prebuilt one taken (maybe modified) from android. I suppose that because while russing apt update I never saw any kernel update in 5/6 months.

is easier using debootstrap on and image on a pc, the usb rescue linux doesn’t have the necessary files to run debootstrap. you dont need to create boot partitions, change the kernel or install grub. in fact you can not (unless you understand about embedded systems and how to change the sources) I used that guide only to make the root filesystem, nothing more, with a working ssh to access the system. You can change only the base system (all the folders and config files on the root “/”) and adapt it to the partitions that you had (unless you know how to edit fwtable, or how to change your bootloader). The kernel, has to stay the same, and you can not use grub. in the cloud home the bases system i’m talking about is the “root” “var” and “usr” tar files that are inside debian installer, they are divided like that because of space and to maintain the partitions

So what all we have to do (just to know, in case in the future devs will leave development) is just create system folder using debootstrap (root, var, urs) and put them into usb with rescue files. Using ssh, delete those folder inside the MCH and than move files from usb folders to MCH partitions (which were just wiped)?

Maybe we should write a github page with details and how-to (step by step) for everyone interested in modding their MCH (single and duo). This will hopefully help users to solv problem themselves and help devs in future.

1 Like

something like that, but not exactly. Just look at the script that i tell you before, you just need to recreate the commands of the script depending of what you want, if you don’t know what a command do, just search on the web, all are basic linux commands from busybox

1 Like

I have to say that I’m much impressed by this conversation and the whole thread. It helped me transform the user-adverse WD My Cloud Home device into a neat useful NAS.

The only thing I don’t quite understand is why there’s so much Android stuff on the /DATA directory - do I need all that? Does it serve any purpose? Would be great to de-clutter the directory.
Thanks to all above!