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 have tried LFS before and failed for a variety of reasons, but I am persistant.
My problem may well be connected to the fact that my laptop had a problem returning from hibernation and did a full restart. When I fired up a terminal, although $LFS was still set to /mnt/lfs, and lfs user and group still existed, when I did ls against $LFS as user lfs it was empty (I had previously built up to 5.27 Make-3.82).
In Nautilus I found sources and tools directories and so copied them as root in the terminal to $LFS (/mnt/lfs). I then switched to user lfs and tried to build patch-2.6.1. Configure was fine, make was fine, make check had no errors, all passes, but when I did make install I got the following:
Both points mentioned by spiky0011 are also valid. Have a look at the mount commands first, it might be that all is still there but not yet mounted (re-visit chapter 2 and only execute the mount command(s)).
If that doesn't solve the problem:
You mention copying files as root user, which might be a (big?) problem. All of chapter 5 is done as user lfs, which explains the permission denied messages when trying to install them.
You might try setting the permissions for all in $LFS to lfs/lfs. I'm not 100% sure that this will solve the permission denied errors, I would personally start from scratch. If you do want ti give it a try (as root user):
Spikey0011: I could disable hibernation but would prefer not to. Up until this point my machine had hibernated a number of times and not had a problem when I came to resume the LFS build. However if this problem reoccurs then I will certainly go with your suggestion.
I followed your suggestion or remounting but don't really know whether this contributed to the solution, but it can't have hurt.
druuna: I went with your suggestion of globally changing the file permissions, and re ran make install. It worked fine this time.
Thanks again for all the help people. I am sure to need more help along the way, so see you later.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.