ust spent an "interesting" 2 hours wrestling with Grub2 after I downloaded the final release of Ubuntu 9.10 today.
I prefer to use Ubuntu's grub to boot all my distros and previously used the /boot/grub/menu.lst in Ubuntu. I did the same this time installing Ubuntu's grub into the MBR.
It picked up Windows xp, Windows 7, Ubuntu 9.10 and Ubuntu 9.04, Fedora 11 and Debian 5.
It failed to recognise any of my 5 Puppy frugal installs or Tiny Core Linux. But there again grub 0.97 also failed in that way.
Eventually got it to boot the Puppies so in case others want to do this, here goes (some of this is a repeat of what's above).....
1. As mentioned don't do anything to the /boot/grub/grub.cfg file !!!
2. Copy the file Quote:
/etc/grub.d/40_custom
somewhere.
3. rename it something like Quote:
41_puppy431
4. after the 5 lines of existing text add whatever you need to boot puppy ...see below.
5. move the file back to /etc/grub.d/
6. Code:
sudo chmod +x /etc/grub.d/41_puppy
to make the file executable.
7. Code:
sudo grub-makeconfig
then Code:
sudo update-grub
Without this the /boot/grub/grub.cfg file doesn't get updated.
8. Now the grub boot code that seemed to work for me was
Code:
menuentry "Whatever you call puppy" {
set root=(hd1,5)
linux /puppy431/vmlinuz psubdir=puppy431
initrd /puppy431/initrd.gz
}
EOF
Nice and simple. Obviously change depending on your installation. This was for Puppy431 residing as a frugal on sdb5 in a subdirectory called /puppy431. Note the numbering.
9. The way of describing a partition has changed!!!
I have my Puppies on sdb5 . This used to be described in grub as (hd1,4). Now it's (hd1,5).
10. Note that adding Quote:
insmod ext3
just after the menuentry line seemed to stop it booting.
Also adding a line Quote:
search --fs-uuid --set ehdn78sh-3738-6dg8-bba3-ehd76sgs6sgs
to identify the UUID of the partition that puppy is on didn't seem to be necessary.
This worked for puppy 412, 421, 431.1 and 431.
I am still struggling to get puppy214X working. It does work using the psubdir method above but you're back to having to tell it which pup_save file to use.
Make similar files for other puppies and note that grub will list them in numerical order so, for example, 42_puppy412 will come before 43_puppy214.
HTH
Dave
Bookmarks