Sometimes it happens, your Western Digital Mybook Live dies and you are left with a blinking blue/green light.  Perhaps it’s internal hard disk is making the famous click of death sound.  I won’t show you how to recover it, that’s an excercise for another time. Rebuild it by purchasing a new 3TB WD Red Drive. Here’s how to prepare the new disk, using Ubuntu linux.  I have copied the highlights of the famous debrick script.  Remove the bad disk from the WD MBL housing, and toss into a landfill or drop into your favourite ocean. Insert new 2TB sata disk in your favourite desktop PC’s SATA port, boot with Ubuntu USB drive, and then prepare the new WD disk using these steps.

You should boot from a Live CD or Live bootable USB, so that your disk is /dev/sda  I recommend using Ubuntu live CD on a USB drive
Assuming that your new disk is /dev/sda

parted /dev/sda --align optimal <<EOP
mklabel gpt
mkpart primary 528M  2576M
mkpart primary 2576M 4624M
mkpart primary 16M 528M
mkpart primary 4624M -1M
set 1 raid on
set 2 raid on
mdadm --create /dev/md0 --verbose --metadata=0.9 --raid-devices=2 --level=raid1 --run /dev/sda1 missing
mdadm /dev/md0 --add --verbose /dev/sda2
mdadm --wait /dev/md0
mkdir /mnt/raid1
mount /dev/md0 /mnt/raid1
umount /mnt/raid1 
dd if=firmware/rootfs_010507.img of=/dev/md0
mount /mnt/raid1
cp /mnt/raid1/usr/local/share/bootmd0.scr /mnt/raid1/boot/boot.scr
more /mnt/raid1/etc/nas/service_startup/ssh 
echo "enabled" > /mnt/raid1/etc/nas/service_startup/ssh  

mdadm --stop /dev/md0
/root/swap.x /dev/sda1
/root/swap.x /dev/sda2


At this point, you may insert the new WD back into the original WD Live chassis. But first shut it down with the shutdown command.


Leave a comment