A question came up recently in the comments on how to backup the master boot record MBR (see How To Detect A 64-bit Alureon Rootkit Infection for that). This article is going to review a handful of free applications for Windows that can be used to backup and restore the MBR, with no deeper technical knowledge required.
The master boot record is located in the first sector of a hard drive, and while it has different functions it is commonly known for finding bootable partitions in the partition tables and loading the boot sector which often is a boot loader.
A damaged or modified MBR can have the result that the operating systems cannot be loaded which is what the Alureon Rootkit caused on some operating systems.
A backup of the master boot record is often the best and most convenient way to repair the information so that the system can boot normally.
MBRFix is a command line tool for Windows, that can be used for lots of advanced commands that manipulate or process the MBR. Among the options is the ability to backup and restore the master boot record. The program comes as a 32-bit and 64-bit edition. Here are the commands needed to backup and restore the MBR:
MbrFix /drive 0 listpartitions
MbrFix /drive 0 savembr Backup_MBR_0.bin
MbrFix /drive 0 restorembr Backup_MBR_0.bin
The first command lists all partitions of drive 0, the second backs up the master boot record of the first drive of the system in the file Backup_MBR_0.bin, the last restores the previously created MBR backup to the drive.
Another command line tool for Windows which comes with a basic menu which makes the program usage a bit easier. MBRTool can be used to backup all MBRs automatically, or work with specific master boot records. The user interface makes it easier to work with, even though it does not make a big difference compared to MBRFix.
The only program with a graphical user interface. HDHacker can backup and restore any sector of a partition, but has a specific option to backup and restore the MBR sector. It is probably the easiest to use of all the three programs of this guide.
That leaves a question: How often should you backup the MBR? A backup is only necessary if something in the setup of the PC changes, for instance if another operating system is installed or removed, or if the hard drive partitions are changed.Advertisement
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.