1821638 Members
3098 Online
109633 Solutions
New Discussion юеВ

lilo.conf help

 
James Specht
Trusted Contributor

lilo.conf help

OK. I have rebuilt my kernel to support frame buffering, which works. My problem is lilo can't find the root mount to start the system. I have three images that I tried and none work. The images vesafb1, 2 and 3 are my attempts. Linux is the default image that works. I did a "mkinitrd -v /boot/linux.vesafb.img `uname -r`" . But all I get are a bunch of library errors before it can't find the root file system.

This is a scsi hd and root is on /dev/sda3
Any other information I can supply just ask. This is getting frustrating to say the least!

--Jim

-----LILO.CONF-----


prompt
timeout=50
default=linux
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
vga=791

image=/boot/linux.vesafb1
label=Linux-vesafb
read-only
append="root=LABEL=/"

image=/boot/linux.vesafb2
label=Linux-vesafb
initrd=/boot/initrd-linux.vesafb.img
read-only
append="root=LABEL=/"

image=/boot/linux.vesafb3
label=Linux-vesafb
read-only
root=/dev/dsa3

image=/boot/vmlinuz-2.4.18-14
label=linux
initrd=/boot/initrd-2.4.18-14.img
read-only
append="root=LABEL=/"

"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
12 REPLIES 12
Steven E. Protter
Exalted Contributor

Re: lilo.conf help

What about going with grub? Doesn't help.

I'd like to know which distribution you are using so I can consult the appropriate manual.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James Specht
Trusted Contributor

Re: lilo.conf help

I am using RedHat 8.0 on this system and acouple of others are RH 7.3. We don't use grub here due to some problems in the past that no one wants to retest against, so lilo is my only choice.
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Martin P.J. Zinser
Honored Contributor

Re: lilo.conf help

Did you cut-n-paste the lilo.conf? In case you did you might want to change root=/dev/dsa3
to root=/dev/sda3
James Specht
Trusted Contributor

Re: lilo.conf help

That was a typo in the message. Thanks for pointing it out. I have been searching on the mkinitrd information. It looks like I might need to recreate the initrd to support scsi correctly....I think.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Martin P.J. Zinser
Honored Contributor

Re: lilo.conf help

Hi,,

I did poke around in my /boot (with a custom kernel). Besides of a new vmlinuz it does contain a map file to match the Kernel. How is that in your case?

Greetings, Martin
Mark Grant
Honored Contributor

Re: lilo.conf help

I can't remember if lilo support a "root=" line but you could at least try an

append="root=/dev/hdaX"

you could even try "root=/dev/hdaX" too but the first option will at least prove if we are on the right track.
Never preceed any demonstration with anything more predictive than "watch this"
Stuart Browne
Honored Contributor

Re: lilo.conf help

If you have created a new kernel, then yes, you most definately will have to create a new init ramdisk.

The kernel version/revision is all that's really required to make the new initrd, you just boot up (old kernel), and issue the command:

(Assumption: vesafb1 is the new kernel)

mkinitrd /boot/initrd-vesafb1

The kernel version/revision is basically the /lib/modules/ structure the modules associated with the kernel live.
One long-haired git at your service...
James Specht
Trusted Contributor

Re: lilo.conf help

I appreciate all the help, but so far no luck. Right now if I use an image I get tons of errors for every library module called. My plan now is to start with a clean install of RedHat 8.0 on a test system and see what happens when I rebuild the kernel without any changes to it. Then rebuild the kernel with the fram buffer support.

Thanks again for the help.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Jerome Henry
Honored Contributor

Re: lilo.conf help

Jim,

If you can choose turn to rh9, more stable...

J
You can lean only on what resists you...
James Specht
Trusted Contributor

Re: lilo.conf help

Thanks. I'll look into RH9, but I have vendor issues of course.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Jerome Henry
Honored Contributor

Re: lilo.conf help

Of course, but you can download it for free from redhat.com
(plz 0 here).

J
You can lean only on what resists you...
Stuart Browne
Honored Contributor

Re: lilo.conf help

When building your own kernels from the RH provided source tree's, I'd suggest modifying the EXTRAVERSION flag (in the root Makefile), just to ensure you have your own, separate version.

It means less issue with overlapping /lib/modules/ tree structures.
One long-haired git at your service...