in Advanced 

Question preview

HomeQuestion preview:
Log in

Copy MBR record from /dev/sda to /dev/sdb in raid1?

Hi, I have running software raid1 on linux(debian). My harddrives are clean and in healthy state. The problem is that the drive /dev/sdb does not have the correct MBR record and thus is not bootable. Can I copy master boot record from drive /dev/sda to drive /dev/sdb ? What command should I use?
Do you know someone who could answer? Ask him for help
Answers: 1
Sort by: date rating
image xpert
14:20/13.01.2009
3 from possible 5 with 2 votes
Hi,
Well if hard drives has the same bytes and same partitions you can run this command to copy master boot record from sda to sdb:

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


Above command will copy first 512 bytes (MBR) from /dev/sda to /sdb/sdb disk.
Vote:
Please vote! Your opinion matters!
If you haven't found what you've looking for, post a question
Ask question
| Home | Hall of fame | Registration | Log in | Terms of service | Privacy policy | Help | Contacts | RSS |