AS ALWAYS, STAY AWAY UNLESS YOU KNOW WHAT YOU ARE DOING
I AM NOT RESPONSIBLE FOR YOU BRICKING YOUR MYBOOKLIVE
I have found a better way to create a custom firmware.
(GUIDE 1) Create a custom rootfs.img that is installable via the custom resetButtonAction.sh script
(GUIDE 2) Package the custom rootfs.img file to a .deb file that is installable via the dashboard
______________________________________________________________________________________________________
(GUIDE 1)
-
Install your mods to the MyBookLive from PuTTY, Terminal, and or WinSCP
-
Once you have your MyBookLive setup the way you want it, login via PuTTY and issue one of the following commands
dd if=/dev/md1 of=/DataVolume/shares/Public/rootfs.img
 If you get “dd: opening `/dev/md1’: No such file or directory” issue
dd if=/dev/md0 of=/DataVolume/shares/Public/rootfs.img
-
You should end up with a file that is 1,999,808 KB (2,047,803,392 bytes)
-
Copy rootfs.img from your Public share to your computer
-
Use the following Guide to write your custom OS to your drive at anytime to go back to the exact state it was in when you took the snapshot
http://community.wd.com/t5/My-Book-Live/GUIDE-How-to-write-a-custom-firmware-to-your-MBL/td-p/575563
- If you want to create a .deb file that is installable from the dashboard then please continue on to guide 2
If you have created any new shares since you created your custom firmware and ever need to restore your custom firmware, you will have to recreate those share names in the MyBookLive Dashboard to get back access to the data.
A reboot will be required to get the share usage numbers to show correctly
______________________________________________________________________________________________________
(GUIDE 2)
If you wish to create a custom installable .deb firmware file from the rootfs.img file you just created
-
Download WinSCP from http://winscp.net/download/winscp510setup.exe
-
Use WinSCP to SSH into the MBL and copy your custom rootfs.img to /CacheVolume
-
Download PuTTY from http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
-
SSH into the MBL from PuTTY and issue
MYBOOKLIVE:~# cd /CacheVolumeMYBOOKLIVE:/CacheVolume# md5sum rootfs.img > rootfs.md5MYBOOKLIVE:/CacheVolume#
-
This will create an .md5 checksum file which you will need for a successful firmware install from the dashboard
-
Open WinSCP again and go to /CacheVolume and right click and edit rootfs.md5 and delete the text “rootfs.img” after the hash
-
The hash needs to be followed by 2 spaces and a dash… See below for example
f98fb042f14bd14596881c6755b9a4a5 -
-
Close and save the edited file
-
Copy a factory MyBookLive deb to /CacheVolume using WinSCP
http://download.wdc.com/nas/apnc-023205-046-20120910.deb
-
SSH in with PuTTY again and
MyBookLive:~# cd /CacheVolume
MyBookLive:/CacheVolume# dpkg-deb -x apnc-023205-046-20120910.deb updateFile
MyBookLive:/CacheVolume# dpkg-deb -e apnc-023205-046-20120910.deb updateFile/DEBIAN -
This will extract a factory rootfs.img file and system control files to /CacheVolume/updateFile
-
SSH in with WinSCP again and go to /CacheVolume/updateFile/CacheVolume/upgrade and delete rootfs.img and rootfs.md5
-
Go back to /CacheVolume and move your modified rootfs.img and rootfs.md5 to /CacheVolume/updateFile/CacheVolume/upgrade
-
SSH into the MBL with PuTTY again
MyBookLive:~# cd /CacheVolumeMyBookLive:/CacheVolume# mkdir tmp
MyBookLive:/CacheVolume# export TMPDIR=/CacheVolume/tmp
MyBookLive:/CacheVolume# dpkg-deb -b updateFile updateFile.deb
dpkg-deb: building packageapnc' in
updateFile.deb’.
This will create a file called updateFile.deb in /CacheVolume
This process takes a good 15 minutes, but once it is done, PuTTY will come back to
MyBookLive:/CacheVolume#
- SSH in with WinSCP and copy updateFile.deb from /CacheVolume to your computer
This file can be installed right from the Dashboard
The Custom firmware file (02.32.05-046) will also install over the top of the same firmware version (02.32.05-046)
If you have created any new shares since you created your custom firmware and ever need to restore your custom firmware, you will have to recreate those share names in the MyBookLive Dashboard to get back access to the data.
A reboot will be required to get the share usage numbers to show correctly