Re: How to reclaim disk space from /lib/modules?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Di, den 18.01.2005 schrieb Choo Zhi Min um 3:37:

> My FC2 /lib/modules now has 22 directories (from kernel 2.6.5 to 2.6.10 
> including SMP kernel), taking up a total of 950+MB of disk space. The 
> "/" partition is only 1.2GB, and now low on disk space because of the 
> kernel modules files in /lib/modules. When the next kernel update comes, 
> it will definitely run out of space.
> 
> How can I free more space from /lib/modules? Can I just delete the old 
> kernel modules files? Or yum uninstall? I have excluded kernel update in 
> yum for the moment.

> ZM

Yes, you can simply uninstall the old kernels.

rpm -qa | grep kernel | sort

Check which kernel you run to not erase that one: uname -r

Then you can remove the old kernels with a command like following
(kernel versions you got above):

rpm -e kernel-2.6.10-1.8_FC2 kernel-2.6.9-1.6_FC2 kernel-2.6.9-1.11_FC2

If you don't have self compiled modules or other custom stuff in the
modules directories, they will be erased completely.

Alexander


-- 
Alexander Dalloz | Enger, Germany | new address - new key: 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora GNU/Linux Core 2 (Tettnang) on Athlon kernel 2.6.10-1.9_FC2smp 
Serendipity 03:40:43 up 3 days, 11:02, load average: 0.13, 0.25, 0.37 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux