Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 06-09-2002, 03:40 PM   #1
Registered: Sep 2001
Location: Salt Lake City
Distribution: Slackware 8.1
Posts: 133

Rep: Reputation: 15
More lilo sink...

I'm installing LFS for the second time, this time using Slackware as a host
instead of Redhat. My problem is that I can't get lilo to see any kernel
changes in my LFS partition. I had this same problem with the first LFS
install, but got around it using Grub. However, I want to understand lilo so
I'm fighting it out.

Gerard suggested this:
"If you copy the redhat lilo.conf you must copy also all of redhat's kernel images. This is explained in the book. Look in the lilo.conf file for any and each kernel and intitrd file it might use, then copy it over. Basically, when lilo in LFS complains about a missing file, just go get the file from Redhat's /boot directory.

Or, clean out LFS' version of /etc/lilo.conf so you don't need all those other files."

And David suggested this:
"You need to sync the files on the two distros. You can euther use the same /boot partition or just copy the files over. You must sync them by having the same files in both distros /boot folder or you must run lilo from the one with the new files."


I've recompiled the Kernel in LFS, and run depmod after a reboot (Slack is using 2.4.19, and my LFS uses 2.4.18). LFS has its
kernel image under /boot, and Slackware seems to keep it under /. So under /
and /boot of both distos I have copies of both kernel images.

I've tried copying outright Slackware's /boot to LFS's. Then I tried copying
LFS's own to LFS's /boot. I just don't understand how lilo works.
Then man didn't give me too much insight on my problem, nor the mini howto.
Any other reading suggestions would be great.

I've run lilo in Slackware after any changes.

Here is my lilo.conf, it's been copied to the LFS partition:

# LILO configuration file
# generated by 'liloconfig'
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/hda
message = /boot/boot_message.txt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section

# Linux bootable partition config begins
image = /vmlinuz
root = /dev/hda6
label = Linux
# Linux bootable partition config ends

# end LFS

# DOS bootable partition config begins
other = /dev/hda1
label = DOS
table = /dev/hda
# DOS bootable partition config ends

Here is how my hd is mounted:

/dev/hda6 on / type ext2 (rw) []
/dev/hda5 on /boot type ext2 (rw) []
/dev/hda7 on /usr type ext2 (rw) []
/dev/hda8 on /home type ext2 (rw) []
/dev/hda1 on /mnt/vfat type vfat (rw)
/dev/fd0 on /mnt/floppy type vfat (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /proc type proc (rw)
/dev/hda13 on /mnt/lfs type ext2 (rw) []
/dev/hda10 on /mnt/lfs/boot type ext2 (rw) []
/dev/hda11 on /mnt/lfs/var type ext2 (rw) []
/dev/hda12 on /mnt/lfs/usr type ext2 (rw) []
/dev/hda14 on /mnt/lfs/home type ext2 (rw) []
Old 06-09-2002, 09:29 PM   #2
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Just keep this in mind: whenever you change a kernel on the harddrive and you use lilo, you need to re-install lilo in the MBR (usually this is done by simply running /sbin/lilo whenever you update a kernel image or change the lilo.conf file).

Or just use Grub. Grub is a better program in my opinion and solves a lot of problems that Lilo has.


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
How to sink window as icon satimis Linux From Scratch 5 09-01-2005 07:48 AM
How to enable akode-jack sink? hoofer Linux - Newbie 7 07-17-2005 09:40 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
Heat sink, or not to heat sink ? Pres Linux - Hardware 4 07-13-2003 03:49 PM
Made a bootdisk with RedHat 7.1 to boot: Gave me SYSLINUX, not LILO:Want to use LILO Colonel Panic Linux - Software 0 08-17-2001 06:21 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration