Is there a script to auto find installed distros & edit Grub
I have an 80gig(4 pri parts) and a 160gig(3 pri parts and 2 extended) HDD. I have Mepis(hda1)/home(hda3)/swap(hda2) and knoppix(hdb1), alinux(hdb2), LFS(hdb3), FC4(hdb5), PCLinux(hdb6). I installed lilo with PClinux but I don't like LILO so I reinstalled Grub and I can't get PCLinux to boot with grub???
here's my menu.lst timeout 15 color cyan/blue white/blue foreground ffffff background 0639a1 gfxmenu /boot/grub/message title MEPIS at hda1, kernel 2.6.10 kernel (hd0,0)/boot/vmlinuz-2.6.10 root=/dev/hda1 nomce quiet splash=verbose vga=791 initrd (hd0,0)/boot/initrd.splash title Fedora Core (2.6.11-1.1369_FC4) root (hd1,4) kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet initrd /boot/initrd-2.6.11-1.1369_FC4.img title Knoppix at hdb1, kernel 2.6.10 kernel (hd1,0)/boot/vmlinuz root=/dev/hdb1 initrd (hd1,0)/boot/initrd title MEMTEST kernel /boot/memtest86.bin title PCLinuxOS at hdb6 kernel (hd1,5)/boot/vmlinuz root=/dev/hdb6 initrd (hd1,5)/boot/initrd Any ideas? Also I would like to know if there is a script out there that will autoconfig my menu.lst I'm constantly playing with new distros and I would like to have a script to find all my linux parts, intrds, kernels, & images and configure grub automatically. Time wasted editing my menus.lst and finding the right init, boots. |
If you have a link from the vmlinuz-bunch-of-numbers to vmlinuz, then you can use vmlinuz in the menu entry. Otherwise, you need to know which vmlinuz you are using. For example, this is what my entry looks like for PCLinuxOS v9 .
title PCLinuxOS root (hd0,1) kernel /boot/vmlinuz-2.6.11-oci11.mdk-i586-up-1GB ro root=/dev/hda2 initrd /boot/initrd-2.6.11-oci11.mdk-i586-up-1GB.img So yours may look like this... title PCLinuxOS at hdb6 root (hd1,5) kernel /boot/vmlinuz ro root=/dev/hdb6 initrd /boot/initrd.img I don't know about any program to do this automatically. |
That worked, Thank You!
A simple copy and paste from your entry worked flawless.
Now I know just a little more about Grub, there are usually shortcuts, no kernel version was needed. Thank You! |
Glad you got it going! :)
I use the full kernel name instead of the link so I can keep track of which kernel I have selected. |
All times are GMT -5. The time now is 02:21 PM. |