Hello!
I'm finding a little hard moving from the old Grub to the newer Grub2.
Really I found harder to add a menuentry in /etc/grub.d/40custom for Linux partitions. With Grub that used to be easy. May be there's some easy way with Grub2 too.
Within my first HD I run Debian Squeezy (with Grub2 as boot loader). I installed a second hd in which I installed Ubuntu, just for some testings Grub2 features porpouses. So, I added an entry in /etc/grub.d/40_custom
Code:
# Ubuntu
menuentry "Ubuntu 8.04.4 LTS, kernel 2.6.24-27-generic" --class debian --class gnu-linux --class gnu --class os {
insmod ext2
set root='(/dev/hdb,1)'
search --no-floppy --fs-uuid --set c3fc10db-cd1d-476b-9780-d6eb5e56ebc5[/B]
echo Cargando Linux 2.6.24-27
linux /boot/vmlinuz-2.6.24-27-generic root=UUID=c3fc10db-cd1d-476b-9780-d6eb5e56ebc5 ro quiet
echo loading initial ramdisk...
initrd /boot/initrd.img-2.6.24-27-generic
}
Finally it worked. But I'd like to know a few things:
1) For the entry to work I had to add: "--class debian --class gnu-linux --class gnu --class os" after the entry display name. Why is needed?
2) What is the option "search" to?
search --no-floppy --fs-uuid --set c3fc10db-cd1d-476b-9780-d6eb5e56ebc5[/B]
3) set root: In Grub2 does it support the old notation: set root=(hd1,1) ?
Really without those options Grub2 didn't runned the kernel on Ubuntu's partitions. I'd relly like to know why they are needed in Grub2.
Thanks in advance,
Matías