Wednesday, December 20, 2006

Booting Windows from grub prompt

This is a common problem that many users face, when they remove their linux partitions.
Grub loses grub.conf and has no way to find out where to access the bootloader (NTLDR) for Windows.
So everytime you restart your comp, you'll see


Just type these commands, and you can get into windows. Then can do fdisk /mbr using a recovery disk or Win XP cd > recovery option

grub> unhide (hd0,0)
grub> hide (hd0,1)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot

No comments: