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.
When you use the LiveCD, the writable space is a small ram disk. If you give the LFS build machine a lot of ram, this can seem large, but it's not big enough to download and build all the packages.
The book guides you to download your files to the hard drive of the machine you are building, but doesn't suggest you use it's space for chapter 5 work (when you move to the chroot in chapter 6, that's automatic).
So, create a working directory under /mnt/lfs and do your work there, e.g.
mkdir -v $LFS/work
cd $LFS/work
then
tar xfvz <package>
cd <package>
and follow the instructions in the book.
(and remember, if the package is .tar.bz2, the letters are tar xfvj)
@BStrauss3: The solution you suggest won't work, the OP hasn't reached this point yet. As you correctly stated, the livecd needs some room to work on and it doesn't have that (or not enough). This is why the cat command (see post #14) cannot do its thing.
Too my knowledge, changing the VM settings is the only why to solve this.
BTW: The LFS book does suggest a place to store packages and patches and to work from: $LFS/sources (see 3.1 Introduction).
BTW: The LFS book does suggest a place to store packages and patches and to work from: $LFS/sources (see 3.1 Introduction).
Quote:
Originally Posted by LFS6.6, Section 3.1
Downloaded packages and patches will need to be stored somewhere that is conveniently available throughout the entire build. A working directory is also required to unpack the sources and build them. $LFS/sources can be used both as the place to store the tarballs and patches and as a working directory. By using this directory, the required elements will be located on the LFS partition and will be available during all stages of the building process.
Many people end up overlooking the highlighted part, and work from ~. If you are using the LiveCD, then ~ is on the ramdisk during section 5 and without remastering the LiveCD, you can't make ~ big enough to get to section 6.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.