View previous topic :: View next topic |
Author |
Message |
Zacay Tux's lil' helper
Joined: 23 Mar 2003 Posts: 95
|
Posted: Mon Apr 05, 2004 11:57 pm Post subject: TIP: Clean your old kernels => gain alot of diskspace |
|
|
Ok this is new to me,
This is for newbies like me
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 |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Tue Apr 06, 2004 12:12 am Post subject: |
|
|
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 |
|
|
StringCheesian l33t
Joined: 21 Oct 2003 Posts: 887
|
Posted: Tue Apr 06, 2004 7:41 am Post subject: |
|
|
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 |
|
|
Boba n00b
Joined: 10 Sep 2002 Posts: 38
|
Posted: Tue Apr 06, 2004 9:23 am Post subject: |
|
|
emerge -[p]P <whatever>-sources
works fine for me... _________________ LinuxSoftBoard.de |
|
Back to top |
|
|
Zacay Tux's lil' helper
Joined: 23 Mar 2003 Posts: 95
|
Posted: Tue Apr 06, 2004 9:25 am Post subject: |
|
|
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 |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Tue Apr 06, 2004 9:51 am Post subject: |
|
|
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 |
|
|
YopWongSapn l33t
Joined: 26 Jan 2004 Posts: 627
|
Posted: Tue Apr 06, 2004 6:09 pm Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat Dec 25, 2004 4:38 pm Post subject: |
|
|
Added info/reference to FAQ Forum entry. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|