LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 06-15-2005, 10:23 PM   #1
clintbrot
LQ Newbie
 
Registered: Jun 2005
Location: Oklahoma
Distribution: Freespire, Mepis 6.0, FC5, PCLinux, Knoppix, Damn Small Linux(DSL)
Posts: 25

Rep: Reputation: 15
Cool 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.
 
Old 06-16-2005, 12:03 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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.
 
Old 06-16-2005, 08:28 PM   #3
clintbrot
LQ Newbie
 
Registered: Jun 2005
Location: Oklahoma
Distribution: Freespire, Mepis 6.0, FC5, PCLinux, Knoppix, Damn Small Linux(DSL)
Posts: 25

Original Poster
Rep: Reputation: 15
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!
 
Old 06-16-2005, 10:15 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub not listing other distros? & Internet prob. ronlon Mandriva 4 09-15-2005 01:23 PM
multiple distros&grub devil28 Linux - Newbie 8 04-14-2005 08:09 AM
Can't find edit grub.conf when im in command line. izac5 Linux - Newbie 7 11-16-2004 04:24 PM
Where to find the GRUB configuration script file? piggysmile Red Hat 2 10-09-2004 03:15 PM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration