LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 05-16-2002, 05:49 PM   #1
sapilas
Member
 
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176

Rep: Reputation: 30
/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 ?
 
Old 05-16-2002, 05:52 PM   #2
sapilas
Member
 
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176

Original Poster
Rep: Reputation: 30
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 ??
 
Old 05-16-2002, 06:07 PM   #3
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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)).
 
Old 05-16-2002, 06:13 PM   #4
sapilas
Member
 
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176

Original Poster
Rep: Reputation: 30
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
 
Old 05-16-2002, 06:19 PM   #5
sapilas
Member
 
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176

Original Poster
Rep: Reputation: 30
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 ?
 
Old 05-16-2002, 06:33 PM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 05-17-2002, 04:18 AM   #7
sapilas
Member
 
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176

Original Poster
Rep: Reputation: 30
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...

 
Old 05-17-2002, 03:11 PM   #8
sapilas
Member
 
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176

Original Poster
Rep: Reputation: 30
Question

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 ?
 
Old 05-18-2002, 04:53 AM   #9
sapilas
Member
 
Registered: Apr 2002
Location: Greece
Distribution: the best !
Posts: 176

Original Poster
Rep: Reputation: 30
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...
 
Old 05-18-2002, 04:37 PM   #10
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
See ALFS http://automated.linuxfromscratch.org
 
  


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
/proc eltn Programming 5 02-16-2006 11:24 AM
Correlation between /proc/devices and /proc/modules ColinLadyka Linux - General 1 02-13-2006 05:25 PM
/proc ADDY Linux From Scratch 6 11-15-2004 07:42 AM
proc weazy Linux - General 2 06-01-2003 02:59 AM
What /proc proc file do I need? GoboFraggle Programming 1 02-04-2003 11:52 PM


All times are GMT -5. The time now is 02:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration