LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-21-2004, 07:09 PM   #1
Brad4321
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake 10.0; Gentoo
Posts: 9

Rep: Reputation: 0
Configuring Lilo


I just got done with my stage 1 gentoo installation () and I can't figure out how to make lilo correctly boot from it. This is my current lilo conf file. Mandrake created this and the 50 different possible boot options for mandrake.

Code:
# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

boot=/dev/hda
map=/boot/map
default="linux-smp"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
disk=/dev/hdg bios=0x82
disk=/dev/hdd bios=0x81
image=/boot/vmlinuz
	label="linux"
	root=/dev/hda5
	initrd=/boot/initrd.img
	append="devfs=mount resume=/dev/hdd7 splash=silent"
	vga=788
	read-only
image=/boot/vmlinuz
	label="linux-nonfb"
	root=/dev/hda5
	initrd=/boot/initrd.img
	append="devfs=mount resume=/dev/hdd7"
	read-only
image=/boot/vmlinuz-2.6.3-9mdk
	label="263-9"
	root=/dev/hda5
	initrd=/boot/initrd-2.6.3-9mdk.img
	append="devfs=mount resume=/dev/hdd7 splash=silent"
	read-only
image=/boot/vmlinuz-smp
	label="linux-smp"
	root=/dev/hda5
	initrd=/boot/initrd-smp.img
	append="devfs=mount resume=/dev/hdd7 splash=silent"
	read-only
image=/boot/vmlinuz
	label="failsafe"
	root=/dev/hda5
	initrd=/boot/initrd.img
	append="failsafe resume=/dev/hdd7 devfs=nomount"
	read-only
other=/dev/hda1
	label="windows"
	table=/dev/hda
image=/boot/kernel-2.6.8-gentoo
	label="Gentoo Kernel 2.6.8"
	image=/boot/kernel-2.6.8-gentoo
	root=/dev/hda8
other=/dev/fd0
	label="floppy"
	unsafe
[root@localhost etc]# /sbin/lilo
Added linux
Added linux-nonfb
Added 263-9
Added linux-smp *
Added failsafe
Added windows
Fatal: open /boot/kernel-2.6.8-gentoo: No such file or directory

It seems that it is saying the path to the kernel is wrong. The weird kernel name is what I had written down from the installation, but I am not sure that it is right. What am I doing wrong?

Last edited by Brad4321; 09-21-2004 at 07:12 PM.
 
Old 09-21-2004, 07:41 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
It seems that it is saying the path to the kernel is wrong. The weird kernel name is what I had written down from the installation, but I am not sure that it is right.
Which it would be if Mandrake and Gentoo didn't
share the same boot partition...



Cheers,
Tink
 
Old 09-22-2004, 06:38 AM   #3
Brad4321
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake 10.0; Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
I don't get what you mean. Mandrake and gentoo are on seperate partitions. Or do you mean that the gentoo kernel isn't located in /boot?
 
Old 09-22-2004, 08:21 AM   #4
MathewT
LQ Newbie
 
Registered: May 2004
Location: Russell Island Q.L.D
Distribution: Slackware 12
Posts: 28

Rep: Reputation: 15
Brad, try changing lilo.conf to something like this;

image=/mnt/hda8/boot/vmlinuz-2.6.8-gentoo
label="Gentoo"
initrd=/mnt/hda8/boot/initrd-2.6.8-gentoo.img
append="root=/dev/hda8"
vga=788

You may not need to change kernel to vmlinuz, however this is the usual method, you may not need to add the initrd path as this is not always required. The append is required and you may need to set more params. The reason you were getting the error is because the boot path is the same for both distros, hence the need to change to /mnt.

HTH

Mathew

Last edited by MathewT; 09-22-2004 at 08:22 AM.
 
Old 09-25-2004, 02:49 PM   #5
Brad4321
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake 10.0; Gentoo
Posts: 9

Original Poster
Rep: Reputation: 0
I am still getting the exact same error using your example. Replacing vmlinuz with kernel and vis versa did nothing either .
 
Old 09-26-2004, 09:44 AM   #6
MathewT
LQ Newbie
 
Registered: May 2004
Location: Russell Island Q.L.D
Distribution: Slackware 12
Posts: 28

Rep: Reputation: 15
Brad did you try removing the initrd line? if not then try that.

Have just read another post where apparently -2.6etc is wrong so you could, failing with the above, try removing - from the line.

Good luck.

Mathew

Last edited by MathewT; 09-26-2004 at 09:50 AM.
 
Old 09-26-2004, 11:11 AM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
hi
i always thought that what you've got would work, but it doesn't.......
guess you run lilo in mandrake, so i think the path :

image=/boot/kernel-2.6.8-gentoo

should be smth. like:

image=( mountpoint rootpart. of gentoo)/boot/kernel-2.6.8-gentoo

( if the 'hda8' isn't mounted , you gotto do that first. )

egag
 
  


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
Having trouble configuring Lilo? jacatone Linux - Newbie 6 07-06-2005 08:03 AM
Configuring Lilo? Ricky2004 Linux - Software 5 05-06-2005 04:15 PM
configuring lilo ksd Slackware 30 10-14-2003 10:49 AM
Configuring LILO NiallC Linux - Software 9 07-04-2003 01:39 PM
Configuring LILO iqlinux Linux - Software 7 01-31-2001 11:53 PM

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

All times are GMT -5. The time now is 02:38 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