The answer to your IT questions
 

Advanced search  • Search tips
My QUESTIONS & ANSWERS
 Question:

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

User Asked by: friending
Published on: 13:20/13.01.2009
Status: OPEN
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?
 Answers: 1
Sort by: /\ date | rating
Image Answer by: xpert
Posted on: 12:20/13.01.2009
Rating: 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
  
| Home | Hall of fame | Register | Log in | Terms of service | Help | Contacts |