Linux From ScratchThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, I didn't have any problem locating it using Google: "lilo source". I found it at: ftp://metalab.unc.edu/pub/Linux/system/boot/lilo/. I'm surprised that the book doesn't have information about it.
@penguiniator: I'm not sure I understand the question.
You can use lilo instead of grub if you want, it is just that the LFS team decided to start using grub at a certain point. I had to use lilo on my MacPro (grub wasn't playing nice with EFI at the time). It worked like a charm.
I used the binary package (unpack from the root dir, configure, run and all is good to go). You could keep in the spirit of LFS and compile it yourself, you do need some extra dependencies which are not part of the current LFS versions, check the install documentation that comes with the package to see which.
The OP should have all the info he needs, that is correct!
One more piece of information: I installed lilo after the last package was installed (that would be vim 7.2 in LFS 6.6), and I did not (maybe too obvious) install grub at all.
I'm not familiar with your partition setup, but shouldn't these 2 be the same:
boot /dev/hdc1
root=/dev/hdc3
Or are / and /boot separate partitions? If not both should read either /dev/hdc1 or /dev/hdc3 (the device you created in 2.3 and is mounted as $LFS - /mnt/lfs)
If that doesn't solve the problems:
Where in the book did you install and configure lilo? If you haven't tried already you might want to re-enter the chrooted environment as shown in chapter 6.62 (that is assuming you finished chapter 6!! If not finish it first) and do lilo's configure steps again.
Yes, youre right.
I have everything on 1 partition. I was confused with a gentoo-setup I once used.
I configured Lilo on my own because in the 6.5 book I couldn't find anything about lilo only about grub.
I configured this way :
untar the lilo tarball.
Make a lilo.conf
run /sbin/lilo
1) At what stage/chapter in the book are you?
- Did you finish everything or is there still stuff to do.
2) In post #10 you mention this: Also Grub is complaining that in the chrooted envirioment grub can't reconigze any disk..
- I do hope you mean lilo and not grub. Or did you install both (which I told you not to do in post #9)?
3) When are you getting the FATAL message?
- During boot or when you run /sbin/lilo or .....
4) What do your fstab and lilo.conf look like?
- I'm talking about the ones from the LFS setup, not your host.
5) Which steps did you exactly take to get to this error message?
- Did you do these steps before re-configuring/running lilo:
- Remount -> Section 6.2.2, “Mounting and Populating /dev”
- Remount -> Section 6.2.3, “Mounting Virtual Kernel File Systems”
- re-enter the chrooted environment as stated in 6.62
6) Did you configure your kernel correctly?
- This is only of interest if you finished LFS and are trying to boot it.
1) At what stage/chapter in the book are you?
- Did you finish everything or is there still stuff to do.
Am im at the last chapter of the book where you have to install the bootloader. If that's a succes then everything of the book is done.
2) In post #10 you mention this: Also Grub is complaining that in the chrooted envirioment grub can't reconigze any disk..
- I do hope you mean lilo and not grub. Or did you install both (which I told you not to do in post #9)?
I installed both, Im sorry. I will try to delete grub from the system
3) When are you getting the FATAL message?
- During boot or when you run /sbin/lilo or .....
5) Which steps did you exactly take to get to this error message?
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
export LFS=/mnt/lfs
mkdir -pv $LFS
mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap
partitions)
swapon /dev/sda1
4. Mount the virtual kernel filesystems
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login
6. Populating /dev
mount -nvt tmpfs none /dev
mkdir -v /dev/pts
mkdir -v /dev/shm
mount -vt devpts -o gid=4,mode=620 none /dev/pts
mount -vt tmpfs none /dev/shm
7. Entering your working directory
cd /sources
6) Did you configure your kernel correctly?
- This is only of interest if you finished LFS and are trying to boot it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.