This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

1
vote
1answer
22 views

How can I mount /usr on another partition but use a folder called /usr on that partition instead of using / as /usr?

Somewhat along the lines of this question, How to mount multiple directories on the same partition? but my situation is different. I have a 2 small partitions that I'm using for two variants of ...
3
votes
2answers
6k views

What are /dev, /run and /run/shm and can I resize them?

So, I recently created a 15GB partition for Linux Mint 14. I've been working on it for a while, and I got a Low Disk Space notification. I ran df -h and this is what I'm getting: Filesystem Size ...
0
votes
3answers
54 views

what is the equivalent of du -s --si * in a Solaris box?

I have a Solaris box that is blowing up right now because a disk is very close to filling up. I need to know what subdirectory on that disk is hogging up the space, but Solaris doesn't like du -s --...
-1
votes
1answer
61 views

“df -h” unable to show the command output on a Linux System

I was trying to check the amount of hard drive by typing df -h Its showing me below status since long time. svn_manager@fileserver:~$ df -h ^C^C^C^C^C^C^C^C^C^Z^Z^Z^X^X^C^C^C^C^C^C^C^C I have ...
28
votes
8answers
60k views

How do I count all the files recursively through directories

I want to see how many files are in subdirectories to find out where all the inode usage is on the system. Kind of like I would do this for space usage du -sh /* which will give me the space used ...
3
votes
2answers
129 views

How can I know the total size taken by specific kind of files in my hard drive?

Like the title says I would like to know if there's a command that can tell me how much storage are the .jpg files (for example). Something like if I do find / -iname "*.jpg" which can add the size of ...
11
votes
3answers
12k views

Why does fstab use UUID instead of the actual file system name?

For example, this is the first line of my /etc/fstab: UUID=050e1e34-39e6-4072-a03e-ae0bf90ba13a / ext4 errors=remount-ro 0 1 And here's the output of df -h command (reporting free ...
29
votes
3answers
4k views

Way to instantly fill up/use up lots of disk space?

On a Linux VM I would like to TEST the NAGIOS monitoring more deeply than just switching off the VM or disconnecting the virtual NIC; I would like to test or "enforce a disk space alarm" through ...
1
vote
1answer
53 views

Disk I/O and load average peaks once every hour

We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time. ...
2
votes
2answers
45 views

Get only the size of a mounted filesystem

I want to get only the total size of a mounted filesystem. But the catch is that I only know about the mount point. So, I thought of using the df command. To get the size of this mounted filesystem, ...
7
votes
3answers
2k 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 /var/cache/PackageKit/metadata/...
0
votes
0answers
97 views

MS Windows Folder Properties Size / Unix du -bs

I use MS Windows Folder Properties Size as a means to check the integrity of folders as I make copies, archives and backups. There have been multiple posts on the difference between the Unix system ...
1
vote
1answer
21 views

how to get /log fS usage in two remote servers

how to trigger mail with below format by getting df -h /log fS usage server1 | server 2 75% | 50% Below are step how i check FS usage manually login to putty ssh server1 give the ...
35
votes
5answers
61k views

How to recursively find the amount stored in directory?

I know you are able to see the byte size of a file when you do a long listing with ll or ls -l. But I want to know how much storage is in a directory including the files within that directory and the ...
1
vote
0answers
17 views

Migrate by disk usage

How to migrate home directories all of users which have disk usage greater than 1MB to mounted disk /home2. New directories can look like /home2/login. I have mounted disk i need to know only how to ...
4
votes
2answers
405 views

How to check (simulate), how much space will be freed after I remove a btrfs subvolume?

The question is not trivial. BTRFS is COW file system and one object stored on hard disk can be referenced by many files. I use BTRFS snapshots as a part of a backup solution on my production server....
3
votes
1answer
52 views

awk + how to perform OR in awk

by the following command I capture available size from df echo "$DF" | awk '$NF == "/var" { print $(NF-2) }' how to set the syntax if I want to set NF == "/var" or NF == "/" because I ...
1
vote
2answers
55 views

Can lower swappiness speed up wake-up from hibernate?

Does anyone use swap? what is your swapiness value? Mine are 60 $ cat /proc/sys/vm/swappiness I use hibernation. It worked but slow to load when wake-up.. If I tune swappiness from 60 to 10. Does ...
4
votes
4answers
188 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
30 views

Can't find 8GB data in FreeBSD [closed]

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
43 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 ...
38
votes
11answers
30k 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 .
205
votes
9answers
379k 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
36 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
93 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
34 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
54 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 ...
0
votes
2answers
219 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
117 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 1,...
0
votes
1answer
205 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
9k 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
27 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
84 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
36 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
21 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
2k 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
82 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
19 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
57 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
130 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
89 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 ...
24
votes
7answers
9k 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
57 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: 192.168....
2
votes
1answer
92 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
98 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 /dev/...
20
votes
6answers
10k 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
37 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
20 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 ...