LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2004, 01:57 PM   #1
mijenks
Member
 
Registered: Mar 2004
Location: NY
Distribution: Gentoo
Posts: 112

Rep: Reputation: 15
Disappearing Hard Drive...or...Where Has All My Space Gone?


I've noticed as I've checked root's e-mail over the past two weeks or so that my partition size is listed at 15 GB. About two weeks ago, the used space was 1.9 GB and the free space was 13.0 GB. OK, maybe just some rounding/precision errors? Now I'm at 2.1 used and 12.0 free. What? That doesn't make much sense.

I'm running FC1, 2.4.22-1.2174.nptl. Dell Latitude C600 laptop. I have dual boot set up for Win98SE, though GRUB shows an older kernel version as an additional boot option (3 total).

Yes, there are other posts similar to this one. However, I have had a gradually bleeding of space, it didn't just up and disappear at once, so I thought it might warrant its own thread.


Thanks for any help.
 
Old 03-04-2004, 02:15 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
That sounds like it would be your logs growing and with a dual boot I doubt that the machine is on when cron daily/weekly/monthly should be run to rotate then delete them you should look into installing anacron which will check to see if cron has been run at the proper time and if not will run it.
 
Old 03-07-2004, 11:07 AM   #3
mijenks
Member
 
Registered: Mar 2004
Location: NY
Distribution: Gentoo
Posts: 112

Original Poster
Rep: Reputation: 15
Does rm <file> completely wipe the file from the HD or does it just remove the reference to the file? If it just removes the reference, this could be my problem. I have done a fair bit of rm-ing so maybe that is the issue? If so, how do I wipe the files from the HD, I have heard there are programs that do it automatically? Thanks.
 
Old 03-07-2004, 11:26 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
rm doesn't zero out the contents of a file, but deleting files will make the space available. I believe that happy tux is correct. You might want to look in the /var/logs area. If you see logs that end in a number plus the extension .gz, these are the old logs. After a log gets to big, It is split up and the older parts are compressed and given a number. The oldest previous split is deleted at this point.
If you have never left you computer on after midnight, than this doesn't happen and the logs could be getting too long. If it has been happening, you can delete the recent backup old logs manually.
These logs can get to be very long, especially if ipchains is being logged.

HappyTux's idea is a good one. There are other things that the system is scheduled to do daily late at night. Such as index the files on the computer. The command 'locate' depends on this file. Another is to check file permissions for security problems, although this one may be done hourly (msec on a Mandrake system).

The unix system was designed for main and mid frame computers, that would be left on all of the time. The anacron program that HappyTux mentioned will start programs that where not run when the computer was turned off.
 
Old 03-07-2004, 03:09 PM   #5
mijenks
Member
 
Registered: Mar 2004
Location: NY
Distribution: Gentoo
Posts: 112

Original Poster
Rep: Reputation: 15
Might this be a weekly cron issue? Because I have been up for nearly 7 days (the system, not me personally, and, as a general rule, I typically leave my system running unless it hangs, crashes, etc.) and I still am seeing this gap in space.

Also, when I run anacron, should I see a printed output in the shell? I typed anacron, and I got shot right back to a prompt. Then I did a man anacron, didn't help me out too much. I'll run anacron again, though, now.

Could you give me a little more info about security issues with files that you referred to? Or was it file permissions? I don't remember which. Thanks for your help though.

I just checked under /var/log and there were many files that had multiple instances (i.e. secure, secure.1, secure.2, etc. and rpmpkgs, rpmpkgs.1, etc.) Thanks again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not enough hard drive space? doxford Red Hat 1 07-04-2005 01:33 PM
Hard drive space token2004 Linux - Hardware 9 04-06-2005 10:31 AM
Hard Drive Space exaudiomag Linux - Newbie 3 01-05-2005 06:47 PM
Disappearing Hard Drive Space LinuxGeek Linux - General 2 08-13-2004 02:08 PM
Disappearing Hard Drive zuele Linux - Hardware 2 10-28-2003 06:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration