Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: Disabled
Question I want to build linux from 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, 02:22 AM   #2
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 626
Blog Entries: 1

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

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

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, 04:50 AM   #4
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 3,613
Blog Entries: 1

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
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, 07:38 AM   #5
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,345
Blog Entries: 36

Rep: Reputation: Disabled
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, 07: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,702
Blog Entries: 8

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
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, 10:20 PM   #7
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2
Posts: 387

Rep: Reputation: 81
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 10:30 PM.
1 members found this post helpful.
Old 08-04-2014, 10:19 AM   #8
Registered: Feb 2014
Location: China
Distribution: CentOS6.4
Posts: 51

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


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

All times are GMT -5. The time now is 08:55 PM.

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