How to reclaim disk space from /lib/modules?

Alexander Dalloz ad+lists at uni-x.org
Tue Jan 18 02:50:47 UTC 2005


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 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050118/935ed2f0/attachment-0002.bin 


More information about the users mailing list