LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LinuxFromScratch is still too big ... (https://www.linuxquestions.org/questions/linux-from-scratch-13/linuxfromscratch-is-still-too-big-4175441904/)

jiapei100 12-17-2012 11:52 PM

LinuxFromScratch is still too big ...
 
Hi, all:

From this page
http://www.linuxfromscratch.org/lfs/...hitecture.html
it seems to tell that LFS will build a 32-bit system at a size 648 MB.

Why is it still that big? Is there any very small Linux release? How can I build a very small Linux by myself, like a LFS?

Cheers
Pei

druuna 12-18-2012 12:24 AM

Quote:

Originally Posted by jiapei100 (Post 4851436)
From this page
http://www.linuxfromscratch.org/lfs/...hitecture.html
it seems to tell that LFS will build a 32-bit system at a size 648 MB.

Why is it still that big? Is there any very small Linux release? How can I build a very small Linux by myself, like a LFS?

LFS isn't meant to build a small system. It is an exercise in learning the inner workings of an Linux system.

spiky0011 12-18-2012 02:46 AM

Hi

What do you want a smaller system for, and how small? you could remove things from lfs (till it breaks) to reduce it,s size. But you will loose functions.
I am actually going to do this to day but I only want it to be a server (plus an excersise)

pgpython 12-18-2012 05:13 AM

If you want a ultra system for a bare bones server you can check out http://buildroot.uclibc.org/. Its designed for embedded systems so you won't have the full functionality of a distro but you will have an ultra slim size 0 version of linux which you could set up as a server

xinglp 12-18-2012 05:37 AM

Quote:

Originally Posted by jiapei100 (Post 4851436)
Hi, all:

From this page
http://www.linuxfromscratch.org/lfs/...hitecture.html
it seems to tell that LFS will build a 32-bit system at a size 648 MB.

Why is it still that big? Is there any very small Linux release? How can I build a very small Linux by myself, like a LFS?

Cheers
Pei

You can strip a lot of files. use xz to compress manpage and info files. remove static lib.

Try my lfs system here http://sf.net/projects/smartutils/files/lfs_linux/
I install some blfs packages also. about 400MB.

And you can make big software which has more than one execute file linked to one internal big static lib to use a shared .so lib.
But this will make the execute file load slow than before.

I have tried to do this on php mysql gdb gcc. But I finally give up on gcc, because it will make the lfs build time tiwce.

About the gcc use a libbackend.so, it will save 20MB with lto enabled.
http://gcc.gnu.org/ml/gcc-help/2011-04/msg00025.html

jiapei100 12-18-2012 06:25 AM

Fabulous !! That's exactly what I want !!!!
I want a very small system for a very simple web server...

Quote:

Originally Posted by pgpython (Post 4851666)
If you want a ultra system for a bare bones server you can check out http://buildroot.uclibc.org/. Its designed for embedded systems so you won't have the full functionality of a distro but you will have an ultra slim size 0 version of linux which you could set up as a server


Keith Hedger 12-18-2012 09:12 AM

Also if you don't need every option for common commands (sed, find etc) try installing busybox as it includes most common commands with the more common options that way you use one bigger program instead of lots of little ones, most samll/rescue distros use a version of busybox.


All times are GMT -5. The time now is 03:39 AM.