Visit the LQ Articles and Editorials section
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 05-08-2005, 01:50 PM   #1
Registered: Mar 2005
Posts: 44

Rep: Reputation: 15
Restarting my System and then??....

hi all,

i have completed succesfully till Chapter 6.30, if i restart my system will i have to re-do the chapters which tells me to mount kernel filesystems namely Chapter 6.2,6.4 and 6.8??...

i would be happy if anyone could help me......

thanks in advance,

with regards,
Old 05-08-2005, 05:16 PM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Yes, you'll have to
mount -t proc proc $LFS/proc
mount -t sysfs sysfs $LFS/sys
mount -f -t ramfs ramfs $LFS/dev
mount -f -t tmpfs tmpfs $LFS/dev/shm
mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts
then chroot and do the stuff on the poulating /dev page
mount -n -t ramfs none /dev
mknod -m 622 /dev/console c 5 1
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/zero c 1 5
mknod -m 666 /dev/ptmx c 5 2
mknod -m 666 /dev/tty c 5 0
mknod -m 444 /dev/random c 1 8
mknod -m 444 /dev/urandom c 1 9
chown root:tty /dev/{console,ptmx,tty}
ln -s /proc/self/fd /dev/fd
ln -s /proc/self/fd/0 /dev/stdin
ln -s /proc/self/fd/1 /dev/stdout
ln -s /proc/self/fd/2 /dev/stderr
ln -s /proc/kcore /dev/core
mkdir /dev/pts
mkdir /dev/shm
mount -t devpts -o gid=4,mode=620 none /dev/pts
mount -t tmpfs none /dev/shm
Old 05-08-2005, 10:12 PM   #3
Registered: Mar 2005
Posts: 44

Original Poster
Rep: Reputation: 15

thanks for the reply Andrew......anyway until which chapter i have to do these things??..till i compile the kernel?

with regards,
Old 05-09-2005, 11:26 AM   #4
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
anytime you leave the chroot $ENV will have to re-set all $ENV variables to continue with your LFS build.........


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
Restarting X hangs system, no response at all rutgerw Linux - Software 7 11-29-2005 03:22 AM
restarting x jcombs_31 Slackware 3 12-27-2004 01:07 PM
After restarting program keeps starting up with system Relja Linux - General 3 07-23-2004 01:07 PM
Keeps Restarting NotSoSure123 Linux - Software 14 06-16-2004 02:17 AM
system logger fails when restarting syslog tpau Linux - General 1 10-21-2003 08:40 PM

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