LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-13-2011, 03:45 PM   #1
wjtaylor
Member
 
Registered: Feb 2009
Posts: 78

Rep: Reputation: 15
no files yet 36% disk usage??


Can anyone explain this output? I'm not sure what to make of it. 36% usage and no files??

root@host:/backups# ls -la
total 8
drwxr-xr-x 2 root root 4096 Mar 8 20:12 .
drwxr-xr-x 25 root root 4096 Mar 8 20:12 ..
root@host:/backups# df ./
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/Tesla-root
953378700 324013128 580936724 36% /
root@host:/backups#
 
Old 06-13-2011, 03:49 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Well, since the /backups directory does not resides into its own partition, the used space is that one of the / (root) partition, that is the space used by the installed system (at least).

If you want the actual space used by the current directory, do
Code:
du -s .
 
Old 06-13-2011, 04:19 PM   #3
wjtaylor
Member
 
Registered: Feb 2009
Posts: 78

Original Poster
Rep: Reputation: 15
Thanks for your response. Your comment gave me some insight as to what was going on.

I had one terminal open with my backup user and another terminal running as root in the backups directory. I unmounted /backups with the backup user and mounted it again. For some reason the root terminal (while working in the /backups directory) showed no files with ls -la, and listed the files on the mounted partition with ls -la /backups. Go figure. I left the directory and then then tested again with the above commands and it worked as expected. I think, for some reason, the shell got confused between the working directory and the mounted partition.
 
  


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
Getting the disk usage for certain files per directory. cergun Linux - General 2 03-25-2010 08:07 PM
Disk Usage Analyzer reports too much disk space? ler0nldb2 Linux - Newbie 1 09-12-2009 10:27 AM
disk usage ?? sachinh Linux - General 3 11-16-2007 01:03 PM
disk usage? crofty13 Linux - Software 1 10-18-2007 06:42 AM
101% disk usage on an empty disk tsiuser Linux - Software 3 01-28-2004 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration