Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TIP: Clean your old kernels => gain alot of diskspace
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Zacay
Tux's lil' helper
Tux's lil' helper


Joined: 23 Mar 2003
Posts: 95

PostPosted: Mon Apr 05, 2004 11:57 pm    Post subject: TIP: Clean your old kernels => gain alot of diskspace Reply with quote

Ok this is new to me,
This is for newbies like me :D

If you have problem with diskspace, and you even have tried cleaning /usr/portage/distfiles. You might want to look at your /usr/src/ directory

Code:

# cd /usr/src && du -h


And check how much diskspace is lost for your old kernel trees,
I saved 2.5gb by removing old kernels that I dont use. from 90% full root partition I have now 50% full!!!

I didn't know that kernel trees could take so much diskspace :D
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Tue Apr 06, 2004 12:12 am    Post subject: Reply with quote

You probably want to check the virtual/linux-sources line /var/cache/edb/virtuals and /var/cache/edb/world to make sure that any old unused kernels aren't listed.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
StringCheesian
l33t
l33t


Joined: 21 Oct 2003
Posts: 887

PostPosted: Tue Apr 06, 2004 7:41 am    Post subject: Reply with quote

Does unmerging an old kernel remove all traces of it? (besides /boot/*, of course)

What's the cleanest/best way to remove a kernel?
Back to top
View user's profile Send private message
Boba
n00b
n00b


Joined: 10 Sep 2002
Posts: 38

PostPosted: Tue Apr 06, 2004 9:23 am    Post subject: Reply with quote

emerge -[p]P <whatever>-sources
works fine for me...
_________________
LinuxSoftBoard.de
Back to top
View user's profile Send private message
Zacay
Tux's lil' helper
Tux's lil' helper


Joined: 23 Mar 2003
Posts: 95

PostPosted: Tue Apr 06, 2004 9:25 am    Post subject: Reply with quote

tomk wrote:
You probably want to check the virtual/linux-sources line /var/cache/edb/virtuals and /var/cache/edb/world to make sure that any old unused kernels aren't listed.


my line in /var/cache/edb/virtuals

Code:

virtual/linux-sources sys-kernel/gentoo-dev-sources sys-kernel/gentoo-sources



doesn't say exactly which kernel, I know that I have used gentoo-sources 2.4.22 and then all tje gentoo-dev-sources 2.6.x kernels..

Now I only use the latest 2.6.4..

What does this line say, should I edit it??
Back to top
View user's profile Send private message
tomk
Administrator
Administrator


Joined: 23 Sep 2003
Posts: 7219
Location: Sat in front of my computer

PostPosted: Tue Apr 06, 2004 9:51 am    Post subject: Reply with quote

Zacay wrote:
doesn't say exactly which kernel, I know that I have used gentoo-sources 2.4.22 and then all tje gentoo-dev-sources 2.6.x kernels..

Now I only use the latest 2.6.4..

What does this line say, should I edit it??


The gentoo-sources are the 2.4 series and the gentoo-dev-sources is the 2.6 series, so you should take out the gentoo-sources as you only use the 2.6 kernel.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
YopWongSapn
l33t
l33t


Joined: 26 Jan 2004
Posts: 627

PostPosted: Tue Apr 06, 2004 6:09 pm    Post subject: Reply with quote

StringCheesian wrote:
Does unmerging an old kernel remove all traces of it? (besides /boot/*, of course)

What's the cleanest/best way to remove a kernel?


Unmerging only removes the last source tree you downloaded for that particular kernel. It also removes it from the "world" settings so it won't try to emerge again next time you emerge -U world.

The best way to get rid of unused kernel sources is to unmerge it, then rm -rf the remaining (older) versions of that kernel source.
_________________
Gentoo...it's like wiping your ass with silk. Or sandpaper.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16108
Location: Colorado

PostPosted: Sat Dec 25, 2004 4:38 pm    Post subject: Reply with quote

Added info/reference to FAQ Forum entry.
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum