LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-16-2004, 08:27 PM   #1
gt3457b
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Question space cleanup after kernel build


I found 'alot' of diskspace used in /usr/src by a custom kernel I built:

src]# du --max-depth=1 -h
1.2G ./linux-2.6.6

linux-2.6.6]# du --max-depth=1 -h ./
435M ./drivers
3.0M ./.tmp_versions
205M ./fs
42M ./include
7.0M ./security
1.9M ./init
4.4M ./lib
6.6M ./crypto
7.3M ./Documentation
99M ./sound
64K ./usr
9.7M ./kernel
69M ./arch
1.9M ./ipc
7.9M ./mm
222M ./net
1.8M ./scripts
1.2G ./

browsing the dirs I see many object files left in there. can I remove these and other binary files (how best?) and have a /usr/src/linux that works for most new app installs?
 
Old 08-16-2004, 09:16 PM   #2
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
make clean

should clean up the object files.
 
Old 08-16-2004, 10:57 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Re: space cleanup after kernel build

Quote:
Originally posted by gt3457b
and have a /usr/src/linux that works for most new app installs?
nowdays most packages no longer look in /usr/src/linux
the link to the source directory is a link "build"
in /lib/modules/kernelVersion

it is absolutely imperative to keep the build directory of your currently running kernel
and if you have a link /usr/src/linux it is absolutely imperative to update it so it points to your currently running kernel source or delete it altogether..one or the other

there are headers in /usr/include/linux that take care of the user space programs

some of the stuff generated during the build is needed but most likely not the object files
like you said....
I think but am not sure that "make clean" will wipe out some configuration things you will need
including your .config so you won't even be able to rebuild without starting from scratch.
 
Old 08-16-2004, 11:08 PM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
make mrproper wipes all... not sure about make clean. I thought it was okay, but worth checking. You can always make a backup of your .config anyway.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 12:32 PM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM
Attempt to build custom kernal through rpm but ran out of disk space.... krazibon3 Linux - Newbie 0 09-04-2004 09:17 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM
User Space - Kernel Space basu_arani Programming 3 05-25-2004 11:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:00 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
Open Source Consulting | Domain Registration