development blog for the wicked stuff we encounter

I badly needed Windows on my laptop, and had only some hours to install it, so I skipped the step to make it a dual-boot system. As I returned to so called "normal operation" I wanted to use Ubuntu again. What to do? The Grub multiloader had been overwritten by Windows, so switching the Boot flag to the partition is not enough. 1) I found a nice image file at http://www.troubleshooters.com/linux/grub/grub.htm, downloaded and created a bootable CD with it. 2) When the Grub menu appeared, I pressed c for command-line options. 3) Typed: root (hd0,0) setup (hd0) 4) Voila, Grub found the necessary vmlinuz file and the initrd (which was manually impossible for me) and after a reboot, I was able to log in to Ubuntu again. 5) I added the Windows partition to the Grub menu (/boot/grub/menu.lst) title Microsoft Windows root (hd0,1) savedefault makeactive chainloader +1 6) don't forget to change the 'hiddenmenu' item to 'menu', otherwise you'll not see the boot menu, just after pressing Esc 7) and from now on the two operating systems live together, happily ever after.

Comments