Server Administration & Management

How to Backup Master Boot Record (MBR)

The MBR (master boot record) is located at cylinder 0, head 0, and sector 1. It’s the very first sector of the hard drive and it is 512 bytes in size. When the BIOS boot your machine it looks in the MBR for information on your partitions and the initial boot loader. The MBR contains a partition table and boot code. The boot code executes and then transfers the process to the boot loader program on your active (bootable) partition. We can take the backup of MBR either to a floppy disk or to a CDROM.

1. Backup to a floppy:

# dd if=/dev/hda  of=/dev/fd0  bs=512   count=1

2. Backup to CD:

First, create the MBR backup to a file on your hard drive.

# dd if=/dev/hda of=mbr.bak bs=512 count=1

Now, burn the file you just created to CDR.

January 27, 2012 - Posted by | Tips & Tricks, Unix/Linux | , , ,

No comments yet.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: