Linux From ScratchThis 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.
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.
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?
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.
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?
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 ...?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.