Tuesday, March 1, 2011

Fixing the boot loader mess

After the last dist-upgrade from OpenSuSE 11.3 to 11.4, my boot loader and MBR was updated, causing me quite some headaches.

Now, I think I found the problem - my /etc/grub.conf was broken, it had a setup (hd0) line in it. I replaced that with

setup --stage2=/boot/grub/stage2 --force-lba (hd0,6) (hd0,6)
quit

I also created a script to set things up inside VMware:

root (hd1,6)
install (hd1,6)/boot/grub/stage1-isengard d (hd0) (hd1,6)/boot/grub/stage2-isengard (hd1,6)/boot/grub/menu-isengard.lst

Using a custom stage1-isengard should also make this more robust against future GRUB updates.

This should hopefully fix it for the next dist-upgrade, so we can close the bug. The remaining instructions from my old blog post should still be up-to-date.