/ out of space - what to do?
Gustavo Seabra
gustavo.seabra at gmail.com
Wed Mar 30 16:09:55 UTC 2005
On Tue, 29 Mar 2005 10:54:24 -0600, Syl <jkatz at sasktel.net> wrote:
> I am running FC2 and I have been keeping my updates current. Recently, I ran
> out of space on / and I can no longer do any updates. I have checked
> /var/log files, etc and everything appears to be in order. Here is a df of
> my system
>
> Filesystem 1K-blocks Used Available Use% Mounted on
> /dev/hdb2 4031560 3764916 61844 99% /
> /dev/hdb1 99043 24529 69400 27% /boot
> /dev/hdb6 20181400 8096684 11059532 43% /data
> /dev/hdb5 1007960 61404 895352 7% /home
>
> What should I do?
>
> thanks
> Syl
>
Syl,
Sorry I'm late... but there's one point that hasn't been touched here.
If you just keeping updating, you probably have a large number of
kernels installed that you don't use or need. Each kernel occupies a
large space. To get a list of the installed kernels, do
> rpm -q kernel
> rpm -q kernel-smp
Also, to know which kernel is being currently used, do
> uname -r
then you can remove the old unused kernels by (as root)
> rpm -e <<kernel name>>
where <<kernel name>> is the name you get from the 'rpm -q' commands
above. Just remember to keep one old kernel (other than the one in use
currently) just as a safeguard.
Also, you may turn on automatic yum updates. Then, edit the file
'yum.cron' that will be in the /etc/cron.daily folder to:
#!/bin/sh
if [ -f /var/lock/subsys/yum ]; then
/usr/bin/yum -R 10 -e 0 -d 0 -y update yum
/usr/bin/yum -R 120 -e 0 -d 0 -y update
/usr/bin/yum -R 120 -e 0 -d 0 -yC clean packages
fi
The added last line (before the 'fi', of course) will make sure yum
cleans after itself everytime.
HTH, and good luch with your research.
--
------------------------------------------------------------------
Gustavo Seabra Graduate Student
Chemistry Dept. Kansas State University
Registered Linux user number 381680
------------------------------------------------------------------
If at first you don't succeed...
...skydiving is not for you.
More information about the fedora-list
mailing list