MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 8 posts ] 
how to add grub 2 distros to grub legacy menu.lst 
Author Message
Forum Regular
Forum Regular

Joined: Sun Aug 06, 2006 4:49 pm
Posts: 156
Has thanked: 0 time
Have thanks: 3 times
Post # 293117
Post how to add grub 2 distros to grub legacy menu.lst
Mepis 11 is my default linux and it uses grub legacy
Grub legacy uses menu.lst to show all distros you can boot and it is in the MBR.
When I install grub 2 distros, linux mint, ubuntu and debian,
they will overwrite the MBR. I can install grub 2 in the
partition I install the grub 2 distros but can't boot them.
How can you add grub 2 distros to grub legacy menu.lst?
I don't use grub 2 to boot distros, too complex to use.

jozien


Mon Jan 09, 2012 1:14 pm
Profile
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 5:54 am
Posts: 10797
Location: Tulsa, Oklahoma U.S.A.
Has thanked: 3584 times
Have thanks: 857 times
Post # 293119
Post Re: how to add grub 2 distros to grub legacy menu.lst
I chainload anything that doesn't get treated correctly by GRUB. See: http://www.mepis.org/docs/en/index.php? ... nload_GRUB

_________________
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain


Mon Jan 09, 2012 1:24 pm
Profile
Online
Forum Veteran
Forum Veteran
User avatar

Joined: Wed Jul 12, 2006 2:26 pm
Posts: 6877
Has thanked: 374 times
Have thanks: 2198 times
Post # 293120
Post Re: how to add grub 2 distros to grub legacy menu.lst
I'm doing something like that. I have a boot partition using grub legacy that's installed to the mbr. I chainload to other partitions that have grub legacy or grub2 installed to their roots. Here's a few stanzas from my master menu.lst on my boot partition. The stanzas highlighted in green are for chainloading to grub2.
Quote:
timeout 15
default 1
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title sda8, chainloaded
rootnoverify (hd0,7)
chainloader +1
boot

title Chainload to sda8 with grub2 on it's root
kernel (hd0,7)/boot/grub/core.img


                  .
                  .
                  .

title sdb6 chainloaded
rootnoverify (hd1,5)
chainloader +1
boot

title Chainload to sdb6 with grub2 on it's root
kernel (hd1,5)/boot/grub/core.img


title sdb7 chainloaded
rootnoverify (hd1,6)
chainloader +1
boot

title Chainload to sdb7 with grub2 on it's root
kernel (hd1,6)/boot/grub/core.img


                  .
                  .
                  .

you might notice that I have dual entries for chainloading to either grub-legacy or grub2.


Mon Jan 09, 2012 1:27 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Thu Jul 13, 2006 7:21 am
Posts: 1843
Location: albuquerque
Has thanked: 130 times
Have thanks: 158 times
Post # 293124
Post Re: how to add grub 2 distros to grub legacy menu.lst
Here's my approach. These are the entries in my Mepis 11 menu.lst for the other distros I boot here. SalineOS, Ubuntu Lucid, Debian Squeeze, and Fedora 16 are the grub2 distros.

Code:
#Entry added by Steve 5-10-11
title   Mepis 8 at sda5
rootnoverify (hd0,4)
chainloader +1

#Entry added by Steve 5-10-11
title SalineOS at sdb1
root (hd1,0)
kernel /boot/grub/core.img
savedefault
boot

#Entry added by Steve 5-10-11
title Ubuntu 10.04 LTS (Lucid) at sdb5
root (hd1,4)
kernel /boot/grub/core.img
savedefault
boot

#Entry added by Steve 5-10-11
title Debian Squeeze at sdb7
root (hd1,6)
kernel /boot/grub/core.img
savedefault
boot

#Entry added by Steve 5-10-11
title PCLinuxOS at sdb9
rootnoverify (hd1,8)
chainloader +1

#Entry added by Steve 11-9-11
title Fedora 16 at sdb11
root (hd1,10)
kernel /grub2/core.img
savedefault
boot

#Entry edited by Steve 6-7-11
title Fedora 15 at sdb13
rootnoverify (hd1,12)
chainloader +1


Mon Jan 09, 2012 2:25 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sun Mar 25, 2007 5:49 pm
Posts: 2656
Location: Doncaster UK
Has thanked: 110 times
Have thanks: 733 times
Post # 293127
Post Re: how to add grub 2 distros to grub legacy menu.lst
jozien wrote:
I don't use grub 2 to boot distros, too complex to use.

