LinuxQuestions.org
Visit Jeremy's Blog.
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 04-25-2010, 09:12 AM   #1
raci1983
LQ Newbie
 
Registered: Apr 2010
Posts: 2

Rep: Reputation: 0
Editing grub for multiple OSes


I also found a problem for my multiple installation of linux distros.When I checked on the first distros when I boot up the system,I found out that some distros are gone or cannot be found in the list during booting.what should i do?
 
Old 04-25-2010, 09:43 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
I moved this to a new thread---it was not related to the one in which it was posted.

First, you need to confirm which installation has the active configuration file (/boot/grub/menu.lst). If nothing else, look at all of them and find the one that matches what you see when you boot up.

Then, simply edit the file to add what you need.

If you have a system working--and then install another distro--there are a minimum of two options for installing/configuring grub:

1. Let the new system install GRUB and then edit the new config file

2. Do NOT install GRUB with the new system. Edit the original config file as required.
 
Old 04-25-2010, 09:57 AM   #3
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
Originally Posted by pixellany View Post
If you have a system working--and then install another distro--there are a minimum of two options for installing/configuring grub:

1. Let the new system install GRUB and then edit the new config file

2. Do NOT install GRUB with the new system. Edit the original config file as required.
For what it's worth I like option 2 in this situation. If you have something that works in place, (IMHO) it's best to leave it in place unless you have a good reason for doing otherwise.
 
Old 04-25-2010, 10:45 AM   #4
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
1. Start your LINUX which created the last grub.
2. Mount all other partitions.
3. Look for each /boot/grub/menu.lst of the partitions at the file-explorer.
4. Copy and paste the {title unix-distro-superspecial, kernel :superkernel 0.1.23-45, evtl intrd if it is there ,evtl safedefault, evtl boot} lines (two to five in general) completely into an editor like Geany, kate or gedit that has opened the actual running /boot/grub/menu.lst with an empty line after each last entry.
5. Save the this now modified /boot/grub/menu.lst under its name.
6. Close the editor.
7. U(n)mount all not running partitions.
8. Reboot.
9. The title-rows will show up at the boot-menu.
10. If kernel panic occurs try to 'e' edit the lines at grub-start-menu.
11. Try the commands there; especially the TAB-key is very useful.
12. One of the most interesting commands is 'find'.
13. The Linux have often different kernel-appendings and names for the partitions. Some use 'disk by uuid' and others simple '/dev/hda1' (hda2,hda3 a.s.o.).
14. You can learn a lot by reading and writing down to a piece of paper. Syntax is unfortunately very important and disk by uuid can lead to several written rows.
 
Old 04-25-2010, 12:25 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I believe if you have one or both of the two distros using grub2 and the others with grub legacy then you may want to consider chainloading with grub legacy. If you are talking about grub2 I will leave you with this tutorial.

grub2

Last edited by Larry Webb; 04-25-2010 at 12:27 PM.
 
Old 04-29-2010, 05:30 AM   #6
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
Quote:
found out that some distros are gone or cannot be found
Grub is only capable to mount filesystems that are written within a script or are installed binairies at /boot.
If you also installed these OS on their default fs then it is probably possible that grub does not know to read these. If the existing grub was installed on ext3 then it is much likely that grub does not read BSD fs like ufs. There are so many Unix fs like xfs, jfs and reiserfs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
grub2 - multiple OSes milomak Linux - General 7 06-17-2009 07:51 PM
[SOLVED] Trying to fix boot loader with multiple OSes 81bones Linux - Hardware 7 02-02-2009 06:45 PM
Multiple OSes Millenniumman Linux - General 25 09-05-2008 12:01 PM
Multiple OSes Solaris, BSD Linux sovietpower Linux - Newbie 6 09-25-2004 05:57 PM
Sharing printers over multiple OSes mopron Linux - General 0 05-07-2002 09:03 PM

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

All times are GMT -5. The time now is 07:40 PM.

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