OniNiubbo
April 3rd, 2010, 05:48 PM
Hi all. I've just updated to Lucid from previous LTS and I've found out that:
grub2 exists
grub2 is the new boot loader
I used to install grub's stage 1 to the floppy, but apparently I can't do that with grub2. I did try to go like this:
sudo grub-install --force --root-directory=/media/floppy /dev/fd0
sudo grub-mkconfig -o /media/floppy/boot/grub/grub.cfg
But it creates a menu with un-bootable elements. They all give me the error 'no such device'. Here is an example of grub.cfg entry:
menuentry "Ubuntu, con Linux 2.6.32-19-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set b6aebe68-b778-43cf-ac3d-6a365e28c701
linux /boot/vmlinuz-2.6.32-19-generic root=UUID=b6aebe68-b778-43cf-ac3d-6a365e28c701 ro quiet splash
initrd /boot/initrd.img-2.6.32-19-generic
}
Luckly I managed to create a rescue grub2 disk with which I can boot with:
linux (hd1,1)/vmlinuz root=/dev/sdb1
initrd (hd1,1)/initrd.img
boot
Those commands work only if I run them from the rescue floppy, not from the one created with 'grub-install'.
So yes, sdb1 is linux' partition and its uuid is indeed correct:
ls -l /dev/disk/by-uuid
totale 0
lrwxrwxrwx 1 root root 10 2010-04-03 17:51 55585297731F26A5 -> ../../sdc1
lrwxrwxrwx 1 root root 10 2010-04-03 17:51 55fb64f5-8ec5-4d8b-a53a-0c51a1e2e658 -> ../../sdb5
lrwxrwxrwx 1 root root 10 2010-04-03 17:51 8C84E9C884E9B4BC -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-04-03 17:51 b6aebe68-b778-43cf-ac3d-6a365e28c701 -> ../../sdb1
Am I doing something wrong?
On a side note, I want my system to behave like this:
boot without floppy -> boot straight in windows
boot with floppy -> boot straight in lucid
Is it possible to achieve that without installing the whole grub in the floppy? It would be cool to just 'redirect' the boot process to lucid.
grub2 exists
grub2 is the new boot loader
I used to install grub's stage 1 to the floppy, but apparently I can't do that with grub2. I did try to go like this:
sudo grub-install --force --root-directory=/media/floppy /dev/fd0
sudo grub-mkconfig -o /media/floppy/boot/grub/grub.cfg
But it creates a menu with un-bootable elements. They all give me the error 'no such device'. Here is an example of grub.cfg entry:
menuentry "Ubuntu, con Linux 2.6.32-19-generic" --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set b6aebe68-b778-43cf-ac3d-6a365e28c701
linux /boot/vmlinuz-2.6.32-19-generic root=UUID=b6aebe68-b778-43cf-ac3d-6a365e28c701 ro quiet splash
initrd /boot/initrd.img-2.6.32-19-generic
}
Luckly I managed to create a rescue grub2 disk with which I can boot with:
linux (hd1,1)/vmlinuz root=/dev/sdb1
initrd (hd1,1)/initrd.img
boot
Those commands work only if I run them from the rescue floppy, not from the one created with 'grub-install'.
So yes, sdb1 is linux' partition and its uuid is indeed correct:
ls -l /dev/disk/by-uuid
totale 0
lrwxrwxrwx 1 root root 10 2010-04-03 17:51 55585297731F26A5 -> ../../sdc1
lrwxrwxrwx 1 root root 10 2010-04-03 17:51 55fb64f5-8ec5-4d8b-a53a-0c51a1e2e658 -> ../../sdb5
lrwxrwxrwx 1 root root 10 2010-04-03 17:51 8C84E9C884E9B4BC -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-04-03 17:51 b6aebe68-b778-43cf-ac3d-6a365e28c701 -> ../../sdb1
Am I doing something wrong?
On a side note, I want my system to behave like this:
boot without floppy -> boot straight in windows
boot with floppy -> boot straight in lucid
Is it possible to achieve that without installing the whole grub in the floppy? It would be cool to just 'redirect' the boot process to lucid.