Fix or create Master Boot Record (MBR) on harddisks

Autor: | 05.03.2011 | Disk

mbrfix The MBRFix  application was designed to be a small tool to fix or create Master Boot Record (MBR) on harddisks. With an x64-edition as well as the 32-bit edition.

Will perform several Master Boot Record (MBR) tasks, like backing up, restoring, fixing the boot code in the MBR, etc. The utility should not be used for GUID Partition Table (GPT) disks.

MbrFix /drive {/partition } { /yes } { /byte }

MbrFix /drive driveinfo Display drive information
MbrFix /drive drivesize Returns drive size in MB as return value
MbrFix /drive listpartitions Display partition information
MbrFix /drive savembr Save MBR and partitions to file
MbrFix /drive restorembr Restore MBR and partitions from file
MbrFix /drive fixmbr {/vista} Update MBR code to W2K/XP/2003 or Vista
MbrFix /drive clean Delete all partitions in MBR
MbrFix /drive readsignature {/byte} Read disk signature from MBR
MbrFix /drive writesignature Write disk signature to MBR
MbrFix /drive generatesignature Generate disk signature in MBR
MbrFix /drive readstate Read state from byte 0x1b2 in MBR
MbrFix /drive writestate Write state to byte 0x1b2 in MBR
MbrFix /drive readdrive
Save sectors from drive to file
MbrFix /drive /partition fixbootsector
Update Boot code in boot sector
MbrFix /drive /partition getpartitiontype
Get partition type
MbrFix /drive /partition setpartitiontype
Set partition type
MbrFix /drive /partition setactivepartition
Set active partition
MbrFix /drive getactivepartition Get active partition
MbrFix volumeinformation driveletter Get volume information for partition
MbrFix flush {driveletter(s)} Flush files to disk for partition
MbrFix listpartitiontypes List partition types

Drive numbering starts on 0.
Partition numbering starts on 1.

Commands restorembr, fixmbr, generatesignature, writestate, clean, setactivepartition and fixbootsector will ask for confirmation unless /yes is included.

If the /byte option is given for the readsignature command, the signature is returned as a byte array instead of as a DWORD. Writesignature requires the new signature to be specified as 8 hex digits.

If /vista is used with the fixmbr command, a Windows Vista MBR is written instead of a Win2000/XP/2003 MBR. The Vista MBR should work with the other OS'es as well.

When fixing boot sector of a chosen partition, the wanted OS version must be specified. For now, the only valid choices are WIN98, DOS5 and DOS6.
The purpose of the fixbootsector command is to insert boot code for loading DOS from a partition created and formatted as FAT using the Windows 2000/XP/2003 tools, since those tools inserts boot code for loading NTLDR.

The program reports an errorlevel as 0 for OK and other values for errors.
The exception to this is the ReadState, GetPartitonType and GetActivePartitions command which returns the state as a return code as well as printing to stdout. Any errors for this command are returned as negative values because of this. The DriveSize command returns the drive size in MB, and 0 in case of error. 
Komentari korisnika


  • Verzija:
  • Licenca: Freeware
  • Veličina: 0,13 MB
  • Jezik: Hrvatski
  • Downloads: 747
  • OS: Windows 8, Windows 7, Windows XP, Windows Vista
  • Autor: Website


Like us on Facebooku

Pridruži se i Ti. Postani naš FAN!

Contact Us