LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-11-2003, 06:55 PM   #1
gatorbyte
LQ Newbie
 
Registered: Apr 2003
Location: Florida
Distribution: Red Hat
Posts: 2

Rep: Reputation: 0
Question Hard Drive free space


I've been using Linux for a while now, but have only recently (3-4 months) made the commitment to use Linux exclusively. I would consider myself an old DOS jockey (since v3.2) and have enjoyed making this transition to the Linux OS. Recently however, I've run into a problem that i've not found documented anywhere (or perhaps I'm not asking the question correctly). At any rate, I was hoping that someone could offer some assistance.

I'm running RH 8.0 on an AMD K6 w/512MB of RAM. I have a 40G HD installed. My / partition (ext3) has 36G assigned to it. Well, "df" shows about 34G in use (1.3G free), but i can only account for about 4G of files on all of my partitions total. Why is df reporting this? do i really only have 1.3G free?

- ext3 student...
 
Old 05-11-2003, 07:12 PM   #2
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
That can't be good

Try running du from root level (as root). That'll show you the total space used by all subdirectories. Check out the man page for du for ways to see totals in each folder. Maybe there are a bunch of core dumps somewhere from crashed programs, or some other weirdness.

What does df actually say? (copy and paste the output if possible). I've always found its output a little confusing as far as what is free and what is used.
 
Old 05-11-2003, 07:31 PM   #3
gatorbyte
LQ Newbie
 
Registered: Apr 2003
Location: Florida
Distribution: Red Hat
Posts: 2

Original Poster
Rep: Reputation: 0
Ok, here's whats being reported:

[root@Quasar test1]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 36G 34G 1.3G 97% /
/dev/hda1 99M 14M 80M 15% /boot
none 251M 0 251M 0% /dev/shm
/dev/hdb1 2.4G 1.1G 1.2G 46% /mnt/hdrive
/dev/sda4 96M 4.0M 91M 5% /mnt/zip
[root@Quasar test1]# du
2884 .

-ext3 student
 
Old 05-12-2003, 06:28 AM   #4
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Hmm, yep, looks like it really is full...

Here's something you can try:

find / -size +10000k

That'll find files anywhere that are larger than 10MB (see the Linux Cookbook for other ideas). Maybe there's some enormous garbage-file somewhere taking up space. I suppose it might be a bunch of small files, too, but a few large files is probably more likely.

Also, look for any core files:

find / -name 'core*'

(that's quote, core, asterik, quote) Any of those floating around can be deleted immediately - they're just a dump of your RAM when a program crashes.

Good luck!

Last edited by wapcaplet; 05-12-2003 at 06:30 AM.
 
  


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
Caculating free space on Hard Drive adamb10 Linux - General 3 06-12-2005 12:18 PM
Not enough free space on hard drive with 50g of free space??? auoq Suse/Novell 5 10-13-2004 08:21 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM
How to determine the free Hard Drive space ako Linux - Newbie 2 12-28-2003 10:11 PM
After removing another hard drive, system sees incorrect amount of free space cellphone Linux - General 5 09-28-2003 07:29 PM


All times are GMT -5. The time now is 09:05 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