Difference between revisions of "HowTo Backup And Restore The Master Boot Record (MBR)"

From NST Wiki
Jump to navigationJump to search
Line 2: Line 2:
  
 
* '''Note:''' This '''HowTo''' assumes that the '''[http://en.wikipedia.org/wiki/Master_boot_record MBR]''' to '''backup''' and '''restore''' is located on: "'''sda'''".
 
* '''Note:''' This '''HowTo''' assumes that the '''[http://en.wikipedia.org/wiki/Master_boot_record MBR]''' to '''backup''' and '''restore''' is located on: "'''sda'''".
 +
 +
 +
* '''Backup the '''[http://en.wikipedia.org/wiki/Master_boot_record MBR]''':
 +
<div class="screen">
 +
<div class="userInput"><span class="prompt">[root@probe ~]# </span>dd if=/dev/sda of=/var/nst/backup/mbrbackup bs=512 count=1</div>
 +
<pre class="computerOutput">
 +
1+0 records in
 +
1+0 records out
 +
512 bytes (512 B) copied, 5.6701e-05 s, 9.0 MB/s
 +
[root@probe ~]#
 +
</pre>
 +
</div>

Revision as of 10:49, 26 October 2009

This HowTo shows how to use the dd utility to backup and restore the Master Boot Record (MBR).

  • Note: This HowTo assumes that the MBR to backup and restore is located on: "sda".


  • Backup the MBR:
[root@probe ~]# dd if=/dev/sda of=/var/nst/backup/mbrbackup bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 5.6701e-05 s, 9.0 MB/s
[root@probe ~]#