Yesterday i reinstalled my ubuntu, but i don’t know how to destory my mbr record. I’ve 2 hard drives, one is 120G IDE hard drive installed Ubuntu, the other is 250G SATA harddrive installed Window Xp. And usually 120G harddrive is my first boot disk, and grub should be installed there. But last night i installed Grub2, I don’t know how to rewrite my 250g disk’s mbr.

Okay,right now let me fix it. You need administrative privileges to make it work!

First,you need a tool named “MBR Fix”, click here to download.

Second, extract it to a directory. You can find there’s only one command line tool.

Third, open your dos prompt, cd to the directory where your mbrfix locates.

Forth, use this grammer to fix your mbr.
class=”brush: bash”>MbrFix /drive fixmbr {/vista|/win7} Update MBR code to W2K/XP/2003, Vista or Win7

And here below is all available command:

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|/win7} Update MBR code to W2K/XP/2003, Vista or Win7
MbrFix /drive clean Delete all partitions on the selected disk
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