LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2014, 01:01 AM   #1
mirage1993
Member
 
Registered: Feb 2014
Location: China
Distribution: CentOS6.4
Posts: 51

Rep: Reputation: Disabled
Question I want to build linux from scratch.how many space is suitable? 3.5G?


Recently,I am building my linux system from scratch. Now,I am going to build a temporary system.But my lfs partition only have 3.5G.
I want to know should I enlarge this partition?
how many space is suitable?
 
Old 08-03-2014, 01:22 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 620
Blog Entries: 1

Rep: Reputation: 49
I would give it at least 40G.
 
1 members found this post helpful.
Old 08-03-2014, 02:06 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,437

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
Chapter 2 would appear to answer your question ... as LFS requires you to follow instructions closely, I would suggest you start at the beginning:

Quote:
A minimal system requires a partition of around 4 gigabytes (GB). This is enough to store all the source tarballs and compile the packages. However, if the LFS system is intended to be the primary Linux system, additional software will probably be installed which will require additional space. A 10 GB partition is a reasonable size to provide for growth. The LFS system itself will not take up this much room. A large portion of this requirement is to provide sufficient free temporary storage. Compiling packages can require a lot of disk space which will be reclaimed after the package is installed.
 
1 members found this post helpful.
Old 08-03-2014, 03:50 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,577
Blog Entries: 1

Rep: Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506Reputation: 506
When I do gentoo installs I end up with about 12GB of usage by the time that I have X and a window manager. The /usr/share/doc/ folder is probably 4GB of that. So it will likely depend on how much of a system you want to have. On my debian systems I do about 40GB, but I edit audio files that can be 4GB in size (hour long concerts at high sampling rates). And applications like audacity makes copies of the original and each edit (undo history) in /tmp/. So even 40GB with 30GB free can be quite tight in some cases. As in export every two edits so you can close and reload with the edited file and have a shorter undo history.
 
1 members found this post helpful.
Old 08-03-2014, 06:38 AM   #5
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 7,798
Blog Entries: 11

Rep: Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103Reputation: 2103
Code:
Filesystem     Type      Size  Used Avail Use% Mounted on
/dev/root      ext4       17G  1.2G   15G   8% /
devtmpfs       devtmpfs  1.8G     0  1.8G   0% /dev
tmpfs          tmpfs     1.8G  116K  1.8G   1% /run
is what I would up using.
 
1 members found this post helpful.
Old 08-03-2014, 06:57 AM   #6
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,646
Blog Entries: 8

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
grail's post deserves a big asterisk. I have not tried LFS, but I have read the book. It answers all such questions before they are asked. It is a very good idea to read the entire book at least once before beginning.
 
2 members found this post helpful.
Old 08-03-2014, 09:20 PM   #7
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37
Posts: 305

Rep: Reputation: 61
I compile kernel, games, programs, and libraries.
Even with all that source code present simultaneously, plus my own work on some 10+ projects and some hundred copies of that source code, I only use about 32GB. That is consistent.

With 3.5GB you could still give it a try.
If it runs out of space, it will stop compiling.
To get the space back
>> make clean

If anything got tight, just tar /usr/doc to a memory stick (probably can leave it there as most of it is boilerplate disclaimers and another copy of the same license document).

Look for internationalization files you don't use. Unless you plan on learning a foreign lanugage most of them can go.

Cut your logs down to one recent copy.

Free up /tmp memory. Many programs leave junk there.

Investigate caches in KDE and other programs. These will be wasting the most space.
All caches can be cleared or deleted.

Create a new user to do the compiling and never have that user start an X-window program.
Then tar all the other users (and their program caches in .xxx directories) out to a memory stick for the duration of the compiling.

It is not that compiling uses so much disk space, it is all the developers that waste your disk space for their program.

Last edited by selfprogrammed; 08-03-2014 at 09:30 PM.
 
1 members found this post helpful.
Old 08-04-2014, 09:19 AM   #8
mirage1993
Member
 
Registered: Feb 2014
Location: China
Distribution: CentOS6.4
Posts: 51

Original Poster
Rep: Reputation: Disabled
Thanks everyone,I GET IT!!
 
  


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
[SOLVED] Linux from scratch - unable to create the build directory ganiz Linux From Scratch 11 11-18-2013 11:40 AM
LXer: Build an Arch Linux system from scratch LXer Syndicated Linux News 0 10-15-2012 06:10 PM
What is the best way to correctly build the latest Linux From Scratch distribution? linuxiso Linux - Newbie 3 02-06-2011 01:34 AM
Wanting to build Linux as second OS from scratch wildnorth Linux From Scratch 5 11-15-2006 09:03 PM
hplip on a linux from scratch build? behmjoe Linux - Hardware 0 12-19-2005 07:57 PM


All times are GMT -5. The time now is 12:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration