I see that df reports a 100% disk usage for a file system. How can I see which folder is eating the disk space?  [root@rocks7 mahmood]# df -h Filesystem                     Size  Used Avail Use% Mounted on /dev/mapper/rocks_rocks7-root   50G   48G     0 100% / devtmpfs                        32G     0   32G   0% /dev tmpfs                           32G     0   32G   0% /dev/shm tmpfs                           32G  9.3M   32G   1% /run tmpfs                           32G     0   32G   0% /sys/fs/cgroup tmpfs                           16G   32M   16G   1% /var/lib/ganglia/rrds /dev/sda1                      976M  709M  201M  78% /boot tmpfs                          6.3G   12K  6.3G   1% /run/user/42 tmpfs                          6.3G     0  6.3G   0% /run/user/1000
123062
What explains the discrepancy in usage (82 GB vs 13 GB) that I see below?   Using df:  $ df -h / Filesystem            Size  Used Avail Use% Mounted on /dev/sda2              96G   82G  9.9G  90% /  Using du:  $ sudo du -cshx / 13G     / 13G     total
121775
looking at df -h, I realized I have this /dev/loop0 mounted on /snap/core/3604 and it's always 100% full :   root@maxipc:~# df -h Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  9.9M  1.6G   1% /run /dev/sda3       116G   38G   73G  35% / tmpfs           7.8G   20M  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup /dev/loop0       84M   84M     0 100% /snap/core/3604 /dev/sda1       239M  111M  111M  50% /boot cgmfs           100K     0  100K   0% /run/cgmanager/fs tmpfs           1.6G   44K  1.6G   1% /run/user/1000   When I do a umount /snap/core/3604orumount /dev/loop0 it will unmount so it's apparently not busy at all(also when i try to remount /dev/loop0 again, it doesnt remount because, of course, it's not in fstab. in it, it looks like there is a whole little, cute and tiny root filesystem squashed in that 84M:   root@maxipc:~# ls -la /snap/core/3604 total 4 drwxr-xr-x 24 root root  333 Nov 30 12:39 . drwxr-xr-x  3 root root 4096 Dec 26 20:29 .. drwxr-xr-x  2 root root 1937 Nov 30 12:38 bin drwxr-xr-x  6 root root  129 Nov 30 12:38 boot drwxr-xr-x  4 root root 1160 Nov 30 12:38 dev drwxr-xr-x 80 root root 2399 Nov 30 12:38 etc drwxr-xr-x  2 root root    3 Apr 12  2016 home drwxr-xr-x 20 root root  406 Nov 30 12:38 lib drwxr-xr-x  2 root root   43 Nov 30 12:38 lib64 drwxr-xr-x  2 root root    3 Nov 30 12:35 media drwxr-xr-x  3 root root   45 Nov 30 12:39 meta drwxr-xr-x  2 root root    3 Nov 30 12:35 mnt drwxr-xr-x  2 root root    3 Nov 30 12:35 opt drwxr-xr-x  2 root root    3 Apr 12  2016 proc drwx------  2 root root   46 Nov 30 12:38 root drwxr-xr-x  8 root root  115 Nov 30 12:38 run drwxr-xr-x  2 root root 2349 Nov 30 12:38 sbin drwxr-xr-x  2 root root   58 Nov 30 12:39 snap drwxr-xr-x  2 root root    3 Nov 30 12:35 srv drwxr-xr-x  2 root root    3 Feb  5  2016 sys drwxrwxrwt  2 root root    3 Nov 30 12:37 tmp drwxr-xr-x 11 root root  151 Nov 30 12:38 usr drwxr-xr-x 12 root root  172 Nov 30 12:38 var drwxr-xr-x  2 root root    3 Nov 30 12:36 writable   and when I try to do a fuser -m /snap/core/3604 to see who uses the mount, nothing shows up. it reappears every single boot, and I don't know how the heck it's coming up, oh also, there is no sign of it in /etc/fstab. it's also squashfs file system. it looks like it's harmless but I just wanna know why it does what it does. what is it? any help/reply would be appreciated.  Thank you in advance,   MG  ps: I thought this question is different because the loop device is mounted as if it is an primary and working filesystem eventhough it's not busy at all. it gets umounted everytime if you want to, but it shows up again after boot. usually loop devices come up by df -H but for me this loop device comes up even among things that gnome graphical tools show, just like how a hardrive shows in your nautilus.
73177
I need a way to determine the space remaining on a disk volume using python on linux, Windows and OS X. I'm currently parsing the output of the various system calls (df, dir) to accomplish this - is there a better way?
12673
I've run into a problem on one of my servers running 16.04: there is no disk space left.  I have no idea what is taking up the space. Is there a command to list the current directory sizes, so I can traverse and end up in the directory taking up all the space?
80593
My root filesystem is running out of inodes.  If this were an issue of disk space, I'd use du -s to get a top-level overview of where the space is going, then head down the directory tree to find particular offenders.  Is there an equivalent option for inodes?   will point out individual directories with high usage, but in my case, that's no good: the Linux source directory, for example, gets scattered across 3000+ directories with low inode counts, rather than showing up as /usr/src/linux-4.0.5 52183.
96909
I mount /tmp on tmpfs using:  sudo systemctl enable tmp.mount sudo systemctl start tmp.mount   But this way /tmp takes up all the free RAM:  $ df -h /tmp Filesystem      Size  Used Avail Use% Mounted on tmpfs           3.9G   12K  3.9G   1% /tmp $   How do I tell systemd tmp.mount to use only 1G? I know I can alternatively not use systemd and manually add an entry to /etc/fstab and specify the size there. But I don't want to do that. I want to use systemd backed tmpfs.
71145
Well well well...my computer keeps on eating whatever free space is available in the hard drive. It doesn't care whether the free space is in kb,KB,MB or GB. It happens only in the C drive where my OS &amp; other program files are installed.  I used a software Windir Stat or something like that (I don't remember the name exactly) to analyze the usage of space by various programs.  In my C drive, there's a folder named AppData with loads of useless files. I don't know whether they are useful or not? Are they useful?  I was thinking about deleting the contents of that folder. I visited  for more info. WHich folder should I delete???
118154
Is there a command that will show which file system (ext3, ext4, FAT32, ...) the various partitions and disks are using?   Similar to how sudo fdisk -l lists information about disks and partitions?
2642
My Vista 64 installation has drive C, a 150 GB hard drive.  I also has a 1.5 TB drive D.  My C drive has 12.3 GB free.  I don't know what's using up all the space.  There's almost 83 GB unaccounted for!!!  As per  question and  question, I downloaded  and .  WinDirStat, once I found the right options, tells me there's 82.9 GB of .  SpaceMonger, which has a particularly nice display of the data, tells me there's 82.3 GB "Unscanned", with 2 unscannable folders.  Where do I turn now?  Both tools roughly agree there's a large amount of data on my drive, but neither seem to be able to tell me what.  I've tried the standard approach; disk cleanup, remove hibernation file, set the virtual memory to the D drive instead of the C drive.
85413
Possible Duplicates:             df -h says that I have 494G used on /var:  Filesystem            Size  Used Avail Use% Mounted on /dev/sda3             564G  494G   41G  93% /var   But du -sh /var says it's 350G  What makes them different?
116431
What sets the size of the tmpfs? (On my machine it resides in /dev/shm) I can see its entry in /etc/fstab, but no notation of its size. When checking with df -h, it seems to be half the size of the physical memory installed in the system. Is this the default behavior?  Also, what happens if it gets full? Does it expand dynamically forcing other running programs into swap? Does tmpfs itself moves into swap partition?   Finally, what takes priority into the memory tmpfs or applications? i.e., if I have tmpfs sufficiently full (like 40% of the physical memory) and I have programs that requires 70% of the physical memory, which one gets the priority?
50093
When I execute the command df -h /tmp it says disk utilization is 100%, but when it try du -sh /tmp it says disk utilization is 2%.  I want to know why these commands shows different output, how these two commands work and what is the solution to this problem.  Context: /tmp is installed on it own file system. I am using Ubuntu 12.04 server edition on my VPS account. Due to this problem utilization of /tmp 100% according to df some programs complain about free space in /tmp.
122052
With the command of df, I can get something like:  Filesystem     1K-blocks     Used Available Use% Mounted on /dev/root      197844228 15578648 180242500   8% / devtmpfs         4101368        0   4101368   0% /dev tmpfs             820648      292    820356   1% /run tmpfs               5120        0      5120   0% /run/lock tmpfs            1693720        4   1693716   1% /run/shm   What if I just want to keep the 180242500 number recorded of / and store it in a file (like disk-space-available.txt)  If I use df &gt;&gt; disk-space-available.txt it will store all the content while I just want the raw number in that file.  For example if there is something like this then it's working:  df -OUTPUT=raw-available-number 180242500   What can I do?
6571
I am trying to understand how to see the total size of my hard drive &amp; how much is left. It was recommended on various searches to use the command below   df -h Filesystem      Size  Used Avail Use% Mounted on udev            7.8G     0  7.8G   0% /dev tmpfs           1.6G  9.6M  1.6G   1% /run /dev/sda1       219G   29G  180G  14% / tmpfs           7.8G   18M  7.8G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup cgmfs           100K     0  100K   0% /run/cgmanager/fs tmpfs           1.6G   64K  1.6G   1% /run/user/1000   However I don't understand any of these directories. I mean what are they, are these all directories or partitions or what? And why do they appear under "mounted on"? How does that bit work. I assume the /dev/sda1 is my solid state drive? So now if I install applications, which one of these directories does my software get installed  into? I assume it just gets installs in the / directory (I haven't even got a clue what the / directory is). Can someone explain what the other directories are and what they are used for?
10697
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 into /var and do du -kscxh *, the total is 2.1G  2.1G + 200M free = 2.3G... So my question is, where is the remaining 1.7G ?
71459
I have a CentOS 7.2 (minimal) VM running in a vSphere cluster, which has a 16G drive formatted as XFS under the default full-disk usage partitioning scheme from the CentOS installer. The system is running a test httpd service (all software from the default centos repos), but its space usage on disk is growing. This is in part from problematic apache error/access logs (2+GB in size), and removing these longs frees up some space. What is eating the drive space isn't so much a concern for me (I'll just nuke and pave this eventually). However, when I run df an du to check file sizes, I get a discrepancy and this is what's confusing.  First I run df -h to view filesystem usage:  [root@svrhttp03 httpd]# df -h Filesystem                         Size  Used Avail Use% Mounted on /dev/mapper/centos_svrhttp03-root   14G  4.8G  9.1G  35% / devtmpfs                           902M     0  902M   0% /dev tmpfs                              912M     0  912M   0% /dev/shm tmpfs                              912M   97M  816M  11% /run tmpfs                              912M     0  912M   0% /sys/fs/cgroup /dev/sda1                          497M  169M  329M  34% /boot tmpfs                              183M     0  183M   0% /run/user/0   This is showing 4.8G used on the root FS.  I then run the following to view the size of all items at the root of the filesystem:  [root@svrhttp03 httpd]# du -a -h -t 10K / 2&gt; /dev/null | grep -v -E "[A-Z,a-z,0-9]/." | sort -h 16K /home 7.4M    /root 31M /etc 97M /run 143M    /boot 324M    /var 1.3G    /usr 1.9G    /   This shows only 1.9G in use, and the reported size of all directories add up to ~1.9G, as expected.  So how can I find that ~2.9G discrepancy between what df and du are claiming for data on disk?
56916
I would like you to help me understand the output of df -h below:  udev            7,8G     0  7,8G   0% /dev tmpfs           1,6G  1,7M  1,6G   1% /run /dev/sda3       229G   68G  150G  32% / tmpfs           7,9G  211M  7,6G   3% /dev/shm tmpfs           5,0M  4,0K  5,0M   1% /run/lock tmpfs           7,9G     0  7,9G   0% /sys/fs/cgroup /dev/loop1       84M   84M     0 100% /snap/core/3748 /dev/loop0      160M  160M     0 100% /snap/spotify/5 cgmfs           100K     0  100K   0% /run/cgmanager/fs tmpfs           1,6G   68K  1,6G   1% /run/user/1000   I would like to understand what exactly are the udev, tmpfs and /dev/loop partitions.   I am wondering if they are some sort of 'leftoveres' after my Virtual Machines in Virtual Box.   I had a few virtual machines with 8GB in size but I have removed them and I still see there are some partitions that are taking quite a lot of space.    Are they related to Virtual Box?  Is it safe to remove those partitions?