Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-25-2012, 01:02 AM   #1
Anders Lind
LQ Newbie
Registered: Feb 2012
Posts: 6

Rep: Reputation: Disabled
10 G not enough for building Linux Kernel?

I tre-id build linux kernel 3.3-rc4 in my VmWare.
The root of Ubuntu is 10G.
After "make all" The /usr/src is like 6 G.
And after I run "make install", It gave me error message; no enough disk...

Is this normal?
Linux kernel is so huge nowadays?
How many disk it need usually?

Thank you
Old 02-25-2012, 01:08 AM   #2
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Post the output of
df -h

Last edited by EDDY1; 02-25-2012 at 01:11 AM.
Old 04-15-2012, 04:51 AM   #3
Registered: Nov 2009
Posts: 129

Rep: Reputation: 9
Oh it depends. Actually a lot of code is appearing on disk twice (as smaller files and merged files, which are ready to use drivers). I can't believe, that 10G is not enough for kernel. I know it could quite huge nowadays, just source of 3.3.1 is 444.5MiB, but it is not enough to fill 10G of space
Old 04-15-2012, 05:07 AM   #4
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
"10 G not enough for building Linux Kernel?" I would do it for less. What's the currency?

I've got two copies of the kernel source, one used as a build environment but / (which has all the OS except for what's on /var and what's in /home) is only using 6.9 GB
c@CW8:~$ df -h /
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/root      jfs    15G  6.9G  7.5G  49% /
That's for Slackware 13.37 plus ~30 extra apps.

EDIT: the build environment itself (after building so with all the binaries) is only 1.3 GB:
c@CW8:~$ du -hs /home/c/src/linux-
1.3G	/home/c/src/linux-

Last edited by catkin; 04-15-2012 at 05:09 AM.
Old 04-15-2012, 10:33 PM   #5
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,205
Blog Entries: 4

Rep: Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762Reputation: 2762
I've built many a Linux kernel on a machine that had 512MB. The process of building a kernel is essentially identical to that of constructing any other "executable program" or "library" in any routine situation whatsoever. The only peculiar characteristic of "the Linux kernel, the computer program," is merely the context in which it is designed to run.


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
LXer: Building Your Own Linux Kernel: Tricky kernel options (part 3) LXer Syndicated Linux News 0 10-23-2009 02:50 AM
Need help in building a Linux Kernel oliviapesayco Linux - Newbie 5 06-25-2007 07:14 PM
Need help in building a Linux Kernel oliviapesayco Linux - General 2 06-20-2007 07:06 AM
Building the linux kernel on redhat. liguorir Linux - Software 8 06-21-2003 04:09 PM

All times are GMT -5. The time now is 12:19 AM.

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