Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-15-2005, 10:23 PM
|
#1
|
LQ Newbie
Registered: Jun 2005
Location: Oklahoma
Distribution: Freespire, Mepis 6.0, FC5, PCLinux, Knoppix, Damn Small Linux(DSL)
Posts: 25
Rep:
|
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.
|
|
|
06-16-2005, 12:03 AM
|
#2
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
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.
|
|
|
06-16-2005, 08:28 PM
|
#3
|
LQ Newbie
Registered: Jun 2005
Location: Oklahoma
Distribution: Freespire, Mepis 6.0, FC5, PCLinux, Knoppix, Damn Small Linux(DSL)
Posts: 25
Original Poster
Rep:
|
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!
|
|
|
06-16-2005, 10:15 PM
|
#4
|
Senior Member
Registered: Oct 2003
Posts: 3,057
Rep:
|
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 03:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|