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'm near the end -- installing Util-linux, and my lfs partition is full!! How frustrating! I had reserved 2.1 gig for LFS, and I guess its not quite enough. I don't have a means to backup this partition (my other partitions are close to full). Nor do I have a CD burner, zip drive, etc.. So resizing the partition is not an option at this point.
Are there any files that I can remove? I've done a 'make clean' on all the package directories already. I'm thinking man-pages could be the first to go.
My suggestion: keep your compressed package files and their patches. Remove all your source trees when you're done using them. If you ever need them again, you can decompress them and apply the patch(es) using an on-demand basis.
As soon as you boot into the system the first time, remove the static directory when you feel the system is stable. Then also consider stripping the debug information from your executables (mentioned a little later in the book).
However, this problem won't go away just because you finish the system. You'll still need to acquire more space if you plan to install anything later.
When you say "remove source trees" do you mean all the decompressed pacakges (including sub directories)? Does the install process put all the executables, libraries, etc into /bin, /lib, etc. so that its safe to delete souce trees?
BTW, I was able to free up just enough space to squeak by the rest of the chapter, and when I removed the bebugging info and /static, I am down to 60% used!
Yeah, after you issue "make install" command, all the needed files are copied over to your system directories. So you can remove the directories created when you un-tarred the package.
There is a issue with that actually...
When you finish with installing the system and you begin with the beyond lfs, you will need that space so its recomended to delete the /static tree, as these are the sources and are not needed any more.
But, if you actually plan on upgrade/update something, you will have to uninstall the previous version (always a good idea, although you can install over the old one) prior to install the new one, this is made from the source using "make uninstall", also, not every app has the uninstall option.
When i was told of this i had already deleted the sources so i couldnt uninstall, but i kept the tarballs in a directory in another partition, where i have the lfs and blfs directories, and i install/uninstall decompressing the sources over there and when im finish with them i delete them again. its always a food idea to keep secure all the tarballs...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.