Re: / out of space - what to do?

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

 



On Wed, 2005-03-30 at 10:09 -0600, Gustavo Seabra wrote:
> On Tue, 29 Mar 2005 10:54:24 -0600, Syl <jkatz@xxxxxxxxxxx> 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
> 

I am not having troubles for disk space but I tried the above commands.
Both reported 'package x is not installed'.

In my /boot directory I have a large number of files (vmlinuz-?,
system.map-?,config-? and initrd-?).  If I don't want to use a
particular kernal can I just delete the appropiate set of files here? 

Regards Neil

> 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. 
> 
>  



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

  Powered by Linux