LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-11-2010, 07:35 AM   #16
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

Quote:
Originally Posted by charlie_lab View Post
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.
 
Old 03-11-2010, 09:00 AM   #17
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

I will do a reinstall because i used the packages of a livecd to make the system.
So if anu questions will araise I will come back here.

Roelof
 
Old 03-11-2010, 11:42 AM   #18
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by charlie_lab View Post
Oke,

I will do a reinstall because i used the packages of a livecd to make the system.
So if anu questions will araise I will come back here.

Roelof
Hi,

I just looked at http://www.linuxfromscratch.org/live...mentation.html.
If I am not mistaken, then the packages on this liveCD correspond to the version of the 6.3 book. The package versions in the 6.5 book might differ from the versions that you installed. I am not sure if this will raise any issues later.
 
Old 03-11-2010, 12:54 PM   #19
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Hello,

I don't know either so to be sure I use the right book and the right packages.
Im now building a CLFS pure64 system according to the 1.1.0 book.

Roelof
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
[SOLVED] Before Install: Slackware over Ubuntu (Grub to LILO), Dual w/Vista: LILO question Ubunoob001 Slackware - Installation 3 03-01-2010 03:01 PM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
grub overwrote lilo multiboot, missing one boot in Grub rl23455 Linux - Newbie 1 12-09-2007 01:50 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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