Backup Images Of MyBook (MyBook Live At End Of Page)

Discuss this here

Before starting, the MBR included in the files are incorrect, for the mbr, please use the link at the bottom of this post.

What is this
These are backups of a brand new, never booted, Western Digital MyBook World Edition 500GB (single drive not II) Since the only way people as of creating these have to restore a bricked MB WE is to rebuild a Debian edition using the sources available which takes a long time and is confusing to many. I decided to open up an brand new one and rip the hard disk images, partition table, master boot record, and complete file systems keeping all permissions. The Firmware is 01.01.18. I used System Rescue CD, to obtain access to the drives. Running PartImage fails, so I used DD.


Disclaimer
I have not tested that these work to restore a bricked system or if they will work on other sizes or the two disk version. So in essence, you screw it up by using any part of this… it's your fault, I take no blame. I would suggest you have Linux knowledge prior to using or attempting to use these. Of course, if you took the risk of hacking your MyBook World, then you should have already known this. I guestimate that these should be able to recreate a fresh out of the box MyBook World Edition. I am not your tech support, so don't try to contact me for it. Post to the forum, and if I can I will try to help.


Conversion Table from Mounted Drive to Actual WD FS

Name Partition Type Partition Size File System Mounted On
sda1 ext3fs 2.80 GiB /dev/root and rootfs /
sda2 swap (v1) 101.98 MiB
sda3 ext3fs 964.84 MiB /dev/md3 /var
sda4 ext3fs 461.89 GiB /dev/md4 /shares/internal

Files
- Master Boot Record -

  • SDA_MBR

This was acquired by running "dd if=/dev/sda of=sda_mbr bs=512 count=1"
You would restore this by "dd if=sda_mbr of=/dev/sda bs=512 count=1"

- Partition Table -

  • SDA_PTAB

This was acquired by running "sfdisk -d /dev/sda > sda_ptable"
You would restore this by "sfdisk /dev/sda < sda_ptable"

- BitByBit Disk Copies -
(These are exact copies of the partitions and will extract to be the partition size)

  • SDA1_IMA.BZ2
  • SDA2_IMA.BZ2
  • SDA3_IMA.BZ2
  • SDA4_IMA.BZ2

These were acquired by running "dd if=/dev/sda1 | bzip2 > sda1_image.bz2" on each partition where sda1 is sda1-sda4
You would restore this by "dd if=sda1_ima of=/dev/sda1", however since I piped them out as bzip2 files you will need to pipe in the std out of bzip into dd. I can't remember the command line options at this time.
WARNING: SDA4_IMA.BZ2 will extract to 461.89 GiB, as each file will extract to its original partition size.

- File System Dump Containing Permissions -
(These contain the file system for each partition while keeping full fs permissions)

  • SDA1FILE.TAR.gz
  • SDA3FILE.TAR.gz
  • SDA4FILE.TAR.gz

This is acquired by mounting each partition as read-only as ext3 and tar/gzipping them with permissions. I can't quite remember which command options I did at the time.
You would restore these by mounting the partition and just extracting and writing over your files in your partition as root. You may need to delete other files you have created that are not in the archive, especially in your init.d.
You can also grab the files you may have corrupted individually as this is a copy of the files and structure. When mounting the FS you need to specify the type as ext3. Auto will detect the raid configuration and is unable to mount.


File Downloads
The files are packaged as 7Zip Archives, use 7-Zip or WinRar

Since I am not positive about storing these files and Western Digital's EULA, I posted them on rapidshare.

Please mirror and post here. Posting back to rapidshare is pointless unless you reencode them in another compression format, as once a file is deleted, so is it's hash.


This first link is probably the one everyone will probably use. It contains the file structures (with the files) with the mbr and partition table.

  • SDA1FILE.TAR.gz
  • SDA3FILE.TAR.gz
  • SDA4FILE.TAR.gz
  • SDA_MBR
  • SDA_PTAB
  • ReadMe.pdf
  • ReadMe.txt

WD_MYBOOK_WE_500GB_FILE.7z (59MiB) - DEAD LINK, RE-UPLOAD PLEASE


This link will probably not be used by many. It contains the raw disk images with the mbr and partition table.

  • SDA1_IMA.BZ2
  • SDA2_IMA.BZ2
  • SDA3_IMA.BZ2
  • SDA4_IMA.BZ2
  • SDA_MBR
  • SDA_PTAB
  • ReadMe.pdf
  • ReadMe.txt

WARNING: These expand to the 500GB, mostly of empty space.
WD_MYBOOK_WE_500GB_IMA.7z (57MiB) - DEAD LINK, RE-UPLOAD PLEASE

I forgot to include SDA3_IMA.BZ2… please get it from here: SDA3_IMA.BZ2 (19k)- DEAD LINK, REUPLOAD PLEASE


The Master Boot Record of the above files might be wrong. It is probably from a /dev/hda device since this paramater was also used in the description and the MD5 sum was not the same as that of another MyBook WE 500GB device (see discussion in forum). Added to this page is a separate sda_mbr file from an out of the box 500GB harddisk from a WD MyBook WE 500GB firmware 01.01.18. (md5sum sda_mbr : be250799bf981aec0fc38a76b5a404b7_.
sda_mbr

(Since wikidot tells browsers this is a text file, please save the file directly from the link or use wget to download it.)


It is possible to restore a bricked MBWE from these files. A step-by-step guide to how I did mine:

  1. Download the "Image" files from above (the one ending in IMA).
  2. Decompress the "7z" file into a new folder, and transfer these over to your Linux box somewhere.
  3. Attach the S-ATA drive from the MBWE to the Linux system (some older systems will require drivers, etc., for S-ATA, but certainly OpenSuse10.3 supports common adapters right from the install DVD). You will probably find using dmesg that it is named sda or similar.
  4. use fdisk to alter the partition types to 83 - this allows them to be mounted and read. Make NO other changes using fdisk. You may need to reboot the system at this point as the types have changed. If data recovery from the data partition is your objective, you may well be able to do this at this point by mounting /dev/sda4 (or whatever it's called in your system)
  5. if you need to replace the MBR of the disk, do it now, as described in the readme within the archive above.
  6. transfer the image from the downloaded file to the appropriate partition - on mine I only needed to replace sda1 (it was corrupted and wouldn't boot), but you may need to do all 4. Use a command such as this one: bzip2 -cd SDA1_IMA.BZ2 | dd of=/dev/sda1 (-c is to force stdout and d is to force decompression. Then it is just passed to dd that writes bit by bit into the partition) Remember to make sure that you're writing to the correct disk (as seen in dmesg above), and that you're using the correct input file and output partition.
  7. Once you have done that for the partitions you need, use fdisk to alter the partition types back to fd (linux raid), and save the changes back to the disk.
  8. Shut the system down, refit the drive to the MBWE and you should have a "fresh" MBWE ready to boot.

I used this last MBR (be250799bf981aec0fc38a76b5a404b7) to restore my bricked WD (v01.01.18). However, since the MBR was not the problem anyway I also had to restore the whole sda1 from the bit by bit copy. Here's the command I used as it is not given here:

bzip2 -cd SDA1_IMA.BZ2 | dd of=/dev/sda1

-c is to force stdout and d is to force decompression. Then it is just passed to dd that writes bit by bit into the partition.

I can tell you that both files (MBR and SDA1_IMA.BZ2) did work smoothly.


Rather than use fdisk to change the partition types from fd to 83, why not just mount -t ext3 /dev/sda ~/RecoveryFolder?


Restored an empty replacement 500Gig HD from scratch with these. Used the SDA_MBR in the IMA.7z package first, it had a wrong partition table (just one active NTFS). My drive was located at /dev/sdb, booted with Knoppix.

fdisk -l

dd if=SDA_MBR of=/dev/sdb

Overwrote the table with the other file's partition table. The result was 4 primary linux raid autodetect partitions.

sfdisk /dev/sdb < SDA_PTAB

Started restoring the data to each partition by bitwise copying. Using a write buffer gave a nice speed boost.

bzip2 -cd SDA1_IMA.BZ2 | dd of=/dev/sdb1 bs=64k

Likewise with the other partitions (remember to get the additional SDA3 image!)

bzip2 -cd SDA2_IMA.BZ2 | dd of=/dev/sdb2 bs=64k
bzip2 -cd SDA3_IMA.BZ2 | dd of=/dev/sdb3 bs=64k
bzip2 -cd SDA4_IMA.BZ2 | dd of=/dev/sdb4 bs=64k

The drive still didn't boot, so downloaded the latest separate mbr file and restored it.

dd if=sda_mbr of=/dev/sdb bs=512 count=1

The drive still didn't work correctly though..

Restored the additional boot stage between the MBR and the first partition:

dd if=rescue.img of=/dev/sdb

Mind you, this also overwrote the MBR again, but with correct data for my 500GB setup. The rescue.img was found from this package.

Now the drive works.

In retrospect, what you'd really need to do is just restore the working rescue.img and the partitions like this:

  1. dd if=rescue.img of=/dev/sdb
  2. bzip2 -cd SDA1_IMA.BZ2 | dd of=/dev/sdb1 bs=64k
  3. bzip2 -cd SDA2_IMA.BZ2 | dd of=/dev/sdb2 bs=64k
  4. bzip2 -cd SDA3_IMA.BZ2 | dd of=/dev/sdb3 bs=64k
  5. bzip2 -cd SDA4_IMA.BZ2 | dd of=/dev/sdb4 bs=64k

..with the files rescue.img and sdaX_ima.bz2 fetched and unpacked beforehand in some knoppix-readable place (fat, ntfs and ext2 partitions are ok for instance).


Backup images for WD Mybook WE II (2TB)
Download:
1. *WD Mybook WE II (2TB)- DEAD LINK, REUPLOAD PLEASE

How to make a backup of your fresh Mybook Live 2TB

The partition table looks like this:

Model: ATA WDC WD20EARS-00M (scsi)
Disk /dev/sda: 2000398934016B
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Fl
3 15728640B 528482303B 512753664B linux-swap(v1) primary
1 528482304B 2576351231B 2047868928B ext3 primary ra
2 2576351232B 4624220159B 2047868928B ext3 primary ra
4 4624220160B 2000398843903B 1995774623744B ext4 primary

**enable ssh*
http://<IP-OF-YOUR-MYBOOK>/UI/ssh

connect with putty

default user=root
default password=welc0me

Copy MBR and Free space at beginning op the drive
->takes a few seconds - file will be 440 bytes<-

dd if=/dev/sda bs=15728640 count=1 | bzip2 > /DataVolume/shares/Public/SDA_MBR_FREESPACE.bz2

Copy partition 1 and 3
->can take a few hours<-

dd if=/dev/sda1 | bzip2 > /DataVolume/shares/Public/SDA1_IMA.bz2
dd if=/dev/sda2 | bzip2 > /DataVolume/shares/Public/SDA2_IMA.bz2

First command - SDA1_IMA.bz2 file:
3999744+0 records in
3999744+0 records out
2047868928 bytes (2.0 GB) copied, 2212.34 s, 926 kB/s

filesize = 595MB

Second command - SDA2_IMA.bz2:
3999744+0 records in
3999744+0 records out
2047868928 bytes (2.0 GB) copied, 1914.37 s, 1.1 MB/s

Then copy the backup to a save place outside your MyBook.
Now you can rebuild your MyBook live in case you made a mistake hacking your MyBook.
Feel free to update this page and to share your backup!

Backup images for any WD MyBook Live can be downloaded from here…

Part 01 http://www.share-online.biz/dl/RXR09NOLL6
Part 02 http://www.share-online.biz/dl/74HV9NOLG1
Part 03 http://www.share-online.biz/dl/P55PANOLPMK
Part 04 http://www.share-online.biz/dl/WTLIBNOLNXPO
Part 05 http://www.share-online.biz/dl/582CCNOLYGT
Part 06 http://www.share-online.biz/dl/ID95DNOLEG0K
Part 07 http://www.share-online.biz/dl/64JYDNOLPDT
Part 08 http://www.share-online.biz/dl/17ORENOLSAW0
Part 09 http://www.share-online.biz/dl/ISVKFNOL5XO
Part 10 http://www.share-online.biz/dl/E12EGNOL1U
Part 11 http://www.share-online.biz/dl/J787HNOLZGG
Part 12 http://www.share-online.biz/dl/ISG0INOLSD0Z
Part 13 http://www.share-online.biz/dl/3C3GINOL1DO

Information about the files:
Archive Size = 1.16GB (Split archive around 100MB)
Archive Format = RAR
Archived Files = SDA_MBR_FREESPACE.bz2, SDA1.bz2, SDA2.bz2, Partition.txt
Firmware = MyBookLive 01.04.06 : MioNet 4.3.1.12
MyBook Model = 3TB edition
The Partitions have been copied before the fist booting of the device, by physically remove of the the harddrive.
To recover follow the instructions of the MyBook WE… A little remark, I had to do a "Quick Factory Restore" from the Gui to make the data Partition work again after the restore.

Backup images from a fresh Mybook Live Duo

Backup images for any WD MyBook Live Duo can be downloaded from hereā€¦

SHARE-ONLINE
Part 1 http://www.share-online.biz/dl/JBX5064M7XB
Part 2 http://www.share-online.biz/dl/HUU9G64MLA3D
Part 3 http://www.share-online.biz/dl/FNTLM64M05UG * THIS FILE IS CORRUPTED. CANNOT EXTRACT *
Part 4 http://www.share-online.biz/dl/K3S5K64M7G

RAPIDSHARE [MIRROR]
Part 1 *mybookliveduo.part1.rar- DEAD LINK, RE-UPLOAD PLEASE
Part 2 *mybookliveduo.part2.rar- DEAD LINK, RE-UPLOAD PLEASE
Part 3 *mybookliveduo.part3.rar- DEAD LINK, RE-UPLOAD PLEASE
Part 4 *mybookliveduo.part4.rar- DEAD LINK, RE-UPLOAD PLEASE

How to restore using the files included
Warning! Check that the disk you want to overwrite is listed as "SDA"!!!

# Restore disk A
# ##############

# WARNING: Destroys all data on disk sda !!!

cd ~/mybookliveduo
# Restore free(?) space after MBR
bzip2 -cd diskA/SDA_MBR_FREESPACE.bz2 | dd of=/dev/sda

# Make new partitions, set correct label and flag
parted /dev/sda mklabel gpt
parted /dev/sda 'mkpart primary 528482304B 2576351231B' 'set 1 raid on'
parted /dev/sda 'mkpart primary 2576351232B 4624220159B' 'set 2 raid on'
parted /dev/sda 'mkpart primary 15728640B 528482303B' 'set 3 raid on'
parted /dev/sda 'mkpart primary 4624220160B -0' 'set 4 raid on'

# Restore MBR
bzip2 -cd diskA/SDA_MBR_FREESPACE.bz2 | dd of=/dev/sda bs=446 count=1

# Verify that everything still looks good.
parted /dev/sda print

# Restore partitions
bzip2 -cd diskA/SDA1_IMA.bz2 | dd of=/dev/sda1 bs=32M
bzip2 -cd diskA/SDA2_IMA.bz2 | dd of=/dev/sda2 bs=32M
bzip2 -cd diskA/SDA3_IMA.bz2 | dd of=/dev/sda3 bs=32M

# Restore disk B
# ##############

# WARNING: Destroys all data on disk sda !!!

cd ~/mybookliveduo

# Restore free(?) space after MBR
bzip2 -cd diskB/SDA_MBR_FREESPACE.bz2 | dd of=/dev/sda

# Make new partitions, set correct label and flag
parted /dev/sda mklabel gpt
parted /dev/sda 'mkpart primary 528482304B 2576351231B' 'set 1 raid on'
parted /dev/sda 'mkpart primary 2576351232B 4624220159B' 'set 2 raid on'
parted /dev/sda 'mkpart primary 15728640B 528482303B' 'set 3 raid on'
parted /dev/sda 'mkpart primary 4624220160B -0' 'set 4 raid on'

# Restore MBR
bzip2 -cd diskB/SDA_MBR_FREESPACE.bz2 | dd of=/dev/sda bs=446 count=1

# Verify that everything still looks good.
parted /dev/sda print

# Restore partitions
bzip2 -cd diskB/SDA1_IMA.bz2 | dd of=/dev/sda1 bs=32M
bzip2 -cd diskB/SDA2_IMA.bz2 | dd of=/dev/sda2 bs=32M
bzip2 -cd diskB/SDA3_IMA.bz2 | dd of=/dev/sda3 bs=32M

#######################################################
# Put the HDD's in the MBL Duo, and connect the Power #
#######################################################

# Set up SSH and log in
# #####################
#1. Open a Browser
#2. http://mybookliveduo/UI/ssh
#3. Enable SSH
#4. ssh root@mybookliveduo
#4a. Windows... download Putty, then connect to the device "mybookliveduo" using ssh
#5. Password "welc0me"
#6. Do what ever you want...

# WARNING! This will delete the data partition! ################################################
# WARNING! This will delete the data partition! ################################################
# WARNING! This will delete the data partition! ################################################
# WARNING! This will delete the data partition! ################################################

# If you just want to recover the root file system then this is not needed.

# Initialize a RAID array
#uncomment if needed  #mdadm --create -e 0 --verbose /dev/md3 --level=linear --raid-devices=2 /dev/sda4 /dev/sdb4

# do a quick factory reset
# Enjoy a MyBookLiveDuo with you new disks :-)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License