LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-28-2006, 04:13 PM   #1
asrisk
LQ Newbie
 
Registered: Jul 2005
Location: Wiltshire, UK
Distribution: Mageia 1
Posts: 16

Rep: Reputation: 2
Multi boot with GRUB


Hi there

I've been neglecting Linux for a while, but its time to get back into things.

I have Windows 98, and have installed Simply MEPIS 3.3.2 which automatically installed GRUB in the MBR, to allow booting of Windows or MEPIS.

So far so good.

I then installed Knoppix in another partition, and it asked me where I wanted to put Lilo. Knowing that I did not want to over write GRUB with LILO in the MBR I told Knoppix to install Lilo in the partition (/dev/hda3) instead.

I then edited the GRUB menu.lst, and added a knoppix entry, using the format from the MEPIS entries, and substituting the correct partition (hd0,2) and the correct vmlinuz file from the hda3 boot directory, like so:

title KNOPPIX
kernel (hd0,2)/boot/vmlinuz-2.6.7 root=/dev/hda3 nomce quiet splash=verbose vga=791 hdc=ide-scsi hdd=ide-scsi
initrd (hd0,2)/boot/initrd.splash

Soooo... now the PC starts, I get the graphical MEPIS GRUB, choose Knoppix - and then I get a text-only "GNU GRUB", presenting the same options. If I pick knoppix again, I get grub again. Windows and MEPIS still work fine.

How do I make it boot into knoppix?

Cheers
Andy.
 
Old 07-28-2006, 04:18 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
With Knoppix, you should probably just put
Code:
title KNOPPIX
root (hd0,2)
chainloader +1
boot
 
Old 07-28-2006, 09:04 PM   #3
lein
Member
 
Registered: Jul 2006
Location: Australia
Distribution: Mint 14/16 & Raspbian
Posts: 73

Rep: Reputation: 23
pljvaldez,

Is that because that is where Knoppix installed Lilo? So you only have to direct Grub to where the Boot-Loader for that partition is?

If so that is a nice way of multibooting.

thanks,
lein
 
Old 07-28-2006, 09:14 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
That's exactly it. And it does make it much easier to multiboot! A guy who comes around here once in a while, Saikee, has 100+ OS's booting from grub in this way.

The only downside I've seen so far is that generally whichever grub is in the MBR should have a separate /boot partition when you install that first linux. That's because in your case, if you ever want to get rid of Mepis, you'll delete the / partition for Mepis which has /boot/grub and all the config files for grub that is installed in the MBR. So then you've produced an unbootable hard drive.

If you have a separate /boot for Mepis, then grub still has it's config files even if you nuke Mepis. All you have to do from your new distro is modify the Mepis /boot/grub/menu.lst to chainload your new install.
 
Old 07-29-2006, 01:39 PM   #5
asrisk
LQ Newbie
 
Registered: Jul 2005
Location: Wiltshire, UK
Distribution: Mageia 1
Posts: 16

Original Poster
Rep: Reputation: 2
Thanks pljvaldez - that snippet of code was just what I needed! As you said - Grub boots first - which then loads lilo which then loads Knoppix. To keep things tidy I set the delay on the lilo menu to zero, and it all works seamlessly now.

That seems like an easy way to manage multiple distros, and I will bear your advice in mind about a separate boot partition next time I am foolish enough to rearrange all my partitions!

Thanks again
Andy.
 
  


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
Grub - multi OS boot hiteshmaisheri Linux - Software 3 01-15-2006 12:19 PM
How to multi boot by GRUB? jiapei100 Linux From Scratch 3 02-22-2005 10:22 PM
Grub Multi-Boot On Old Laptop JamieKitson Linux - Software 1 11-16-2004 05:07 AM
Need help with boot loader. Multi boot questions. Grub? 1993gt40 Linux - Software 1 10-16-2003 09:28 PM
GRUB, Multi Linux/Multi Disk Boot gtnorton Linux - Software 1 03-16-2003 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration