The tag has no wiki summary.

learn more… | top users | synonyms

19
votes
7answers
14k views

du vs. df difference [duplicate]

I have a fileserver where df reports 94% of / full. But according to du, much less is used: # df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda3 270G 240G 17G ...
17
votes
4answers
8k views

What is the difference between du -h and ls -lh?

I am having a difficult time grasping what is the correct way to read the size of the files since each command gives you varying results. I also came across a post at ...
7
votes
2answers
3k views

FreeBSD: How to know real file size on zfs with compression on?

I'm using zfs on my FreeBSD 9.0 x64 and pretty happy with it, but I find it hard to count directory real, not compressed, size. Surely I can walk over the directory and count every file size with ...
6
votes
1answer
5k views

Disk space usage doesn't add up with df & du

I'm trying to free up some disk space - if I do a df -h, I have a filesystem called /dev/mapper/vg00-var which says its 4G, 3.8G used, 205M left. That corresponds to my /var directory. If I descend ...
4
votes
5answers
223 views

Get Size of All Folders in Directory

I want to get the size of all directories within a specific directory. I was thinking something like find . -type d -exec du -sh {} \; But that returns all directories recursively. How can I limit ...
4
votes
4answers
905 views

Disk full on linux server, blocks used is much less then blocks avalable

Output of df is: [root@backup log]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGro 1889811408 1861658948 0 100% / /dev/sda1 101086 ...
4
votes
3answers
359 views

Understanding the different directory sizes

When comparing root@debian:~# du -s /backup/test1/ 5605364 /backup/test1/ two directories with du, root@debian:/etc/init.d# du -s /data/test1/ 5605360 /data/test1/ du tells me that there is a ...
4
votes
2answers
526 views

inconsistency between du -sh and df -h

I know this is a common occurrence when the result of du -sh is smaller than that returned by the file system with df -h. (Because some files are still open in processes etc..) But in my case I have ...
3
votes
1answer
4k views

Ubuntu “No space left on device” for /home, df shows 100% full, ds shows much, much less [duplicate]

Possible Duplicate: Linux different size for df and du for root partition On an Ubuntu 12.04 server, normal users can no longer create or add to files in /home, encountering a "No space ...
3
votes
2answers
82 views

Next-gen filesystems: disk space usage log?

From time to time I run into problems when server hard disks (Linux) fill up quickly with lots of small files. When this happens I have to try to figure out how much space is being taken up and where ...
2
votes
4answers
692 views

How to do “du” on all files under a directory in linux?

This is what I tried: [demo@ ~]# ll /usr/local/apache2/logs/|xargs |du -hm - du: cannot access `-': No such file or directory I want to see the amount of space each file occupies in m unit. How to ...
2
votes
3answers
77 views

du displaying old results

I ran du -hs to find out how big my /home/user directory was and it reported as 18G. I cleared out almost 4G of data and ran du -hs again to find out how much space I actually saved and it still ...
2
votes
1answer
281 views

How can I calculate the total size of an extremely large number of files with a particular extension?

I've got a directory in Linux that contains a large number of files (tens of thousands), plus directories that may contain thousands of files as well. At some point the following du command fails ...
2
votes
1answer
166 views

How do I find the biggest files on multiple servers and sum up their size?

I am trying to find the biggest files in the /export/home directory and add up (sum) their sizes. Script: #!/bin/bash filename=hostnames > export_home.log while read -r -a line do ...
2
votes
1answer
69 views

Folder's taking up way more than it should

My server is chugging along with a 5GB drive, and unfortunately, it's 100% full. Going to delete some files, I notice that my Dropbox's taking up way more than it should. du -hs * returns: ...
2
votes
2answers
231 views

Monitoring of disk usage over time - check for large variations [closed]

I'm looking for a tool that would monitor disk usage over time. What I'm looking for is folders or files that grow unexpectedly over a short period of time. I use du , ncdu, baobab (when X is ...
1
vote
4answers
2k views

Cross-platform, human-readable, du on root partition that truly ignores other filesystems

Edit 09/20/2012 I made this way too complicated before. I believe that these commands are actually the simpler way, while still formatting everything nicely. RHEL 5 du -x / | sort -n |cut ...
1
vote
2answers
499 views

df -h disk usage of empty disk shows 188M usage ?!

I have an empty disk mounted as /data The df -h shows me that 188M are used while a du -h shows me 4,0K. root@marc:~# du -h --max-depth=1 /data 4,0K /data root@marc:~# df -h Sys. de fichiers ...
1
vote
1answer
3k views

du command takes WAY too long to run

I am running du -sh in a variety of directories to find disk hogs. I got two identical servers (Dell PE2850s), both with RHEL5 and it will take significantly longer to run du on one server over the ...
1
vote
1answer
178 views

Different output by df and du [duplicate]

I have an old RHEL 5.5 Box, When I fire df -kh I see that /var is of 49 GB with 100 % usage. But then I go inside the /var cd /var and I fire du -kh I see that only total 300 MBs are used. I ...
1
vote
1answer
95 views

Server was ok for space on /, ran du -s, now server is at 100% usage on /

Our server running RHEL 4 apparently ran out of space today. It was working fine and I decided to run a du -s on an unused directory of files to see how much space we would free deleting it. Upon ...
1
vote
2answers
229 views

Why is DU causing high CPU usage?

On CentOS 6.5, du -sk /home and sh -c (du -sk \/home) 2>/dev/null run because a scheduled disk usage for /home, but du is causing 100% CPU usage. Plus, before it's even finished, another du gets ...
1
vote
1answer
936 views

Ubuntu server: hard drive always full

I have a 50GB vps when I run df I get Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 49982172 46580100 863064 99% / none 507212 ...
1
vote
1answer
603 views

Near 100% disk usage, df and du show very different results, lsof not the answer

The issue is that my CentOS 5.8 machine is telling me that I am nearly out of disk space when I am pretty confident this is not the case. I've done a fair amount of researching on this issue and have ...
1
vote
0answers
251 views

finding directory size on linux with du reports errors when files are deleted during command

I'm trying to find out the directory size of a folder to determine if a user has rights to keep writing to the folder (i.e. they are within the given limits I've imposed). I'm doing: du -sb ...
1
vote
2answers
45 views

df shows bad information on partition usage

I've tried to deal with this for days now with no luck. In this forum and also in other ones I can see a lot of discussion about this but none of the solutions have worked for me. My current ...
0
votes
4answers
608 views

Linux du and rsync 100% disk utilization

Whenever I run du -sh or rsync I get my disk utilisation at 100%. This causes mysql slow queries to appear, which usually causes my site going down. Any tips or tricks running these to commands ...
0
votes
3answers
120 views

Map linux folders by size

I have AWS linux instance, Currently there are many folders in the instance. I would like to map all the folders and their size, so i could come back in 1 month and check which folder occupy high ...
0
votes
3answers
328 views

How to find largest files in a dir - ignoring directory sizes

I want to do something like this du -a | sort -rn | head But I want to extract files only, ignoring directories. To be clear, I want to traverse through all sub-directories but I don't want to ...
0
votes
2answers
107 views

How to limit du output to a specific user?

I need to help a specific user, say alice, free up some disk space; but not all the user's files are in his home directory; many are in directories shared with other users. I'd like to have something ...
0
votes
3answers
130 views

How to find which folder is eating space fast? [duplicate]

I am running Linux server, we using this server as a samba share drive. From yesterday suddenly, one of the share drive size getting increasing (~ 100 MB every ten min). There are too many folders and ...
0
votes
1answer
84 views

df on 7.7GB shows 400MB available while du -sh / reports 3.8GB used [duplicate]

I believe df is reporting incorrect disk usage, as I have the following problem: I deleted a few files to free up space, then run the following: $ df -H reports 7.7GB on Volume and 400MB ...
0
votes
1answer
54 views

What are the best ways to monitor and report disk usage on solaris?

df and du provides a total view of usage but the problem with these is that they are not broken down per user. Is there a tool that does this? I found quot but that only works on ufs. Is there an ...
0
votes
1answer
313 views

CentOS 6.5 DU and DF dont add up [duplicate]

# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_bgsvn-lv_root 28G 26G 416M 99% / tmpfs 495M 0 495M 0% /dev/shm /dev/sda1 ...
0
votes
1answer
81 views

Understanding du -sh command output

I have 1 TB of space. I am trying to find disk usage of a folder. du -sh command output 354M Arts 2.6M Digicams 308M Internet 391M Location 2.2G Media 110M Religion 4.8T Sports ...
0
votes
1answer
107 views

Does linux count s3fs mounts as local disk usage?

I have an s3 bucket mounted on an EC2 instance whose main disk is an EBS volume. Whenever I run something like du -h /path/to/mount it tells me the size of the folders within those. I'm wondering ...
0
votes
1answer
167 views

Maximixing performance for disk usage queries in linux using du -s or df while maintaining accuracy?

I'm running a script to find out the disk usage on a wide range range of VPS (size ranging from less than 1 GB of usage to over 200 GB of usage)... I'm trying to maintain performance (EG: no extra ...
0
votes
1answer
1k views

Du tells me it can't find the current directory?

I'm on AIX, and in some directories I can't use the du command. I get the follow error message: du: 0653-175 Cannot find the current directory. Obviously the current directory exists, and I ...
0
votes
1answer
73 views

No more space on FreeNAS 9.3. But only half of space actually in use based on “du -sh” command

This morning I got a warning on my FreeNAS 9.3 machine about "Not enough space" warning: The capacity for the volume 'SeanVolume' is currently at 85%, while the recommended value is below 80%. It's ...
0
votes
0answers
126 views

df and du show different size and The size of the "/platform/sun4v/lib/sparcv9/libc_psr.so.1

The server is running on Sun Sparc T5220 machine with Solaris 10 installed. I've run into the disk space problem recently. Done many research but haven't found any solution so i hope can get some help ...
0
votes
0answers
18 views

No disk space on / (Debian Jessie) [duplicate]

I have a problem with disk space on my dedicated server. I have no disk space available on partition / root@server1:/# df -h Filesystem Size Used Avail Use% Mounted on /dev/root 96G ...
0
votes
1answer
138 views

finding directories that consume a lot of the AFS volume quota

The AFS volume quota is almost exceeded for one of our computer users. Running fs listquota or fs lq gives him a warning: olifri@ubuntu:~$ fs listquota ~ Volume Name Quota ...
-1
votes
1answer
259 views

I can't find the ghosts taking up space on my hard drive [duplicate]

Possible Duplicate: How do I find out what is using up all the space on my / partition? No Free disk space $df -h returns /dev/sda1 16G 16G 0 100% / tmpfs ...
-1
votes
1answer
116 views

Inconsistency between “du -sh” and “df -h” [duplicate]

Possible Duplicate: du vs. df difference I am running a server with Debian stable. If I call: df -h this is the result I get: Filesystem Size Used Avail Use% Mounted on ...
-2
votes
2answers
145 views

df showing 28G of total space, du showing size of '/' as 400+ G

I constantly get the unable to write to * error, even though I cleaned up a bunch of space. df thinks my disk is 28G in size and 100% full after I deleted a lot of unused files: $ df -h Filesystem ...