LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-18-2012, 12:52 AM   #1
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 66

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, 01:24 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
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, 03:46 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,764
Blog Entries: 1

Rep: Reputation: 245Reputation: 245Reputation: 245
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, 06:13 AM   #4
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

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, 06:37 AM   #5
xinglp
LQ Newbie
 
Registered: Jun 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 06:51 AM.
 
Old 12-18-2012, 07:25 AM   #6
jiapei100
Member
 
Registered: Jan 2005
Location: Surrey, BC, Canada
Distribution: Ubuntu 12.04
Posts: 66

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, 10:12 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 1,010

Rep: Reputation: 223Reputation: 223Reputation: 223
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:29 PM
I found linuxfromscratch need help avt3kk Linux - Newbie 10 02-17-2006 03:44 PM
LinuxFromSCratch inside vmware thinusp Linux From Scratch 8 05-11-2004 11:03 PM
news.linuxfromscratch.org kev82 Linux From Scratch 2 06-16-2003 11:12 AM


All times are GMT -5. The time now is 12:34 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration