New HDD in a gen2 MyCloud

I took a new 2TB disk drive. ran the following commands. Then put the disk into the gen2 MyCloud. It entered the
recovery feature. I gave it the latest firmware. After it recovered the system booted up. I was able to run the dashboard. But it showed 0MB. I didn’t mount /mnt/HD/HD_a2 partition. It also didn’t create the Public entry in the smb.conf. Tried several reboots 40 second reboot. The system boots fine. If I edit the smb.conf file and mount the /mnt/HD/HD_a2 partition. I can access the Public folder from my windows PC. Just don’t know why it doesn’t do this automatically on reboot.

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
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

If you haven’t already seen it you may want to review Fox_exe’s “unbricking” steps for Gen 2 single bay My Cloud’s:
https://drive.google.com/file/d/0B_6OlQ_H0PxVQVhnLVJOdDZISUU/view

It may help if your having trouble. Here are steps 5 and 6:

  1. 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

I used the alternate method. Down loaded the recovery files from Fox_exe’s repository. I’m going to
try this process again.

RAC