LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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: 638
Blog Entries: 1

Rep: Reputation: 52
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: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
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: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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 Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
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: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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, 14.2, 15.0
Posts: 635

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:44 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