LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-11-2003, 02:58 PM   #1
froedi
Member
 
Registered: Nov 2003
Location: GER
Distribution: slackware 10.0
Posts: 62

Rep: Reputation: 15
Adding 2nd Linux to LILO


hi!

currently there are 2 different linux distributions installed on my box, but only one shows up in the lilo boot screen.

what must I add to lilo.conf to add the other distribution?



thx

froedi
 
Old 11-11-2003, 03:08 PM   #2
wuck
Member
 
Registered: Sep 2003
Location: barneveld.nl
Distribution: Slackware
Posts: 170

Rep: Reputation: 30
Well, for an example, check your /etc/lilo.conf (cat /etc/lilo.conf)

Mine goes like this:

Code:
# Slackware
image=/boot/vmlinuz
	root=/dev/hda1
	label=slack
	read-only
# End Slackware
image: Most distros will use /boot/vmlinuz as startup kernel (FIXME) but to check anyways, say ls /boot to see what's hangin' out there.
root: Of course, you need to know on what partition your second Linux distro is. To see, say fdisk -l
label: Anything of your choice.
read-only: My lilo.conf said 'any non-UMSDOS partitions should be mounted readonly. I think this is corrent, since fsck might want to sweep around for bad blocks and stuff, and then you really want your partition mounted readonly.

Last edited by wuck; 11-11-2003 at 03:11 PM.
 
Old 11-11-2003, 03:41 PM   #3
fyoder
Member
 
Registered: Nov 2003
Posts: 111

Rep: Reputation: 15
It would be useful to know if the distros are on different hard drives and whether they have unique /boot directories and if those on different hard drives and have their own partitions.

It's doable but can get a bit hairy. Hard to say how hairy without knowing how you have things partitioned.
 
Old 11-12-2003, 05:53 AM   #4
froedi
Member
 
Registered: Nov 2003
Location: GER
Distribution: slackware 10.0
Posts: 62

Original Poster
Rep: Reputation: 15
hda2 = debian
hda5 = slackware
 
Old 11-12-2003, 06:51 AM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Well - depending on your exact situation? - you could create a mount point in Debian for your Slackware partition that contains Slack's kernel (assuming its the Root partition for now) - then mount Slack's Root partition to the mount point you've just created then put this entry in lilo.conf (for example)

image=/mnt/slackware/boot/vmlinuz
label="Slackware9"
root=/dev/hda5
append="devfs=mount hdc=ide-scsi acpi=off quiet"
read-only

then save lilo.conf

then type

/sbin/lilo

to create the new map file and re-install LILO

then reboot
 
Old 11-14-2003, 10:20 AM   #6
froedi
Member
 
Registered: Nov 2003
Location: GER
Distribution: slackware 10.0
Posts: 62

Original Poster
Rep: Reputation: 15
I got it working now

thanks for your help.
 
Old 12-03-2003, 09:27 PM   #7
rrsc16954
Member
 
Registered: Sep 2003
Location: Edinburgh, Scotland
Distribution: Kubuntu 12/4
Posts: 214

Rep: Reputation: 30
image=/mnt/slackware/boot/vmlinuz
label="Slackware9"
root=/dev/hda5
append="devfs=mount hdc=ide-scsi acpi=off quiet"
read-only

then save lilo.conf

How do I save lilo.conf ? Is that the same as using the "Apply" button ?
 
Old 12-28-2003, 06:28 PM   #8
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Rep: Reputation: 15
Thanks for the advice on what to do. I've had the same problem but didn't think of creating a mount point.

I've googled on how to do that (ie create a mount point), but I'm still not sure. Do I simply add an entry to the /etc/fstab or is there more to it?

I have a directory /mnt/redhat where I usually mount my redhat partition manually with

mount -t ext2 /dev/hda2 /mnt/redhat/

but my problem is having this permanantly in place so that lilo can see it. Can anyone help?

Many thanks, reetep.
 
Old 12-29-2003, 02:24 AM   #9
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
If you've got a directory called

/mnt/redhat

in

/mnt

then it should always stay there whether you manually mount something to it or let fstab mount something to it - does it intermitently disappear or something?

In general - to create a mount point

su to Root user in an xterm - then

mkdir /mnt/xxxxxxxxxx

If your reffering to always having a certain partition mounted, so you don't have to worry when running LILO, just put an entry for it in /etc/fstab, and make sure youve got a mount point created aswell.

Last edited by Skyline; 12-29-2003 at 02:30 AM.
 
Old 12-30-2003, 08:02 PM   #10
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Rep: Reputation: 15
Thanks very much for your reply Skyline. I just wanted to be sure of what to do.

I've done that, and all seemed to be successful (ie lilo had no problems accepting my new config), but when I boot the redhat partition I get kernel panic init not found.

My lilo.conf includes a line initrd=/mnt/redhat/boot/initrd-2.4.20-8.img is it to do with this? I don't know what this line means, I just copied it from the redhat lilo.conf.

If anyone can suggest what the cause of the problem might be I'd be very grateful.

Many thanks, reetep.
 
Old 12-31-2003, 03:22 AM   #11
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Your probably best posting your full lilo.conf file at this point - also what distributions you're multibooting etc - any other info.
 
Old 12-31-2003, 06:34 AM   #12
reetep
Member
 
Registered: Oct 2003
Location: UK
Distribution: Debian
Posts: 122

Rep: Reputation: 15
got it now, I just commented out the initrd line I posted above and it seems to work exactly as it did.

Thanks for your help once again, reetep.
 
  


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
Adding another Linux OS to lilo RoaCh Of DisCor Linux - Software 2 12-05-2004 07:11 PM
Adding 2nd mouse to SuSE 9.0 pjbgravely Linux - Distributions 2 07-05-2004 01:45 AM
Adding a 2nd harddrive for backups, how do I do this lexington Linux - Newbie 2 05-03-2004 11:25 PM
Adding a 2nd domain to Bind 9.2.2 on Linux bkesting Linux - Networking 3 04-05-2004 03:51 PM
adding 2nd domain or website spooge Linux - Networking 1 02-26-2004 09:59 AM


All times are GMT -5. The time now is 05:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration