0
I have created two image files (.img) of my two Hard disks which were RAID0. Now I need to copy MBR bytes from my image files in order copy them to mentioned hard disks, because I have re-created the RAID0 in those hard disks and now their MBR has faild.
Questions:
1) how can I Read and Copy MBR bytes from image files (.img)
2) Due to the RAID0 does it required MBR from both hard disks or just the first hard disk?
More info: My RAID0 had failed due a bluescreen crash and then I have created two images from my hard disks and then recreate the RAID0 but I has forgot to backup MBR before RAID0 recreation and its recreation caused the MBR changes. The only correct MBR (List of partitions) are in my image files.
Thank you
As I said I want to read-copy MBR from disk-image file instead of Hard Disk, so dd will not help me! unless it can read from img file. – Hamid – 2013-11-15T19:56:03.070
you can always use a file for the
– Frank Thomas – 2013-11-15T20:28:12.180if
parameter.dd if=/tmp/img1.img of=/tmp/mbr.bak bs=512 count=1
DD can be a dangerous tool if used incorrectly, so read up a little before proceeding. http://linux.die.net/man/1/dd