what is taking up space on / partition
Hello all,
I am trying to figure out what is taking up so much space on my / partition. when I run #df -h I get /dev/sda3 15G 11G 3.5G 76% / However when I run #find / -type f -size +250M -exec ls -lh {} \; | awk '{print $5 ": " $NF}' I get (I have to xxx out all the file names): 351M: /xxx 429M: /xxx.tar 66G: /proc/kcore 1.1G: /xxx.gz 251M: /xxx 528M: xxx.unl 395M: /xxx.txt 2.0G: /xxx.txt 472M: /xxx.log 1.4G: /xxx.audit.log 934M: /xxx.log 770M: /xxx.audit.log_bak 583M: /xxx.debug 1.9G: /xxx Question 1) So my question is, how is there a 66G directory in my / partition that is only 15G large? Question 2) Anyone have any input on a better approach for this noob? Thanks! |
Hi there,
Quote:
Quote:
By the way, you seem to have a lot of strange files in your root directory. Usually, this directory should remain almost clean. There may be symlinks to the current kernel and initrd, but otherwise there should only be the standard Unix/Linux directories, no files. Quote:
[X] Doc CPU |
Welcome to the forums!
1) /proc is not a "real" folder that uses space on your hard drive. http://en.wikipedia.org/wiki/Procfs 2) 11gb used seems reasonable to me; I'm not sure what the problem is exactly. Which distribution are you using? I may be able to recommend some distro-specific housekeeping you can do to keep the size down. Generally speaking you should not go around deleting/editing/moving files outside your /home folder. These are important system files and deleting them without understanding the consequences can break your system. |
An alternate approach is to use the du cmd http://linux.die.net/man/1/du which has various options to analyse disk usage. One example would be
Code:
cd / |
ncdu might also come in handy.
|
noob double post
|
Quote:
"To achieve what exactly?" I am trying to clean up the contents of this partition as it is hitting our disk usage alert monitor. I was wondering if there was a better way to find out what is taking up space, but I think my find | awk one liner did a great job. I know there are a lot of strange files, I "xxx" them out because there is information regarding a trading application that I didnt want the world to see (or competitors). Looks like I can clean up some logs and the get the %disk usage alert to go away. Everyone else, thank you very much for your input. Greatly appreciated! |
Hi there,
Quote:
I was rather referring to the location: They shouldn't be in the root directory. [X] Doc CPU |
This box was from another office and that admin decided not to make a home partition. That explains it
|
All times are GMT -5. The time now is 06:20 AM. |