Friday, January 30, 2009

Fixing MBR after removing Linux (dual boot with Windows XP)

Intro
I had this PC at work where we had dual boot Windows XP and Ubuntu Linux. After removing Linux partition, GRUB would not boot into Windows. MBR needed to be repaired for Windows.

Fix
Boot with Windows XP CD. Selected "repair console". It asked for which Windows installation (entered 1 since only one was offered) and then asked for admin password.
Once in repair command line, two commands are of interest:

fixmbr
fixboot c:


First one I believe cleans MBR and second one makes sure that C: will be bootable. Both command will ask for confirmation. Answered with y (for yes) and enter.

No comments: