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 04-13-2010, 11:44 AM   #1
ukwho
Member
 
Registered: Feb 2009
Posts: 37

Rep: Reputation: 15
compiling and installing linux kernels


Hello,

I have downloaded the newest most stable Linux kernel, 2.6.33.2.

I thought I would test this using VirtualBox. So I create a dynamically sized hard disk of 4 GB. And installed CentOS 5.3 with just the minimum packages, just the development libs and development tools.

I unzipped in the /usr/src directory.

I setup the make menuconfig with just the default settings.

After that I ran make and got the following error:
Code:
net/bluetooth/hci_sysfs.o: final close failed: No space left on device
make[2]: *** [net/bluetooth/hci_sysfs.o] Error 1
make[1]: *** [net/bluetooth] Error 2
make: *** [net] Error 2
The amount of space I have left is after it give that error is:
Code:
# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      3.3G  3.3G     0 100% /
/dev/hda1              99M   12M   82M  13% /boot
tmpfs                 125M     0  125M   0% /dev/shm
So my virtual harddisk size is 4gb and the actual size if 3.5gb. So what happened to the other 500mb?

How much size should I give when compiling and installing a Linux kernel? Are there any guidelines to follow when doing this? This is my first time, so just experimenting with this.

Many thanks,
 
Old 04-13-2010, 01:43 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by ukwho View Post
So my virtual harddisk size is 4gb and the actual size if 3.5gb. So what happened to the other 500mb?
Some of the file system is reserved for use by the file system. Also, you may be seeing the problem of "hard drive" math versus "o/s math". Hard drives report their size using 1000 as the divisor for KB, MB, GB, etc. Operating systems report the size of the file system using 1024 as the divisor.

Quote:
Originally Posted by ukwho View Post
How much size should I give when compiling and installing a Linux kernel?
If you did a full install of CentOS, you probably need a file system that is between 8 GB and 12 GB if you want to build kernels. In my experience, after a build, a kernel source tree uses around 4 GB of space.
 
  


Reply

Tags
compiling, kernel


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
Compiling other kernels bandrei Linux - Newbie 6 07-06-2006 07:13 PM
Compiling kernels 2.6.10 aufomechanic Linux - Newbie 2 02-08-2005 09:13 AM
getting/compiling kernels ninmonkeys Linux - General 1 11-06-2004 08:19 PM
compiling kernels for different systems alaios Linux - General 2 11-06-2004 04:48 PM
compiling kernels Doug Hammond Linux - General 4 02-18-2003 03:32 PM


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

Main Menu
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