Ask Your Question

rootfs is running out of space fast

asked 2012-03-02 02:13:45 -0600

BRHETT gravatar image

updated 2014-09-29 00:09:13 -0600

mether gravatar image

I just start using Fedora again after about 2 years. I just did a fresh install and only after two days of using it I was slapped with a low space error. I thought maybe it was a bad install so I re-installed Fedora 16 and already after a few hours it is jumping back up quickly. When I run the df -h command this is what I get:

Filesystem                     Size  Used Avail Use% Mounted on
rootfs                          50G   12G   36G  26% /
devtmpfs                       461M     0  461M   0% /dev
tmpfs                          469M  368K  469M   1% /dev/shm
tmpfs                          469M   41M  428M   9% /run
/dev/mapper/vg_server-lv_root   50G   12G   36G  26% /
tmpfs                          469M   41M  428M   9% /run
tmpfs                          469M     0  469M   0% /sys/fs/cgroup
tmpfs                          469M     0  469M   0% /media
/dev/sda2                      497M   69M  404M  15% /boot
/dev/mapper/vg_server-lv_home  134G  2.3G  125G   2% /home

Is there anyway to clear it out or remount to another drive... anything? I don't want to have to re-install my system every other day.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-06 11:29:33 -0600

Atom_Smasher gravatar image

You need to locate where the space is going and the most likely place to find that information is in your logs. Coincidentally that is also the place where you might find the files draining your disk drive of space. From a term type:

            du -h /var/log

If you find this file contains more then 20-30Meg type in the subdirectory that has the excessively large files or the /var/log itself:

            ls -lh  /var/log

Once you have found your problem file you need to find out what error is causing the problem so don't just delete it right away. If it is still growing type:

            tail -f  /var/log/(The big file)

or tail -50 /var/log (The Big File)

This will help narrow down the problem also if the /var/log directory doesn't hold the problem do:

               du -h /opt

And check back with the results


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-03-02 02:13:45 -0600

Seen: 3,769 times

Last updated: Mar 06 '12