This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

4
votes
4answers
151 views

show only physical disks when using df and mount

When I use df or mount, I'm most of all interested in physical disk partitions. Nowadays the output of those commands is overwhelmed by temporary and virtual filesystems, cgroups and other things I am ...
1
vote
1answer
24 views

Can't find 8GB data in FreeBSD [on hold]

I can't find 8GB data in FreeBSD. I use df -h and see this: /dev/da1s1a 19G 16G 1.4G 92% / devfs 1.0k 1.0k 0B 100% /dev zzdata/jail 341G 22G ...
0
votes
2answers
32 views

Different output of du and df [duplicate]

Ok, here's the issue which is totally confusing to me: df -h Dateisystem Größe Benut Verf Ben% Eingehängt auf /dev/sda2 3,8G 1,5G 2,2G 41% / /dev/sda1 122M 13M ...
36
votes
11answers
28k views

How to understand what's taking up space?

I'm looking for a linux alternative to WinDirStat. I would like to know what is taking up space on my hard drives. A program that works on console and doesn't require a UI is preferred .
166
votes
9answers
281k views

How do I get the size of a directory on the command line?

I tried to obtain the size of a folder (containing folders and sub folders) by using the ls command with option l. It seems to work for files (ls -l file name), but if I try to get the size of a ...
1
vote
1answer
28 views

How does `du` count blocks used

I'm curious to understand how du counts blocks used in a file. Scenario dd bs=1 seek=2GiB if=/dev/null of=big 0+0 records in 0+0 records out 0 bytes (0 B) copied, 2.3324e-05 s, 0.0 kB/s ls -lh big ...
1
vote
3answers
76 views

No more disk space, nothing eating my disk. Why?

I had 100% of disk use on /dev/xvda1 Which is the system partition, so I decided to mount /var/lib On another partition /dev/xvdf since docker files under /var/lib were eating much space. ...
2
votes
1answer
31 views

ZFS groupused value not current

On my Solaris 11 box I have a zfs pool (z) that uses 100G group quotas on each user in /org/users folder. One user had reached their quota and cleaned up their data. The df output, that had previously ...
2
votes
0answers
30 views

CentOS 7: RAID 1 high I/O wait

I am running CentOS 7, with RAID 1 (md) on the hard drives. I have the partitions set as shown below. md0 -> root (sda1, sdb1) md2 -> swap (sda2, sdb2) md3 -> misc (sda3, sdb3) on md3, I ...
4
votes
2answers
882 views

Fedora 23 — Can I safely delete files in /var/cache/PackageKit/metadata/updates/packages?

I noticed that the folder referenced in the subject line is taking up 1.5 GB. Can I run the below to clear it without causing permanent damage to my system? rm -rf ...
-1
votes
0answers
14 views

how to get disk read/write bytes per second from /proc in programming?

purpose :i want to get information like iostat command can get . I have already known that if open /proc/diskstats or /sys/block/sdX/stat there are information that :sectors read and sectors write. ...
0
votes
2answers
208 views

difference between df -h and dfc

Why is there a difference in the used size between dfc and df -h? $ df -h Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf /dev/sda7 64G 51G 11G 83% / none 4,0K ...
0
votes
2answers
44 views

No space left on device- on Amazon EC2 instance Ubuntu

I just expanded my storage space on Amazon EC2, after I ran out of volume. However, even after doing so, I receive an error message as follows: ubuntu@ip-172-31-30-27:~/walt/bin$ LC_ALL=C sort -k ...
0
votes
1answer
140 views

df reports 100% full filesystem, du shows only 25% used even though there's no unlinked file [duplicate]

I have strange issue, df shows rootfs is 100% full but du shows it's 25% used. So I check on the unlinked files from the rootfs using lsof +aL1 / and it does not show me any deleted/unlinked files ...
10
votes
1answer
8k views

How do I reduce the size of locale-archive?

I have a need to reduce the size of the locale-archive file on some of my RHEL6 systems. Here is that file on my system: [root@-dev-007 locale]# ls -l total 96800 -rw-r--r--. 1 root root 99158704 ...
0
votes
2answers
24 views

How does ext4 decide number of blocks of a file?

