LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-13-2010, 04:01 PM   #1
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Rep: Reputation: 15
where is the /sources directory


I created the sources directory ($LFS/sources) and downloaded the packages , after rebooting I can't find it , the $LFS exist (mnt/lfs) but the /mnt/lfs/sources is gone ... probably the $LFS/tools will be gone too in my next boot , any ideas?
 
Old 06-13-2010, 04:09 PM   #2
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
The most obvious reason I can think of is if you're not mounting them properly after ending a session and coming back to work on it. From the LFS-BOOK-6.1.1:
Quote:
Now mount the file systems:
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
Remember that if for any reason you stop working on the LFS system and start again later, it is important to
check that these file systems are mounted again before entering the chroot environment.
 
Old 06-13-2010, 09:16 PM   #3
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Rep: Reputation: 17
LFS 6.6 doesn't mention mounting proc and sysfs. Which book was the system built with?
 
Old 06-14-2010, 04:31 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

@Blender3D:
Quote:
LFS 6.6 doesn't mention mounting proc and sysfs.
Yes it does......

Have a look at 6.2. Preparing Virtual Kernel File Systems. And that is from the stable LFS 6.6 version.

But I do have to agree with you on the OP not giving the info needed (which LFS version is he using, which chapter is he having trouble [probably 2 and 3]).

brucehinrichs has a good point: Did the OP remount after stopping?

Hope this clears things up.
 
Old 06-14-2010, 12:17 PM   #5
giraf
Member
 
Registered: Dec 2005
Distribution: Debian
Posts: 135

Original Poster
Rep: Reputation: 15
I'm using LFS 6.6 (the latest , I thought that the latest is the better choice ) . I got stuck at chapter 4.2 where I needed to chown .

At the point I got stuck , I haven't created any
$LFS/proc and $LFS/sys
Are they created automatically ?
Should I start my new session by mounting/creating them ?
Where are all the packages that I downloaded hidden ...?

Thanks.
 
Old 06-14-2010, 12:47 PM   #6
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
The copy I have for reference is 6.1.1, but it should be applicable. From section 4.1:
Quote:
Do not forget to check that $LFS is set whenever you leave and reenter the current working environment (as
when doing a “su” to root or another user).
If the $LFS variable wasn't set when you started the current working session (or after you changed user) then the downloads should have landed in your build system instead of the target system. If you tried to create the $LFS/sources directory without the variable set, you probably created the directory /sources in your build directory tree and when you downloaded the files, they would have gone to this directory instead of $LFS/sources (the target directory).

As for the $LFS/proc and $LFS/sys directories, I believe they were created (then deleted) in a prior exercise (it's been a while since I played with LFS). You shouldn't need to create them until the book tells you to.
 
Old 06-14-2010, 11:11 PM   #7
supern0va
LQ Newbie
 
Registered: May 2010
Posts: 12

Rep: Reputation: 0
I 'm not sure what you mean by your files being gone. My guess would be that an error could have occured for example because you didn't unmount properly before rebooting. Have you checked the file system, yet?

Code:
fsck <partition>
where <partition> is the partition you are installing lfs to of course.
 
  


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
sources directory rhlee_work Linux - Newbie 5 06-01-2010 12:35 PM
Installing sources in the wrong directory. stf92 Linux - Software 6 05-13-2009 02:20 AM
LXer: Likewise Open-Sources Active Directory Authentication for Linux LXer Syndicated Linux News 0 12-06-2007 07:20 AM
directory with kernel sources? irkku Linux - Newbie 1 05-19-2007 12:22 PM
Software Sources Manager, how to add installation cd sources after deletion Lakota Mandriva 1 10-23-2003 01:39 AM

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

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

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