Sorry but I did not need luck…just the correct answer which I found.
It is now up and running with a 320GB SATA drive.
I used the below instruction:
This instructions was written base on the Ubuntu 12.10 Live CD.
If you use a different distro, you might need to modify the script and intruction.
You’ll need to have the following programs installed: mdadm and parted.
Files included:
- freshInstall.sh - A Script to automate most of the commands.
- swap - Program to modify the endianess of the partition
You’ll also need to download the Latest Firmware from here
http://download.wdc.com/nas/apnc-024105-034-20130215.deb
The file is about 200mb and unpacks to 2GB so be sure you have enough room.
********************************************************
******************** INSTRUCTION **********************
********************************************************
-
Plug in your disk via SATA cable (external enclosures work also, but you might need to find drivers)
-
Boot into Ubuntu
-
Find out the name of your disk as it was detected by Ubuntu
In my case, it was /dev/sda as it was the only disk.
- Modify freshInstall.sh with the name of your disk if needed.
#Replace with your disk name
disk=/dev/sda
- Change the files premission to executable:
chmod +x freshInstall.sh
chmod +x swap
- Run freshInstall.sh
./freshInstall.sh
(Note if you get the following error, just select yes)
Warning: blocksize 65536 not usable on most systems.
mke2fs 1.42 (29-Nov-2011)
mkfs.
ext4: 65536-byte blocks too big for system (max 4096)
Proceed anyway? (y,n)
Once the script is done, there should be 4 partition.
- Extract the firmware file
ar x apnc-024105-034-20130215.deb
- Extract the file in which the image comes
tar --lzma -xvf data.tar.lzma
- navigate to the folder in which rootfs.img is located
cd CacheVolume/upgrade)
- Copy the image to your hard drive
dd if=rootfs.img of=/dev/md0 bs=1M
- When this is done, mount your filesystem
mkdir /mnt/rootfs
mount /dev/md0 /mnt/rootfs
- Copy the boot file to its folder
cp /mnt/rootfs/usr/local/share/bootmd0.scr /mnt/rootfs/boot/boot.scr
- Enable ssh
echo “enabled” > /mnt/rootfs/etc/nas/service_startup/ssh
- Sync and unmount:
sync
umount /mnt/rootfs
- Modify the endianness of the boot partitions
mdadm --stop /dev/md0
./swap /dev/sda1
./swap /dev/sda2
************************************************************
*************** END INSTRUCTION ****************************
************************************************************
The hard drive is now prepared and is ready to be inserted into the My Book Live.