LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-23-2004, 01:30 PM   #1
AbbZer0
LQ Newbie
 
Registered: Sep 2003
Location: Columbus, OH
Posts: 7

Rep: Reputation: 0
Somehow all my disk space keeps getting used


Please help. Somehow my disk space is being used up by something. I tried doing a DU to find out if there are any huge files, but it doesn't seem so. (if I am properly using the command anyways...)

On the "df" my available HD space keeps decreasing incrementally every time I run it. I can't figure out why this may be.

Has anybody run into this before? I am welcome to any suggestions, and will provide any information that can assist.

Thank you very much.

Clint Young
 
Old 02-23-2004, 01:32 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Hi ... and welcome to LQ

What's your partitioning scheme?
Copy and paste /etc/fstab, please.


Cheers,
Tink
 
Old 02-23-2004, 01:45 PM   #3
AbbZer0
LQ Newbie
 
Registered: Sep 2003
Location: Columbus, OH
Posts: 7

Original Poster
Rep: Reputation: 0
Wow -- that sure is a quick response I have seen here. So thank you, I believe this is what you want. If not, I apologize.

Thanks!

[root@webserve etc]# more fstab
/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,--,iocharset=iso8859-1,codepage=850 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-1,sync,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0




[root@webserve etc]# df
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 3.4G 3.2G 156K 100% /
/dev/hda6 2.2G 260M 1.9G 12% /home
[root@webserve etc]#
 
Old 02-23-2004, 02:47 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Sometimes du doesn't report files properly ...

as root, try this one.

Code:
-
find / -printf "%k %p\n" | sort -g -k 1,1 | tail -n 15
That should spit out the 15 largest files on your system ...



Cheers,
Tink
 
Old 02-23-2004, 02:55 PM   #5
AbbZer0
LQ Newbie
 
Registered: Sep 2003
Location: Columbus, OH
Posts: 7

Original Poster
Rep: Reputation: 0
Looks like we have our answer here:

[root@webserve etc]# find / -printf "%k %p\n" | sort -g -k 1,1 | tail -n 15
find: /mnt/floppy: Input/output error
find: /mnt/cdrom: Input/output error
find: /proc/4050/fd/4: No such file or directory
13528 /usr/local/lib/libMagick.a
13528 /var/www/ImageMagick-5.5.7/magick/.libs/libMagick.a
13636 /usr/share/fonts/ttf/korean/batang.ttf
14764 /usr/lib/aspell/fr-60-only.rws
16052 /usr/lib/aspell/es.rws
16340 /usr/lib/aspell/da.rws
17220 /var/lib/urpmi/hdlist.main.cz
17824 /usr/lib/aspell/sk.rws
24668 /usr/lib/aspell/ru.rws
24748 /var/lib/rpm/Packages
60636 /usr/lib/aspell/cs.rws
76592 /home/abbzer0/OOo_1.1.0_LinuxIntel_install.tar.gz
224708 /var/log/kernel/info
224912 /var/log/messages
225156 /var/log/syslog
[root@webserve etc]#




I am betting that the log information is the culprit for eating up all the disk space. I am however still unsure for the reason this might be occuring. Any thoughts on this matter? Also, would I be safe in deleting those log files to free up those 700 or so megs of space?

Thanks again for all your assistance.

AbbZer0
 
Old 02-23-2004, 03:21 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Most systems would use logrotate these days ...
I haven't seen 220MB logs in a while.

Another good way of hunting down culprit's
would be using something like
Code:
du -m --max-depth=1 <dir in question> | sort -g -k 1,1
so you can locate the fattest directories.

What distro are you running, btw?


Cheers,
Tink
 
Old 02-23-2004, 04:29 PM   #7
AbbZer0
LQ Newbie
 
Registered: Sep 2003
Location: Columbus, OH
Posts: 7

Original Poster
Rep: Reputation: 0
Running Mandrake 9.1 Prosuite. Thank you again for your help.
 
Old 02-23-2004, 04:32 PM   #8
AbbZer0
LQ Newbie
 
Registered: Sep 2003
Location: Columbus, OH
Posts: 7

Original Poster
Rep: Reputation: 0
I wonder if this could have something to do with MySQL. I was attempting to make some new databases so perhaps that is to blame. I will post results when I find them.
 
Old 02-27-2004, 01:47 AM   #9
AbbZer0
LQ Newbie
 
Registered: Sep 2003
Location: Columbus, OH
Posts: 7

Original Poster
Rep: Reputation: 0
Still decreasing....

Something is STILL eating up my HD space... Even though I now have several hundred megs free, every time I look at the space, it is a bit less.. Any ideas of what I might be able to look for? As stated, I suppose it *COULD* have something to do with MySQL, but am not sure.

Thanks,

AbbZer0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Space Verbal Kint Linux - General 2 05-26-2005 06:28 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
Where is all my disk space going? Baryonic Being Linux - General 6 10-13-2004 07:57 AM
Disk Space? Gerardoj Linux - General 4 05-28-2003 12:11 AM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 03:41 PM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration