How I replace the HDD of mycloud gen2

It’s a sata hdd not ssd, I had to use alternative way from fox’s site but saying that had to use formating from alternative steps and load files from step 6 as alternative steps would not work, this was using USB on pc and using them commands in step 6.

I had to use alternative way as I had no network on the cloud as didn’t show up in router. Could not download telnet too as had problems reading the website.

The commands were to find out why you get the no space messages.

I have tried the alternative solution to install hdd in my cloud gen2 to no avail. The files to copy across to hdd are the files in question on the tutorial in which are place on usb in a boot folder.

These are commands I’m using

Write it disk:
mkdir /mnt/boot
mount /dev/sda3 /mnt/boot
mkdir /mnt/boot/boot
cp uImage-wdrecovery /mnt/boot/boot/uImage
cp uRamdisk-wdrecovery /mnt/boot/boot/uRamdisk

Can anyone shed some light where I’m going wrong please.

First. Make sure that one has a second generation single bay My Cloud. Check the bottom of the My Cloud enclosure for the P/N number (example: (P/N: WDBCTLxxxxxxx-10). That P/N number should end with “-10”. If it does not end with “-10” then it is not a second generation single bay My Cloud and the following directions will not work.

One suggestion. Connect the new hard drive to the computer and use the computer’s disk management program to delete all existing partitions on the new hard drive that will be used in the My Cloud.

Alternative way:

Use Debian/Ubuntu or any other linux distro (USB/CD Live/Boot disk image)

The following directions use /dev/sda. Change to match your hard drive location. To do so list the disks on your system by entering the following in the Linux terminal window:

parted -l

If this is new disk or damaged (formatted) old, recreate partitions first. DO NOT change any of the mkpart primary values, enter them exactly in the Linux terminal window:

parted /dev/sda
mklabel gpt
mkpart primary 1049kB 2149MB
mkpart primary 8591MB -1MB
mkpart primary 7517MB 8591MB
mkpart primary 2149MB 3222MB
mkpart primary 3222MB 4296MB
mkpart primary 4296MB 6443MB
mkpart primary 6443MB 7517MB
q
mkswap /dev/sda1
mkfs.ext4 /dev/sda3

Download, on that same Linux computer using a web browser, the uImage-wdrecovery and uRamdisk-wdrecovery files from https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/Developing/:
https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/Developing/uImage-wdrecovery
https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/Developing/uRamdisk-wdrecovery

Make a directory called /mnt/boot on the Linux computer, mount the /dev/sda3 (ext4) partition from the new hard drive to the newly created /mnt/boot directory on the Linux computer. Then create a subdirectory called /mnt/boot/boot. This will create a subdirectory called boot on the mounted /dev/sda3 partition. Then copy (and rename in the process) the file uImage-wdrecovery to /mnt/boot/boot/uImage and the file uRamdisk-wdrecovery to /mnt/boot/boot/uRamdisk:

mkdir /mnt/boot
mount /dev/sda3 /mnt/boot
mkdir /mnt/boot/boot
cp uImage-wdrecovery /mnt/boot/boot/uImage
cp uRamdisk-wdrecovery /mnt/boot/boot/uRamdisk

Shut down Linux. Connect the hard drive to the My Cloud motherboard/back plane. Connect the Ethernet cable to the My Cloud Ethernet port and connect power to the My Cloud. The My Cloud should begin the boot process.

Wait a few minutes. Then open a browser window on the computer and go to the IP address for the My Cloud (or try http://wdmycloud or http://wdmycloud.local). If the “WD Recovery” page loads. In a separate browser window download the latest OS3 v2.x single bay My Cloud firmware file: https://downloads.wdc.com/nas/My_Cloud_GLCR_2.41.116.bin

Once downloaded return to the open browser window for the “WD Recovery” page and try to upload the My_Cloud_GLCR_2.41.116.bin file. Follow any on screen prompts during the upload process. If prompted to reboot the My Cloud, reboot the unit if the unit doesn’t reboot by itself after firmware uploaded.

After My Cloud reboot, wait a few minutes then try to open the My Cloud Dashboard via the My Cloud IP address or by http://wdmycloud or http://wdmycloud.local

Perform a System Only Restore through the My Cloud Dashboard > Settings > Utilities section.

Then log back into the My Cloud Dashboard after performing the System Only Restore and configure the My Cloud.

I will have another got at this tomorrow, I have been downloading all these files on win 10 pc an putting files onto memory stick then running Linux and running commands. Could this be my issues. Also when portioning hdd in linux I get red flag next to some of the partitions should this worry me? Yes definitely gen2

If you are downloading the files to a memory stick then inserting that memory stick into a computer running Linux, are you issuing the correct command (or have used a file manager) to move or copy the two files from the memory stick to the Linux computer? Or are you issuing the correct commands to navigate to the memory stick’s location in Linux where the files are located prior to issuing the cp uImage-wdrecovery /mnt/boot/boot/uImage and cp uRamdisk-wdrecovery /mnt/boot/boot/uRamdisk commands?

How are you partitioning the hard drive? The directions uses the Linux terminal window and the parted program. Or are you trying to use Gparted or similar graphical interface to partition the drive?

Hi guys,
I received a gen2 (-10 version) My Cloud single from a buddy of mine who moved the HDD to another enclosure with redundancy. Bought a brand new WD Red Plus 4TB HDD (WD40EFZX) and followed fox-exe instructions using the USB Flash drive. All is good up until I reboot. I’ve confirmed files are moved over correctly but once the device is rebooted (removing USB drive prior), nothing happens…just blinking red light. I cannot ping the IP and thus cannot pull up the web gui (have tried the IP, wdmycloud.local, wdmycloud.com) . If I reinsert the USB and power cycle it, I verified files are still there. Any idea why it can’t boot up?

Here are step 5 and 6 of what I’ve done:
5. Format HDD if need:
parted /dev/sda
mklabel gpt
mkpart primary 1049kB 2149MB
mkpart primary 8591MB -1MB
mkpart primary 7517MB 8591MB
mkpart primary 2149MB 3222MB
mkpart primary 3222MB 4296MB
mkpart primary 4296MB 6443MB
mkpart primary 6443MB 7517MB
q
mkswap /dev/sda1
mkfs.ext4 /dev/sda3

  1. Install original WD recovery and reboot:
    mkdir -p /mnt/usb /mnt/root
    mount /dev/sda3 /mnt/root
    mount /dev/sdb1 /mnt/usb
    cp -r /mnt/usb/boot /mnt/root/
    cd /mnt/root/boot
    rm uImage uRamdisk
    mv uImage-wdrecovery uImage
    mv uRamdisk-wdrecovery uRamdisk
    cd /
    umount /mnt/root /mnt/usb
    sync
    reboot -f

One other thing that I also attempted was to format /dev/sda2 with ext4 as suggested by someone above.

Confirmation the files are still in place:
/ # mkdir -p /mnt/boot
/ # mount /dev/sda3 /mnt/boot
/ # cd /mnt/boot/boot/
/mnt/boot/boot # ls
uImage uRamdisk
/mnt/boot/boot #

parted -l output:
/ # parted -l
Model: ATA WDC WD40EFZX-68A (scsi)
Disk /dev/sda: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 2149MB 2147MB linux-swap(v1) primary
4 2149MB 3222MB 1074MB primary
5 3222MB 4296MB 1074MB primary
6 4296MB 6443MB 2147MB primary
7 6443MB 7517MB 1074MB primary
3 7517MB 8591MB 1074MB ext4 primary
2 8591MB 4001GB 3992GB ext4 primary

Model: SanDisk Cruzer (scsi)
Disk /dev/sdb: 8000MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 16.4kB 8000MB 8000MB primary fat32

i download files on windows 10 system them unzip files then copy and paste onto memory stick STILL USING WIN10 which is formatted fat32,
i then shut down pc disconnect hdd which contains win10, i then attach hdd from my cloud to pc via sata cable then boot into Linux using a boot cd with ubuntu.
i then open terminal to format hdd and execute these commands,

parted -l to check drives
then
parted /dev/sda
mklabel gpt
mkpart primary 1049kB 2149MB
mkpart primary 8591MB -1MB
mkpart primary 7517MB 8591MB
mkpart primary 2149MB 3222MB
mkpart primary 3222MB 4296MB
mkpart primary 4296MB 6443MB
mkpart primary 6443MB 7517MB
q
mkswap /dev/sda1
mkfs.ext4 /dev/sda3

i then attempt to write files to disk using these commands with usb stick in usb 2.0 port

mkdir /mnt/boot
mount /dev/sda3 /mnt/boot
mkdir /mnt/boot/boot
cp uImage-wdrecovery /mnt/boot/boot/uImage
cp uRamdisk-wdrecovery /mnt/boot/boot/uRamdisk

which does not work i can only get them to write to disk by using this command

mkdir -p /mnt/usb /mnt/root
mount /dev/sda3 /mnt/root
mount /dev/sdb1 /mnt/usb
cp -r /mnt/usb/boot /mnt/root/
cd /mnt/root/boot
rm uImage uRamdisk
mv uImage-wdrecovery uImage
mv uRamdisk-wdrecovery uRamdisk
cd /
umount /mnt/root /mnt/usb
sync
reboot -f

which is the commands for usb attached to my cloud via telnet, my usb stick is attached to pc and not via telnet as i can not connect to my router with ip that way as will not work on network until them files are on hdd.

What is the specific error that you get at that point for each of those commands?

Do you get the error (what ever it is) if you use these commands instead?

sudo mkdir /mnt/boot
sudo mount /dev/sda3 /mnt/boot
sudo mkdir /mnt/boot/boot
sudo cp uImage-wdrecovery /mnt/boot/boot/uImage
sudo cp uRamdisk-wdrecovery /mnt/boot/boot/uRamdisk

Not sure if anyone else has reported similar issues that you are experiencing when using Fox’s second gen directions. Most seem to be able to successfully use the directions to restore their second gen single bay My Cloud.

i get same error even when using sudo, i see that some people are replacing there drives with wd red drives for nas systems could this be an issue im only using a 500gb drive that was removed from a pc?

Again, what is the specific error for each of the commands when entered.

i get… cp: cannot stat ‘uImage-wdrecovery’: no such file or directory

In the Terminal window are you changing to the location of the USB flash drive (and the files saved on it) prior to issuing the CP commands?

Ran a quick test and am not seeing the errors you are getting when setting up the hard drive. Using Ubuntu Live CD on a USB flash drive with a second USB flash drive containing the two uImage-wdrecovery and uRamdisk-wdrecovery files. Have a 500GB WD Green drive connected to a PC using a USB to SATA docking adapter. When Linux boots it mounts the second USB flash drive containing the two files.

Using the Linux Terminal, ran Parted (on the 500GB drive residing at /dev/sdc in my setup). Partitioned the drives per the Alternative way directions. Sometimes when using Parted one may get errors, for example:

(parted) mkpart primary 1049kB 2149MB
Warning: The resulting partition is not properly aligned for best performance:
2048s % 65535s != 0s
Ignore/Cancel?

Choosing Ignore (i) will, obviously, ignore the error and set the partition per the values used.

Moving through the rest of the steps in Terminal. I instruct Terminal to change to the USB flash drive containing the two files. One will need to know the mount/folder location for their USB flash drive in order to change to it in Terminal using the cd command.

ubuntu@ubuntu:~$ cd /media/ubuntu/Lexar\ 64GB/WDMyCloud-Gen2

To show that I’m in the correct location on the USB drive, I list the directory:

ubuntu@ubuntu:/media/ubuntu/Lexar 64GB/WDMyCloud-Gen2$ ls
uImage-wdrecovery  _Unbricking_en.txt  uRamdisk-wdrecovery

I typically need to use sudo when running some commands via the Ubuntu Terminal. So I proceed through the remaining steps. No errors indicated.

ubuntu@ubuntu:/media/ubuntu/Lexar 64GB/WDMyCloud-Gen2$ sudo mkdir /mnt/boot
ubuntu@ubuntu:/media/ubuntu/Lexar 64GB/WDMyCloud-Gen2$ sudo mount /dev/sdc3 /mnt/boot
ubuntu@ubuntu:/media/ubuntu/Lexar 64GB/WDMyCloud-Gen2$ sudo mkdir /mnt/boot/boot
ubuntu@ubuntu:/media/ubuntu/Lexar 64GB/WDMyCloud-Gen2$ sudo cp uImage-wdrecovery /mnt/boot/boot/uImage
ubuntu@ubuntu:/media/ubuntu/Lexar 64GB/WDMyCloud-Gen2$ sudo cp uRamdisk-wdrecovery /mnt/boot/boot/uRamdisk
ubuntu@ubuntu:/media/ubuntu/Lexar 64GB/WDMyCloud-Gen2$ cd /mnt/boot/boot
ubuntu@ubuntu:/mnt/boot/boot$ ls
uImage  uRamdisk
ubuntu@ubuntu:/mnt/boot/boot$ 

I don’t have a 2nd gen single bay My Cloud enclosure so I had no way to actually test the drive. However, for purposes of the discussion I didn’t have any issues or errors running the commands in Alternate way section indicated above.

FYI, for anyone else who’s having issues getting the GUI to come up after the reboot step…I ended up having to follow @luiz_Balestreri’s instructions, which are similar to fox_exe but copying over the 5 images to each partition (instead of the 2 files).

steps found here: How I replace the HDD of mycloud gen2 - #7 by Bennor

I don’t know what I’m doing wrong, the files are there as listed below, I did manage to get the CP to work when I removed one of the ‘boot’

Are you trying to unbrick a first generation single bay My Cloud or a second generation single bay My Cloud? The directions and files used ARE NOT the same. This thread discusses how to unbrick a second gen single bay My Cloud.
First gen single bay My Cloud P/N number ends with “-00”
Second gen single bay My Cloud P/N number ends with “-10”

They are single bay Gen1’s, I did a Gen2 previous using the Restore USB

Hi can someone help me? I’m trying to install a new disk on a mycloud gen2 because old one was broken. I already trieb several ways to instal the new disk, none worked. Last one was “Benorg” way and when i restast the new disk on the mycloud case and try to upload the firmware 2.41.116 i get a solid red light on the case and the upload stops.

Please help

User Fox_exe has a set of directions along with an alternate way set of directions for unbricking a single bay second generation (v2.x) My Cloud. Make sure to ensure one has a second gen single bay My Cloud by ensuring the P/N number on the bottom of the My Cloud enclosure ends with “-10”.

User Fox_exe repositories:
Main Repository: https://fox-exe.ru/WDMyCloud/
Second Gen: https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/

Second gen directions:
English: https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/_Unbricking_en.txt
Russian: https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/_Unbricking_ru.txt
usbrecovery.tar.gz: https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/usbrecovery.tar.gz
Alternate method files:
uImage-wdrecovery: https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/Developing/uImage-wdrecovery
uRamdisk-wdrecovery: https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/Developing/uRamdisk-wdrecovery
Latest second gen firmware: http://support.wdc.com/downloads.aspx?g=904

Generally any new desktop hard drive (non SSD type) should work. One should follow the steps exactly and not change any of the hard drive partition values.

One can use the search feature to find other ways to unbrick a second gen that include cloning the old drive to the new drive (assumes the old drive is still functioning).