Thanks a lot all who contributed this topic. I've carefully read all of the comments. You are really life saver. @eriffoorp I appreciate for the 250GB image.
My WD Mycloud was not booting after I ran apt-get update command.
However I've successfully recovered my WD Mycloud 3TB.
What I did:
Part 1 (Installing the image and test if boots the MyCloud)
- Installed gparted to raspberry pi
- Connected the WD HDD with SATA-USB dock.
- Unzipped the 250GB image to USB
- Umounted /dev/sda4 on raspberry
- DD'd the image to /dev/sda as it is mentioned in the first post
- Tried booting the hdd on mycloud and it is successfully booted. Blue light and UI accessible.
The next step is to extend the filesystem to 3TB. I tried gparted to resize the partition but I experienced it takes a few days or a week, this option is out of scope my maintanance.. FYI
It is better to remove the partition /dev/sd4 and re-create.
Follow Part 2
Part 2 (Extend the file system to 3TB)
- Removed the hdd from mycloud and attached to raspberry again over usb dock station
- Umounted /dev/sda4 (xterm)
- terminal window. (xterm)
Enter the following commands in the (parted) prompts:
File system type? [ext2]?
5860533130s ---> This is for 3TB
Warning: You requested a partition from 9428992s to ……………..
Is this acceptable to you
- Back to the command prompt.. (You are already the correct place after you type quit above)
- Type sync
For next step I used quick format rather then factory reset etc. on my cloud. This way is very short like a minute.
Part 3 (Format the /dev/sda4)
- Quick Format the partion (xterm)
mkfs -t ext4 -E lazy_itable_init=1 /dev/sda4
It is now 3TB.
Plug it the HDD to mycloud and run. The led should be blue and storage should be 2,9TB available.
Informative for non 3TB users:
To find the first and last sector gparted is your helper.
Right click the sda4 and unallocated, in information tab you will see the the first and last sectors.