# low disk space on "filesystem root"

I have the warning says low disk space on "filesystem root".

I use df -h to check, and the output is like this:

Filesystem      Size  Used Avail Use% Mounted on
rootfs          5.0G  4.5G  195M  96% /
devtmpfs        5.9G     0  5.9G   0% /dev
tmpfs           5.9G  240K  5.9G   1% /dev/shm
tmpfs           5.9G  804K  5.9G   1% /run
/dev/sda12      5.0G  4.5G  195M  96% /
tmpfs           5.9G     0  5.9G   0% /sys/fs/cgroup
tmpfs           5.9G     0  5.9G   0% /media
/dev/sda9       194M   78M  107M  43% /boot
/dev/sda11       20G  311M   19G   2% /usr/local
/dev/sda10       30G  2.2G   26G   8% /home
/dev/sda13      2.0G  725M  1.2G  38% /var
/dev/sda15     1007M   18M  939M   2% /tmp


What should I do to free some space in rootfs? Thank you

edit retag close merge delete

you should use LVM

( 2013-03-02 16:37:27 -0500 )edit

Sort by » oldest newest most voted

The free space is probably being used up by multiple kernel versions. You only need one to run the system, but it is handy to keep older versions in case the current one stops working (which does happen.) Run this command to see how many you have:

rpm -q kernel


To remove older kernels, run this command:

sudo yum remove kernel-version


You can also configure your system to only keep a specific number of kernels. Once this is enabled, future kernel updates will automatically remove older kernels. To do that, update /etc/yum.conf, and modify this line to the number that you want to keep. If you change that to 2, you will have 1 backup version (I have never needed more than that.)

installonly_limit=2

more

There is a separate /boot partition so all the kernels are there.

( 2013-03-02 21:09:36 -0500 )edit

You seem to have an unused /usr/local partition which is conveniently located between the partitions / and /home.

/dev/sda10 30G 2.2G 26G 8% /home
/dev/sda11 20G 311M 19G 2% /usr/local
/dev/sda12 5.0G 4.5G 195M 96% /


You could delete that /usr/local partition and expand the / partition, but since it is located after the empty space, this is a bit tricky. You could use something like Gparted LiveCD (http://sourceforge.net/projects/gparted/) to move and resize the / partition.

After this operation the names of the partitions after sda10 will change so you might have to adjust you /etc/fstab.

more

Can I just delete /usr/local partition? since using Gparted LiveCD is kinda complicated and I am trying to take a easier method to free some space. Thank you so much for your reply.

( 2013-04-15 21:11:23 -0500 )edit

Download,install and use bleachbit: http://bleachbit.sourceforge.net/ The first time you run it, you'll have, if I'm not mistaken, the chance to download both some extras and a version that runs as Administrator (i.e., root). Get all of that. (You should see two new entries on your System menu.) Running it as a normal user will let you clean up a remarkable amount of cruft in your own files, including browser catches and so on, although I'd suggest that you exit such programs first. Running it as Admin, of course, requires the appropriate password. This will allow you to clean up lots and lots of stuff on your root file system that you can't otherwise touch, and it's quite possible that this is all you'll need.

more