LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 12-17-2012, 11:52 PM   #1
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Rep: Reputation: 15
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
 
Old 12-18-2012, 12:24 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by jiapei100 View Post
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.
 
1 members found this post helpful.
Old 12-18-2012, 02:46 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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)
 
Old 12-18-2012, 05:13 AM   #4
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 142

Rep: Reputation: 32
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
 
Old 12-18-2012, 05:37 AM   #5
xinglp
LQ Newbie
 
Registered: May 2009
Posts: 18

Rep: Reputation: 2
Quote:
Originally Posted by jiapei100 View Post
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

Last edited by xinglp; 12-18-2012 at 05:51 AM.
 
Old 12-18-2012, 06:25 AM   #6
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 70

Original Poster
Rep: Reputation: 15
Fabulous !! That's exactly what I want !!!!
I want a very small system for a very simple web server...

Quote:
Originally Posted by pgpython View Post
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
 
Old 12-18-2012, 09:12 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linuxfromscratch.org down? moved? cbeaker Linux From Scratch 4 12-14-2006 11:29 AM
I found linuxfromscratch need help avt3kk Linux - Newbie 10 02-17-2006 02:44 PM
LinuxFromSCratch inside vmware thinusp Linux From Scratch 8 05-11-2004 10:03 PM
news.linuxfromscratch.org kev82 Linux From Scratch 2 06-16-2003 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration