Fedora14 is filling up my HDD without a reason

JD jd1008 at gmail.com
Fri May 6 01:34:44 UTC 2011


On 05/05/11 18:19, Aradenatorix Veckhom Vacelaevus wrote:
> Hi again:
>
> Thanks for the helping, and following the suggestion of Patrick I 
> could set free a little bit of more space, also I uninstalled few 
> programs in fact I don't need. But I have a lot of space used and I 
> don't see clear why. I logged as root and then I made an ls for can 
> see the contenst inside the directory /var/log, and here is the result:
>
> [root at Wiidora var]# ls -la log
> total 2036
> drwxr-xr-x. 13 root root   4096 may  5 20:05 .
> drwxr-xr-x. 21 root root   4096 oct 22  2010 ..
> -rw-------.  1 root root  30756 abr 12 15:04 anaconda.log
> -rw-------.  1 root root  22711 abr 12 15:04 anaconda.program.log
> -rw-------.  1 root root 129745 abr 12 15:04 anaconda.storage.log
> drwxr-x---.  2 root root   4096 abr 20 17:35 audit
> -rw-r--r--.  1 root root   1866 may  5 20:05 boot.log
> -rw-r--r--.  1 root root   1866 abr 18 11:26 boot.log-20110418
> -rw-r--r--.  1 root root   1854 abr 28 12:23 boot.log-20110428
> -rw-r--r--.  1 root root   1866 may  2 13:33 boot.log-20110502
> -rw-------.  1 root utmp   1536 may  5 20:05 btmp
> -rw-------.  1 root utmp   9216 may  2 13:33 btmp-20110502
> drwxr-xr-x.  2 root root   4096 nov 16 20:23 ConsoleKit
> -rw-------.  1 root root   6555 may  5 20:05 cron
> -rw-------.  1 root root  21584 abr 18 12:09 cron-20110418
> -rw-------.  1 root root   7333 abr 28 13:23 cron-20110428
> -rw-------.  1 root root   6532 may  2 14:09 cron-20110502
> drwxr-xr-x.  2 lp   sys    4096 ene  7 04:42 cups
> -rw-r--r--.  1 root root  37843 may  5 20:05 dmesg
> -rw-r--r--.  1 root root  37887 may  4 17:59 dmesg.old
> drwxrwx--T.  2 root gdm    4096 may  5 20:05 gdm
> drwx------.  2 root root   4096 oct 27  2010 httpd
> -rw-r--r--.  1 root root 146000 abr 15 22:33 lastlog
> drwxr-xr-x.  2 root root   4096 nov  8 06:58 mail
> -rw-------.  1 root root    531 may  5 20:05 maillog
> -rw-------.  1 root root  13405 abr 18 11:26 maillog-20110418
> -rw-------.  1 root root    880 abr 28 12:25 maillog-20110428
> -rw-------.  1 root root   7346 may  2 13:33 maillog-20110502
> -rw-------.  1 root root 182926 may  5 20:06 messages
> -rw-------.  1 root root 497272 abr 18 12:01 messages-20110418
> -rw-------.  1 root root 203740 abr 28 12:59 messages-20110428
> -rw-------.  1 root root 129569 may  2 14:03 messages-20110502
> drwxr-xr-x.  2 ntp  ntp    4096 nov 25 10:18 ntpstats
> -rw-r--r--.  1 root root     86 may  5 20:05 pm-powersave.log
> drwx------.  2 root root   4096 nov 16 03:25 ppp
> drwxr-xr-x.  2 root root   4096 abr 12 16:12 prelink
> -rw-------.  1 root root   6550 may  5 20:07 secure
> -rw-------.  1 root root  26790 abr 18 11:27 secure-20110418
> -rw-------.  1 root root   6847 abr 28 13:01 secure-20110428
> -rw-------.  1 root root   7266 may  2 13:33 secure-20110502
> drwxr-xr-x.  2 root root   4096 may  2 14:09 setroubleshoot
> -rw-------.  1 root root      0 may  2 14:09 spooler
> -rw-------.  1 root root      0 oct 22  2010 spooler-20110418
> -rw-------.  1 root root      0 abr 18 12:09 spooler-20110428
> -rw-------.  1 root root      0 abr 28 13:23 spooler-20110502
> drwxr-x---.  2 root root   4096 abr 12 11:00 sssd
> -rw-------.  1 root root      0 oct 22  2010 tallylog
> -rw-r--r--.  1 root root      0 abr 12 15:09 wpa_supplicant.log
> -rw-rw-r--.  1 root utmp  92160 may  5 20:07 wtmp
> -rw-r--r--.  1 root root  86393 may  5 20:06 Xorg.0.log
> -rw-r--r--.  1 root root 156519 may  4 21:43 Xorg.0.log.old
> -rw-r--r--.  1 root root  54279 abr 21 17:19 Xorg.1.log
> -rw-r--r--.  1 root root  27754 abr 12 15:12 Xorg.9.log
> -rw-------.  1 root root  82712 may  4 21:35 yum.log
>
> I don't know if something is wrong, could u help me?
>
> Thanks:
> Aradnix
One way to see what's consuming your drive is to
insert a usb flash drive with enough space to contain
a file of a few megabytes size (preferrable, the flash drive should be 
empty,
and mounted, say, as /flash)

su root
find / -type f -path /flash -prune -o | xargs du -sk | sort -n > 
/flash/allFileSizes

When done, take a loog at the file /flash/allFileSizes and see
what is so large, and what you can do away with.
Becauseful no to do a brute force deletion of files you think you do not 
need.
See what package they are part of:
rpm -qf --whatprovides  PathName-Of-The_File_You_Wish_To_Delete
And if the rpm package is not something you wish to keep,
then
rpm -e the-rpm-package

Of course, you will encounter things like some other package
depends on that rpm and ....so on and so forth. It will be  up
to you to decide whether to delete the package anyhow (like rpm -e 
--nodeps pkg-name)
or to delete it and everything that depends on it:
yum erase pkg-name

If the file you wish to delete is not part of any package,
then you have to make the call if it is something you wish to keep or not.

Good luck.



More information about the users mailing list