Backup MBR

Master Boot Record (MBR):
The first 512 bytes of a storage device. The first 446 bytes are the boot loader; the second 64 bytes are the partition table; the last 2 bytes are the sentenal (OxAA55)

Example with /dev/sda
Backup:
dd  if=/dev/sda  of=TheBackUpFile  bs=512  count=1
# Make sure to use “bs=512 count=1”

Verification:
cmp /dev/sda TheBackupFile -n 512

Restoration:
dd if=TheBackUpFile of=/dev/sda bs=512 count=1
# Important: Make sure to use “bs=512 count=1”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s