jozien

I do use Grub2, and far from being complex, it does not get any easier,
I also run multiple disros, one simple command on my main system after installing or removing a distro.
as root
Code:
update-grub

and that is it, job done

_________________
*Never be afraid to try something new. Remember that a lone amateur built the Ark. A large group of professionals built the Titanic(Windoze)*

Kubuntu KDE 4.11.00 / KDE 4.11.60 / Debian Wheezy KDE 4.10.4 / Plasma Active 3 Tablet


Mon Jan 09, 2012 2:51 pm
Profile
Forum Guide
Forum Guide
User avatar

Joined: Sat May 16, 2009 3:59 pm
Posts: 2897
Has thanked: 415 times
Have thanks: 444 times
Post # 293132
Post Re: how to add grub 2 distros to grub legacy menu.lst
I use Mepis 11's grub, and I've always booted to grub2 distros in the following way. The only difference is in the location of the vmlinuz and initrd links.

Quote:
title MEPIS 11.0
root (hd0,4)
kernel /boot/vmlinuz root=/dev/sda5 quiet splash vga=789
initrd /boot/initrd.img
savedefault 1
boot

title Wheezy
root (hd0,6)
kernel /vmlinuz root=/dev/sda7 nomce vga=789 quiet splash nomodeset nouveau.modeset=0
initrd /initrd.img
savedefault 2
boot

-
-
-

title Squeeze
root (hd0,10)
kernel /vmlinuz root=/dev/sda11 nomce vga=789 quiet splash nomodeset nouveau.modeset=0
initrd /initrd.img
savedefault 4
boot

_________________
Gigabyte 990FXA-UD3, AMD FX-6100 hex-core, 3.3GHz, Radeon HD6570
Gigabyte A55M-DS2, AMD A4-3400 dual-core APU (llano), 2.7 GHz, Radeon HD graphics
IBM ThinkPad T43, Intel Pentium M, 1.73GHz, Intel chipset


Mon Jan 09, 2012 4:08 pm
Profile
Forum Guide
Forum Guide

Joined: Tue Jul 25, 2006 12:47 pm
Posts: 1440
Location: Savannah, GA
Has thanked: 85 times
Have thanks: 282 times
Post # 293133
Post Re: how to add grub 2 distros to grub legacy menu.lst
I've always done it by installing all of the distros I want to use, including Mepis, then booting into a Mepis Live CD or DVD and using the Mepis System Assistant to reinstall GRUB in the MBR after letting other distros use their boot managers there. IOW, just let Mepis overwrite what's in the MBR by using the Mepis System Assistant to reinstall GRUB after finishing with installing another distro.

From my experience, GRUB usually does a pretty good job of recognizing other distros installed on my partitions and adds them to the /apt/boot/menu.lst used by Mepis when you use the Mepis System Assistant from a Live DVD or USB stick to reinstall GRUB in the MBR.

That way, I don't have to worry about other boot managers at all (I just let GRUB handle it).


Mon Jan 09, 2012 4:36 pm
Profile
Forum Regular
Forum Regular
User avatar

Joined: Fri Dec 29, 2006 8:09 pm
Posts: 611
Location: Dallas, Texas
Has thanked: 40 times
Have thanks: 58 times
Post # 293140
Post Re: how to add grub 2 distros to grub legacy menu.lst
I have used grub2 for over a year installed from my Ubuntu installation. I have Windows 7 which had to be installed first then Ubuntu got installed and allowed to write to the MBR. Then the other system (3 in number) got installed and their respective boots were written to their root directories. Then doing a update-grub from the Ubuntu installation would find these systems. Nothing could be easier.

I have just replaced the hard drive on this computer and gotten Windows 7 installed and Mepis 11 (KDE 4.6.5). The Mepis 11 has also been upgraded to Grub2 and this is stored to the MBR. The only gotch that you might find is remembering which system is the "control" system ie the system that has its grub installed in the MBR. That is the system you have to go to and run "update-grub" when you install another system.

Steve

_________________
I messed with the dragon and now I am ready for the ketchup!
The only stupid question is the one you already know the answer.

~Krispy Kritter~

Toshiba Satellite A215-S7427(AMD-64)
Windows7/M11(KDE4.6.5)/M11(RoadblockTRK2-32)'buntus13.1/MX14b2/Tanglu1.0


Mon Jan 09, 2012 6:22 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.