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 11-15-2004, 02:36 AM   #1
ADDY
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Rep: Reputation: 0
/proc


When booting my newly finished LFS system i get the following error:

Mounting proc file system...

Pretty much everything from this point fails.

Then....

pidof cannon execut mount
pidof: mount returned non-zero exit status
pidof: /proc not mounted, failed to mount

at which point it pauses for five minutes and then goes on to finish booting.

I think i have the relevant stuff compiled in the kernel and my fstab seems ok.

Could this be a problem with me not mounting the proc filesystem properly at the beginning of chapter 6? If so do i have to now go back to that point and install all the software again?

Any help much appreciated.
 
Old 11-15-2004, 04:31 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
If you can get as far as a terminal, try executing the command to mount /proc from your login scripts. You need to know that the mount command works, and that procfs is compiled into the kernel.

The simplest explanation for this problem is that mount is being called as “mount” but it's containing directory isn't in your $PATH variable at that point in your start-up scripts. In which case, just give the full path to mount and it will be fine. Or, you can use something like:
Code:
export PATH=$PATH:/sbin/
 
Old 11-15-2004, 05:51 AM   #3
ADDY
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for your help.

Code:
mount /proc
returns mount: command not found.

Code:
whereis mount
returns only the man entries.

It appears the command has not made it into LFS. Any ideas where i have gone wrong?
 
Old 11-15-2004, 06:22 AM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
5.31. Installing Util-linux-2.12
The Util-Linux package contains the mount utility, as well as whereis. It's also possible that mount's not been installed on the PATH (though unlikely, as whereis checks common directories).

I would try to recompile and reinstall Util-linux, noting in particular any errors that occur during compilation.
 
Old 11-15-2004, 06:32 AM   #5
ADDY
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks.

I found that none of the contents of utils-linux had made their way across so am re-installing it.

Do i need to repeat compilation of the kernel etc?
 
Old 11-15-2004, 07:31 AM   #6
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
I can't see anything in Util-Linux util's provides list that would indicate that the kernel wouldn't compile properly without it, so I think you should be OK there, assuming the other packages were installed correctly.
 
Old 11-15-2004, 07:42 AM   #7
ADDY
LQ Newbie
 
Registered: Aug 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Thankyou for your help. Re-installing seems to have sorted the problem.

I'm not getting a similar error for 'ifconfig' and 'route' so will go back and install net-utils. Thanks again.
 
  


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 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
/proc ?? sapilas Linux From Scratch 9 05-18-2002 04:37 PM

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

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