I'm playing with stat command which basically shows the inode information. Though I'm showing the information of a small file (146 characters), it shows 8 blocks. I was wondering why is that? Since ...
3
votes
4answers
68 views

du --exclude directories - is this possible?

How to calculate disk usage of a file tree but excluding directories. I'd like to have something like: du --exclude type d I use rsync to mirror/backup part of my home dir and I want to double ...
0
votes
1answer
31 views

extend Disk space

i want extend my disk space : #df -h Filesystem Size Used Avail Use% Mounted on udev 10M 0 10M 0% /dev tmpfs 403M 17M 387M 4% /run /dev/sda1 19G 18G ...
0
votes
0answers
17 views

RHEL 7 Install - Main partition taking up entire allotted space + other problems

I hope this is the proper place to ask RHEL questions, I have already asked on the RHEL discussions area and have not gotten any replies after a week of posting. I am having a few problems in setting ...
5
votes
2answers
1k views

du — ignore file not found errors

I'm trying to get the size of a folder an application is currently writing to. If I run the du command it sometimes fails with the error: du: cannot access `/a/b/a.txt': No such file or directory ...
0
votes
0answers
65 views

“No space left on device” when trying to copy small folder to an external drive with alot of free space

I have an Hitachi XL1000 1TB external drive. It shows around 300GB of free space, either via the file explorer properties or via df command. But I get an "Error creating directory: No space left on ...
1
vote
1answer
16 views

Why does baobab estimate my usage as less than half compared to du or pan_quota? [duplicate]

On a panfs filesystem: pan_quota says I'm using 8.67 GB. du -hcsx says I'm using 8.1 GB. baobab says I'm using 3.3 GB. This is for my home directory, with a 8 GB soft and 10 GB hard quota. What ...
2
votes
2answers
39 views

what occupy space at overlayfs

I have a linux with a read only root filesystem and a read-write overlayfs mounted over it: # mount overlayfs on / type overlayfs (rw,relatime,lowerdir=/root_ro/,upperdir=/root_rw/) ... The ...
2
votes
2answers
61 views

Why does df show negative available space?

Filesystem Size Used Avail Capacity Mounted on /dev/ada0p2 1G 624M 302M 67% / devfs 1.0k 1.0k 0B 100% /dev /dev/ada0p4 503M 20k 463M 0% ...
0
votes
2answers
66 views

Disk busy 101% all the time

I have an OpenNMS Linux server which is having poor disk performance. The machine is a EC2 inside a VPC. atop shows: iotop shows: How do I reduce the IO numbers and bring down the disk ...
22
votes
7answers
8k views

Which installed software packages use the most disk space on Debian?

Disk space on my root partition is running low, so I want to delete some applications from the system. How can I see which software packages use the most disk space? Is it possible to view that from ...
3
votes
1answer
32 views

reserve disk space before copying files

I would like to reserve (or is the keyword "claim"?) some amount of disk space before an rsync occurs so other programs will believe a disk has less space (because after the rsync, the disk will have ...
3
votes
1answer
48 views

Ignore unmounted file systems

I've got two devices on my LAN: a Raspbian jessie and an Ubuntu 14.04. The latter has some nfs shared folders, which are available from Raspbian at startup, set up in its /etc/fstab file as: ...
2
votes
1answer
55 views

Setting a disk space quota on a samba share residing on an ZFS pool

I have several samba shares, one of which is used for storing some backups. I want to set a disk space quota on said share, as the ZFS volume the share resides on is huge and multi-purpose... I don't ...
18
votes
5answers
3k views

How can I determine if running tar will cause disk to fill up

If I run tar -cvf on a directory of size 937MB to create an easily downloadable copy of a deeply nested folder structure, do I risk filling the disk given the following df -h output: /dev/xvda1 ...
0
votes
1answer
58 views

How to move empty disc space between partitions

I want to move an empty disc space from one partition to another. Is this possible? In the below image, I have free space under /local (/dev/sda3). I want to allocate this space to / which is on ...
20
votes
6answers
9k views

How to cache or otherwise speed up `du` summaries?

We have a large file system on which a full du (disk usage) summary takes over two minutes. I'd like to find a way to speed up a disk usage summary for arbitrary directories on that file system. For ...
0
votes
1answer
28 views

I need to activate quotas on my centOS 7 machine

Okay. I'm very new at this so it might be an easy one for many of you. I have a virtual machine installed with centOS 7. I want to activate quotas for a specific user using the / partition. How can I ...
-1
votes
1answer
18 views

du access failures

I ran du on a particular machine and two instances of failure: Since I ran as superuser I do understand how I can get denied. Second problem was with the proc tree: I kind of get the gist of why ...
0
votes
1answer
49 views

how do I make sda1 or sdb1 bigger

I'm working with Google Cloud services. After I've cloned a VM, I type lsblk after ssh'ing into it and can see that the partition sda1 is only 10 GB, which is only 10% of what I paid for. I am not a ...
7
votes
1answer
165 views

Why is `du --apparent-size` sometimes off by more than 90%?

I'm working on a software that builds Pacman packages (which basically are tarballs with some special metadata files). The test suite builds some packages, then compares the resulting package to a ...
0
votes
1answer
22 views

Problems with crontab du to curl

I am trying to send the output of a treesize command to my webserver for further processing. This is not going well, I guess mainly because I am very new to Linux/Debian7 :). Hope you can help me. ...
0
votes
0answers
32 views

