Quote:
Originally Posted by charlie_lab
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
|
Do remove grub and redo the lilo steps. It could be that grub and lilo are confusing each other.
Quote:
3) When are you getting the FATAL message?
- During boot or when you run /sbin/lilo or .....
I get the message when I run /sbin/lilo.
|
Ok, clear.
Quote:
4) What do your fstab and lilo.conf look like?
Fstab :
/dev/hdc2 / ext3 defaults 1 1
/dev/hdc1 swap swap pri=1 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
devpts /dev/pts devpts gid=3, mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
lilo.conf :
boot=/dev/hdc2
delay=0
image=/boot/lfskernel-2.6.22.3
root=/dev/hdc2
label=linux
read-only
|
Both look ok.
Quote:
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
|
That doesn't look correct (steps 1 to 3 look ok), step 4/5/6 look mixed up and incorrect:
This is the correct order:
As stated in chap 6.2.2 and 6.2.3
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
As stated in chap 6.62:
chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login
From this point on you can start working on your LFS again.
Please do not deviate from the book and do follow the instructions given (either by the book or by the people answering your posts).
Hope this helps.