LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-16-2010, 06:10 PM   #1
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
Having some problems with chapter 6


Ok I have started chapter 6 but when I try to do this:

mknod -m 600 $LFS/dev/console c 5 1
mknod -m 666 $LFS/dev/null c 1 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


It requires administrative privileges and it also says that proc is already mounted and sysfs is already mounted.

It didn't say if I am supposed to continue logged into the lfs user or as root but this says I need root to do these tasks.

So I ran these commands as root and proceeded. Does this mean something will go wrong because two of the virtual filesystems were "already mounted"?
 
Old 03-16-2010, 06:50 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

which hostsystem and which book-version are you using?
A quote from the 6.5 book at the end of chapter 5:
Quote:
5.32. Changing Ownership
Note
The commands in the remainder of this book must be performed while logged in as user root and no
longer as user lfs. Also, double check that $LFS is set in root's environment.
And this most probably also applies for your version.
 
Old 03-16-2010, 07:25 PM   #3
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by crts View Post
Hi,

which hostsystem and which book-version are you using?
A quote from the 6.5 book at the end of chapter 5:

And this most probably also applies for your version.
Ok thanks that answers that question but what about the "already mounted" problem?
 
Old 03-16-2010, 08:15 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by David2010 View Post
Ok thanks that answers that question but what about the "already mounted" problem?
I am not sure what exactly the problem is. As you describe it, you mounted it previously and then tried to mount it a second time.
What was the exact error message? It should have also told you the location where you tried to mount it.

If unsure that it has been mounted properly you can unmount it and remount it:
Code:
umount -v $LFS/sys
umount -v $LFS/proc
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
 
  


Reply


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
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 07:30 AM
gcc problems in chapter 5 betatoy Linux From Scratch 1 01-30-2007 02:47 PM
lfs chapter 6.11 Binutils-2.16.1 make problems Nislick Linux From Scratch 3 08-15-2006 06:25 PM
glibc make install problems in chapter 5 scudco Linux From Scratch 3 09-12-2004 05:12 PM
Chapter 6: Glibc make check problems davemar Linux From Scratch 0 04-08-2004 06:17 PM

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

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