Fix mbr record in windows xp
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
And here below is all available command:
MbrFix /drive
driveinfo Display drive information
MbrFix /drivedrivesize Returns drive size in MB as return value
MbrFix /drivelistpartitions Display partition information
MbrFix /drivesavembr Save MBR and partitions to file
MbrFix /driverestorembr Restore MBR and partitions from file
MbrFix /drivefixmbr {/vista|/win7} Update MBR code to W2K/XP/2003, Vista or Win7
MbrFix /driveclean Delete all partitions on the selected disk
MbrFix /drivereadsignature {/byte} Read disk signature from MBR
MbrFix /drivewritesignature Write disk signature to MBR
MbrFix /drivegeneratesignature Generate disk signature in MBR
MbrFix /drivereadstate Read state from byte 0x1b2 in MBR
MbrFix /drivewritestate Write state to byte 0x1b2 in MBR
MbrFix /drivereaddrive
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 /drivegetactivepartition 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