Disk usage for a mounted drive shows up completely between the host and a container

When comparing the disk usage for a mounted harddrive the usage is completely different when compared between the host and the container. I am running Ubuntu 14.04 on the host and in the lxc ...
4
votes
2answers
590 views

Does du or df perform caching?

I was wondering if there is any caching done with these utilities. I assume not, but not positive. Are there any typical similar utilities that do use caching to speed up results on subsequent runs? ...
1
vote
2answers
113 views

Does LVM eats my disk space or does df lie?

Please look at the output below: bob ~ # df -h Filesystem Size Used Avail Use% Mounted on udev 5,7G 4,0K 5,7G 1% /dev tmpfs 1,2G 1,5M ...
1
vote
2answers
44 views

How to detect which process filled up disk space

During weekend my Debian based proxy crashed due to insufficient free space. After reboot it was fine again, so on monday I went hunting for logs and/or explanations for saturday hang but I couldn't ...
0
votes
0answers
47 views

mysterious out-of-space message from rsync

I am mystified by the out-of-space message from rsync - I have enough freespace on the destination to hold everything, and I blv enough also on --vg-root as well. This doesn't seem to be the same ...
2
votes
3answers
919 views

How to monitor per user disk usage in Linux

I have local disk with 2T capacity attached to a host. Nearly 60 user home directories are stored on this disk. Currently no disk quotas are enabled. I need monitor the disk usage of individual ...
12
votes
5answers
7k views

Is there a way of deleting duplicates more refined than fdupes -rdN?

Recently I have the need to delete a lot of duplicates. I am merging three or four filesystems, and I want the space to be used economically. At first, fdupes seemed like it was the best tool for the ...
70
votes
1answer
4k views

Why are there so many different ways to measure disk usage?

When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many ...
3
votes
2answers
43 views

where could my disk space be if it is not sparse, deleted or hidden by a mount point

I appear to have lost a couple of GB in an ext4 root filesystem (under llvm on centos 7.1 in a VMWare ESX VM if that matters). [someone@somewhere ~]$ sudo du -xsm / 4561 / yet: ...
0
votes
0answers
65 views

How to use df -h for only for path I am currently using for copy files and put the output to variable?

I am looking for a way to check the disk space only for partition which I am using to backup some folders and files to. As an example: I am in folder /var/usr/local/foo and I need to copy this ...
0
votes
0answers
41 views

History of folder size

Is there any way in Linux to track the changes of a specific folder's size over time? i.e let's say we created a folder PHOTO one year ago. Is there any way to see how the folder size changed over ...
222
votes
32answers
175k views

Tracking down where disk space has gone on Linux?

When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time ...
0
votes
1answer
46 views

%100 space on ubuntu/media [closed]

ubuntu@ubuntu:~$ df -k Filesystem 1K-blocks Used Available Use% Mounted on udev 1969072 4 1969068 1% /dev tmpfs 396184 1408 394776 1% /run /dev/sdb1 ...