LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices

Rate this Entry

preserving the master boot record

Posted 11-21-2011 at 07:54 PM by neonsignal

The master boot record (MBR) from an unmounted drive can be preserved using dd. For example, boot from a live CD and copy the master boot record of the hard drive sda to a usb key mounted at /mnt/sdb1:
Code:
dd if=/dev/sda of=/mnt/sdb1/mbr.img bs=512 count=1
The MBR can be restored in a similar way. Be very cautious at this step, because the MBR typically holds the partition table and the initial boot loader stage, so a mistake can be difficult to recover from.
Code:
dd if=/mnt/sdb1/mbr.img of=/dev/sda bs=512 count=1
Posted in Uncategorized
Views 300 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 10:25 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration