[olug] GRUB again? Clarified?

Daniel Linder dan at linder.org
Wed May 9 19:11:21 UTC 2007


On Tue, May 8, 2007 16:52, Joe Gulizia wrote:
> Can I simply add this to the list?

Yes you can.  Use vi or other plain-text editor to edit the
/boot/grub/menu.lst file.

> If I press the e (for edit)key when on the "Ubuntu,
> kernel 2.6.17-11-generic" line I get these lines:
> -------------------------------------------
> root (hd0, 0)
> kernel /boot/vmlinux-2.6.17-11-generic
> root=UUID=8a699650-a317-4026-84c2-508983171590 ro quiet splash
> initrd /boot/initrd.img-2.6.17-11-generic
> quiet
> savedefault

As a bare minimum you could use these five lines:
1: title Old Ubuntu install
2: root (hd0,0)
3: kernel /boot/vmlinux-2.6.15-27-generic
4: root=/dev/XXX ro quiet splash
5: initrd /boot/initrd.img-2.6.15-27-generic

Notes:
Line 1 is purely to give Grub something to show in the menu.
Line 2 tells grub where the base hard drive is that /boot/ is located.
Lines 3 and 5 are the kernel and initial ram disk to load.
Line 4 are the boot options and tell the kernel which /dev/XXX device has
the root (/) filesystem.

>From your first e-mail you mentioned that Kubuntu was initially installed
on /dev/hda, so I'd use "/dev/hda1" for the root= line.  Or boot into the
new system and see if you can mount the /dev/hda# partitions to determine
what they held.

As for line 2, I believe that *normally* /dev/hda maps to hd0,0, and
/dev/hdb maps to hd1,0, but I could be mistaken.  Once you get lines 3-5
pretty well determined, you can play with editing the grub menu at boot
time to change the "root (hd0,0)" stanza.  When you find the right one,
change the file then.

Dan

- - - -
"Wait for that wisest of all counselors, time." -- Pericles
"I do not fear computers, I fear the lack of them." -- Isaac Asimov




More information about the OLUG mailing list