User Tools

Site Tools


blog:mbr_copy_backup_and_restore

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
blog:mbr_copy_backup_and_restore [2011-04-30 11:28] – created brbblog:mbr_copy_backup_and_restore [2011-04-30 11:32] (current) brb
Line 14: Line 14:
 dd command to copy MBR (identically sized partitions only) dd command to copy MBR (identically sized partitions only)
 Type dd command as follows: Type dd command as follows:
-  dd if=/dev/sda of=/dev/sdb bs=512 count=1+  dd if=/dev/sda of=/dev/sdb bs=512 count=1
 Above command will copy 512 bytes (MBR) from sda to sdb disk. This will only work if both discs have identically sized partitions. Above command will copy 512 bytes (MBR) from sda to sdb disk. This will only work if both discs have identically sized partitions.
 dd command for two discs with different size partitions dd command for two discs with different size partitions
Line 41: Line 41:
   # dd if=backup-sda.mbr of=/dev/sda   # dd if=backup-sda.mbr of=/dev/sda
   # sfdisk /dev/sda < backup-sda.sfdisk   # sfdisk /dev/sda < backup-sda.sfdisk
 +
 +Ref: http://www.cyberciti.biz/faq/howto-copy-mbr/
  
 {{tag>mbr linux}} {{tag>mbr linux}}
blog/mbr_copy_backup_and_restore.1304155736.txt.gz · Last modified: 2011-04-30 11:28 (external edit)