Linux.com

How to create a new root file system?

Link to this post 15 Jun 09

After nearly 20 hrs,now i have my distro minimal (LFS 6.4) :)
But it has size of around 800MB. How to reduce it's size?
Is it possible to create minimal distro less than 100MB
or even 50 MB with LFS itself or should I use busybox?

Link to this post 15 Jun 09

lakshmipathi wrote:

After nearly 20 hrs,now i have my distro minimal (LFS 6.4) :)
But it has size of around 800MB. How to reduce it's size?
Is it possible to create minimal distro less than 100MB
or even 50 MB with LFS itself or should I use busybox?

Removing all the documentation will buy you some space (like /usr/share/doc, /usr/share/man, etc.). Make sure you don't have source lying around somewhere, too.

If you want to go uber-small ( <100MB ) , then I'd use busybox for all the utilities that I could get away with. Only if I needed some special feature of a utility that the busybox version doesn't offer (or there is no applet for it) would I then use the standard version. Also, look into uClibc, instead of glibc - it is geared for embedded systems. That will save you a lot of space, and Busybox works fine with it.

Link to this post 03 Jul 09

Thanks atreyu.
Now i have mini-linux built from busybox with size 14MB B)
Need to explore a bit with busybox and LFS ,hopefully uploaded and available for others soon :)

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board