LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-05-2010, 02:21 PM   #1
valon24
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Puzzled, no idea why I'm out of disk space


I am running CentOS. I thought it was considering the files in my mounted share, but there's more files there than the hard drive has space. Here's the results of df -h:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
123G 115G 1.6G 99% /
/dev/cciss/c0d0p1 99M 19M 75M 21% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
//192.168.5.68/recordings
280G 188G 93G 67% /mnt/callito

Listing by folder: du -ks /* | sort -nr | head:

191981794 /mnt
2704196 /var
2398380 /usr
224520 /lib
97864 /etc
33988 /sbin
20484 /lib64
13614 /boot
8120 /bin
208 /root

What am I missing? Thank you!
 
Old 12-05-2010, 04:06 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Why didn't you use the same size option in both du commands? Do you expect us to do the conversion?

It seems obvious that you have stuff in your /mnt directory that is not on a mounted partition so it is on the system (root) partition. Those files could be hidden by mounted partitions. Unmount everything that is mounted in /mnt and then look for files in that directory tree.

Last edited by stress_junkie; 12-05-2010 at 04:10 PM.
 
Old 12-05-2010, 06:01 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. Here's your output, wrapped in [code] tags:
Code:
Filesystem                       Size  Used  Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00  123G  115G  1.6G  99%  /
/dev/cciss/c0d0p1                 99M   19M   75M  21%  /boot
tmpfs                             3.9G    0   3.9G  0%  /dev/shm
//192.168.5.68/recordings         280G 188G    93G 67%  /mnt/callito

191981794 /mnt
  2704196 /var
  2398380 /usr
   224520 /lib
    97864 /etc
    33988 /sbin
    20484 /lib64
    13614 /boot
     8120 /bin
      208 /root
2. You're using 115 of 123GB on "root". Your question is "who on root is the space hog?"

3. The answer appears to be "/mnt".
a) "mnt" is using the most space
... but ...
b) "mnt" really shouldn't be using ANY space.
It should be "empty" - a location where you can "mount" other filesystems!

4. Conclusion -
a) I'm guessing that you probably MEANT to mount some filesystem in "/mnt"
b) ... but the mount failed...
c) ... you didn't catch the mount failure
d) ... and you inadvertantly started writing gigabytes there

5. SUGGESTION:
Code:
umount /mnt/callito
cd /mnt
du -sk *|sort -nr
  <= This should identify the space hog :)
IN SUMMARY:
I believe you're probably out of disk space because you might accidentally be writing to "/mnt", instead of to a filesystem you think you have MOUNTED in "/mnt".

Make sense?

Please keep us posted what you find!

Last edited by paulsm4; 12-05-2010 at 11:01 PM.
 
Old 12-07-2010, 03:59 PM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
191981794 is 183GB, /mnt/callito occupies 188GB, therefore it is pretty safe to assume that the reported usage for /mnt is mostly on the cifs share, not the local filesystem.

Have a look for hidden files/directories at the root level that the * would miss, next time you run du please add the -x and -h options.
 
Old 12-07-2010, 09:47 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Check /var/log.

I just dealt with a problem of log files gone mad. Logrotate was the answer.

I've been Linuxing for > five years and done a lot of distro hopping. First time I've run into this.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
hard disk partitioning/I am out of space /how to increase linux space? RMLinux Red Hat 8 09-05-2008 12:33 PM
add space to / when from spare space on disk ctsiow Linux - General 4 11-07-2007 07:55 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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