Friday, March 09, 2007
What to do when grub gets in the way of windoze
When you've put linux on a machine it tends to use grub during the boot. This can pose a problem if you decide to revert to windoze. Most windoze install procedures leave the MBR alone. This causes problems because a windoze install usually means at least one reboot during the installation process. If grub is still on the MBR this causes a problem because grub will then try to boot linux but will fail because the windoze install that is partway through overwrote it. At this point the boot tends to hang. Heres how to get around it: and save to a USB flash drive.Download MbrFix (http://www.ambience.sk/fdisk-master-boot-record-windows-linux-lilo-fixmbr.php) Whilst linux is still there use the following grub commands: grub> rootnoverify (hd0,0) grub> makeactive grub> chainloader +1 grub> boot Now you can install windoze. When it gets to the boot you will be put into grub again. Use the commands above to let the boot carry on and it will boot windoze. Once windoze has fully installed you need to run a MbrFix . Get it from the flash drive you prepared earlier. Help is builtin. Now grub will be gone and reboots will behave normally!