GRUB2
From Smop.co.uk
I'm now using GRUB2 to boot, it wasn't a terribly great experience.
/boot/grub/grub.cfg now says:
### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
insmod lvm
set root=(root-rootlv)
search --fs-uuid --set 07c1ef15-db44-41ec-8adc-9420dd334794
if font /usr/share/grub/ascii.pff ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
terminal gfxterm
fi
### END /etc/grub.d/00_header ###
...
### BEGIN /etc/grub.d/10_linux ###
insmod raid
set root=(md0)
search --fs-uuid --set e2c5db97-4e90-4e2a-a329-38bd44ed9292
menuentry "Debian GNU/Linux, linux 2.6.27-rc7" {
linux /vmlinuz-2.6.27-rc7 root=/dev/mapper/root-rootlv ro
initrd /initrd.img-2.6.27-rc7
...
### BEGIN /etc/grub.d/31_windows ###
menuentry "Windows" {
set root=(hd0,1)
chainloader +1
}
Note that /etc/grub.d/31_windows was a quick hack done by me:
#!/bin/sh
# Written by Adrian
cat <<EOF
menuentry "Windows" {
set root=(hd0,1)
chainloader +1
}
EOF
At one point GRUB2 clearly wasn't installed correctly. Each reboot I'd have to type this set of commands in - I've documented them here in case they are useful to anyone else (or myself in future!):
- set
- lists current variables
- set prefix=(md0)/grub
- for some bizarre reason this would have been set to (fd0)
- insmod hello
- not needed, but should print "hello"
- insmod raid
- insmod lvm
- insmod normal
- maybe need "insmod linux" and "insmod boot" here if you are unlucky
- normal
- this should now display the grub menu
