shrinking hard disk space
Hi, about 4 weeks ago I had a good 7 gigs of space available on my ext partition, but just the other day I tried to login and it gave me an error saying that my hard disk was full. Now, I've barely used linux for much, mostly the internet and writing/compiling tiny amounts of code (executable files are no more than 10K).
I was forced to delete a whole bunch of files as well as uninstall big programs like beryl so that I'd have more disk space, and managed to get it up to 290 MB. But in the past 30 minutes its already shrunk to 260MB and all I've actually done is use the internet. Anybody know of some way I can check whats eating up my hard disk space? |
well in a properly partitioned system only one specific partition is atually going to run out of space.. what does "df -h" say about what partitions are using how much space?
|
df -h says:
Code:
Filesystem Size Used Avail Use% Mounted on |
Did you check the size of files from /var/log?
|
yeah log files are usually a good culprit. but run "du -h --max-depth=1 /" and that'll show the size of all first level directories which is a good start. if /var looks like the culprit, then change / to /var in the command above and repeat...
|
Hey, thanks for the help! I ran "du -h --max-depth=1 /" and actually narrowed it down to my /var/lib/mlocate being 6.6 Gigs.
Anyone know how much of it is safe to get rid of? |
wow, that's pretty obscure... never seen mlocate use it all up. what's actually in there? (ls -l /var/lib/mlocate) all that should be is an index of files on your system for quick searching... no more than a few meg in just one file at most really... i'd be pretty confiduent you can just nuke it all and run "updatedb" to recreate the valid data, but i'd not think it's wouldn't keep getting worse again...
|
Heres what I get:
Code:
ls -l /var/lib/mlocate |
yeah do that, but you have files there that were created next november...! may well be a reason for that if it's doing some sort of age check, which locate itself does - it'll warn you if it's older than 8 days. wonder what it'd think if the file it's checking apparently isn't going to exist for another 7 months...
|
Ok, thank you very much! I know have 7.1 gigs of free space! However, mlocate looks like its already repopulating but at least so far the one file it created was from today, and not from later on this year.
Thanks again! |
I wonder if a weak cmos battery is throwing the hardware clock off.
|
All times are GMT -5. The time now is 10:35 PM. |