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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
05-16-2002, 05:49 PM
|
#1
|
Member
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176
Rep:
|
/proc ??
you say in a point in the book you have to mount the /proc ..in order for some programs to work...
well my /proc is already mounted . . cannot remounted, or umounted, so it is ok if for the time use /my_lfs/proc --> /proc
make it a link sto the current /proc ?
is it ok ?
|
|
|
05-16-2002, 05:52 PM
|
#2
|
Member
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176
Original Poster
Rep:
|
or I better remove temporarily the
/proc proc
line from my fstab and reboot the system....
and then mount it manually to my chroot env ??
|
|
|
05-16-2002, 06:07 PM
|
#3
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Re: /proc ??
Quote:
Originally posted by sapilas
you say in a point in the book you have to mount the /proc ..in order for some programs to work...
well my /proc is already mounted . . cannot remounted, or umounted, so it is ok if for the time use /my_lfs/proc --> /proc
make it a link sto the current /proc ?
is it ok ?
|
Read the commands in the book again. You don't just mount proc again, you "mount --bind" it, which is totally different from a regular mount. It's like making a copy of a directory (compare it to a hard link (not symlink)).
|
|
|
05-16-2002, 06:13 PM
|
#4
|
Member
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176
Original Poster
Rep:
|
There is no such a bind ??
or am I wrong ?
=====================================
Mounting $LFS/proc file system
In order for certain programs to function properly, the proc file
system must be mounted and available from within the chroot'ed
environment as well. It's not a problem to mount the proc file system
(or any other file system for that matter) twice or even more than
that.
If you're still logged in as user "lfs", you should log out and log in
again as user root. The reason for this is simple: only root is
allowed to mount filesystems and to run chroot.
The proc file system is mounted under $LFS/proc by running the
following command. We'll also chown it to user root/group root while
we're at it (the rest of the filesystem is chown'ed to root.root in a
minute when we start with chapter 6).
chown root.root $LFS/proc &&
mount proc $LFS/proc -t proc
|
|
|
05-16-2002, 06:19 PM
|
#5
|
Member
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176
Original Poster
Rep:
|
well I checked man 8 mount there is a command --bind . .
but I didn;t find it in the book....
so that;s the solution
use that option in the mount
mount --bind it as root in the linux and then chroot env and the mount will stay there in the new env ?
|
|
|
05-16-2002, 06:33 PM
|
#6
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
sorry I meant to say to try using mount --bind instead of the regular one.
But before you try it: did you type $LFS? Is $LFS set? If $LFS is not a variable, it will be ignored and when you type the command, bash will try to execute this: mount proc /proc -t proc
instead of: mount proc /mnt/lfs/proc -t proc
Perhaps you need to read chapter 2 - about $LFS again.
It tells you to always replace $LFS by the real path, don't type $LFS literally, unless you are 100% sure that the $LFS variable is set. If it's not, you can expect bad things to happen. You could chroot into your host distribution instead of to /mnt/lfs and overwrite your Debian or Redhat or whatever it is with LFS files. It won't go over well and you will probably end up with a busted Linux system that has been renderred unusable.
So, make sure $LFS is set. it is very important.
|
|
|
05-17-2002, 04:18 AM
|
#7
|
Member
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176
Original Poster
Rep:
|
well to be sure I use /my_lfs/ instead of the $LFS
but I get an errro this specific device does not exists....but strange cause when I type mount I get the list and /proc is there listed...

|
|
|
05-17-2002, 03:11 PM
|
#8
|
Member
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176
Original Poster
Rep:
|
the problem I think was that I was starting the chroot without the special command .....that is provided...
I reistall everyting to be sure ..but I have two thinks to ask...cause I am during an exam period and have no time to waste searching..
I am at the point that I install the LFS-Bootscripts....
It says the is you like BSD startup scripts just ignore chp7... I was using familiar with slackware's init script....and I heard that those are bsd like. are they ???
if yes then I should skip chp7 to get slackware like init scripts in the chap8..
also is the FHS issues important to follow ? or just ignore them ?
|
|
|
05-18-2002, 04:53 AM
|
#9
|
Member
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176
Original Poster
Rep:
|
well the LFS whole setup takes less than 4 hours . . I believe...
with a amd @ 1,53Ghz you are done quite fast.. if yuo have read the whole book once and understand what are you going to do.
TO LFS DEVELOPERS?
---------------------------
Is there any way that you can create a script that runs all the bzip2 -d and tar -xvf commands and then compile each package one by one ? and promt the user for the glibc version and the compatibility FHS issues ?
it will make LFS a few hours setup with no much efford...
|
|
|
05-18-2002, 04:37 PM
|
#10
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
|
|
|
All times are GMT -5. The time now is 01:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|