Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [disk-usage]

Hard disk space usage: how much space do my files take?

-1
votes
0answers
17 views

Incorrect partition set up at install? Not enough room on root?

I followed some standard Linux Mint install instructions and partitioned my disks like so: /    –   10 G /swap –   4 G /home – 450 G As I am using the system and install applications, I am told I ...
2
votes
0answers
30 views

Different mount points with df -Th and lsblk

I am wondering why the output of df -Th and lsblk commands showing different mount points for logical volume tmp. Server: RHEL v7.4 [root@mysystem ~]# df -h Filesystem Size ...
0
votes
0answers
16 views

df -h inaccurate output [duplicate]

when I hit the command dh -h in my shell I'm confused why I get an inaccurate answer for / which is 29G. by inaccurate I mean the summation of avail which is 8G and Used which is 20G is 28G but the ...
0
votes
2answers
35 views

Find out which process has data open on the hard drive that is no longer visible in the directory tree [duplicate]

On my server, the root partition is 73GB, but the disk says, it is full, although there are only about 6GB used on that device: # df -h Filesystem Size Used Avail Use% Mounted on ...
-1
votes
1answer
21 views

find command sends subfolders even with maxdepth having value of 2?

I have this bash command: find . -type d -mindepth 1 -maxdepth 2 | du -h --threshold=2KB and I got these results: r2g: the tarball folders: 8.0K ./cli r2g: the tarball folders: 24K ./dist/...
6
votes
2answers
101 views

Why does GNU Core Utilities stat (including du and ls) report the following sizes (ext4 in GNU/Linux)?

If I have the following contents in a directory: empty_dir: Empty directory. empty_file: Empty file. one_char: File consisting of one character. several_blocks: File consisting of several blocks (but ...
1
vote
1answer
17 views

How can I triage a discrepancy between my df and du output?

NOTE: I'm fully aware of these other questions on this site: Why are there so many different ways to measure disk usage? du on ramdisk displays 3GB less than df My issue shows up as follows: $ du -...
0
votes
0answers
16 views

How to calculate the throughput usage of AWS EBS volume

We have a hadoop cluster running on AWS EC2 instances. Configured 16T st1 volume in datanodes for HDFS usage. We need to understand, what is the maximum throughput hitting on this st1 volumes. Since ...
13
votes
3answers
1k views

du wrongly reports empty directory

I'm using these commands: du -sh --apparent-size ./* du -sh ./* both reporting: 4.0K ./Lightroom_catalog_from_win_backup 432M ./Lightroom catalog - wine_backup while those directories ...
3
votes
1answer
41 views

Why are du -h / du / df / df -h not refreshing when extracting a large file

I am running tar in the background, eg: tar xfvz large_file.tar.gz & It does extract my file, but when I then launch du -h, du, df or df -h, the output remains the same, and I have to wait ...
0
votes
1answer
18 views

How to measure the usage of disk cache?

Load Average itself is not very informative about the reasons of overload, so I want an additional characteristic: the percent of disk read operations that are done from cache. To measure it, I ...
0
votes
1answer
19 views

rdiff-backup needs too much space to recover from failure of previous backup?

I have quite a lot of free space (and inodes) on this filesystem, but rdiff-backup apparently runs out of space. And hence my backups are not working at the moment :-(. Why? (I wonder how much ...
0
votes
1answer
55 views

How much space does my Debian OS need

I am using a BeagleBone, with 4GB of internal emmc. When I install a Debian image on it from its site and run command df -h , the result is below. /dev/mmcblk1p1 shows that it uses 3.4G of memory. ...
0
votes
1answer
57 views

Resize partition without using LVM

I have Ubuntu 16.04 installed on remote server and I have requested another 20GB for my /dev/vda2 partition (now its 20GB), so the total size would be 40GB. Since vda2 is full of very valuable data (...
0
votes
2answers
24 views

du calculating whole directory size when we pipe the null input, how to stop it

[emdfqmm@nfwne ncndnkln]$ ll -h | grep "Oct" | grep "2018" | xargs du -ch 5.0G ./something 5.0G . 5.0G total [emdfqmm@nfwne ncndnkln]$ ll -h | grep "Oct" | grep "2018" | wc -l 0 When it got ...
0
votes
0answers
16 views

Different folder size on Windows 10 and Ubuntu 14.04 [duplicate]

I have a folder on Windows 10 on my user documents. The size of my folder content on drive C:\ is reported on Windows as: When I copy the folder to my USB drive F:\ the size is reported as: On drive ...
1
vote
1answer
145 views

df not recognizing partition being resized? [duplicate]

I've got Ubuntu 18.04 Server in Virtual Box, and once I've ran out of 10 GB of allocated space on virtual disk, I've increased the size of the virtual disk to 17 GB and resized the root partition ...
1
vote
5answers
63 views

Linux: Find the second biggest file/directory in size using commands

Introduction Find the second biggest file/directory in size using commands. What I have du /etc/ -hsx * | sort -rh | head -2 This command shows me two lines which, by the options I've chosen, gets ...
1
vote
1answer
38 views

How to erase vanished files on linux system?

I have one server at packet.net and I have attached external volume which is mounted to folder /BACKUP where I process backup. Yesterday I have received an email that there is a problem with main ...
2
votes
2answers
68 views

How can I filter read only file systems out of df output?

I use df to check if any of my mounted file systems are close to getting full. I have a cron job that sends me email if any of them are getting to be above 90% full. The problem is that some ...
-1
votes
1answer
57 views

Sort `du -sh` in an reasonable order [duplicate]

I want to check the disk usage with a readable size (option -h) [root@iz2ze9wve43n2nyuvmsfx5z /]# du -sh ./* 2>/dev/null | sort -nr 914M ./var 568K ./tmp 523M ./root 496K ./run 156M ...
1
vote
1answer
31 views

sed to remove lines starting with 'du`

I intent to check the diskspace with du -s [root@iz2ze9wve43n2nyuvmsfx5z /]# du -s /* | sort -k 1|sed "/du/d" du: cannot access ‘/proc/31265/task/31265/fd/4’: No such file or directory du: cannot ...
4
votes
3answers
75 views

unique contribution of folder to disk usage

I have a backup containing folders for daily snapshots. To save space, identical files in different snapshots are deduplicated via hard links (generated by rsync). When I'm running out of space, one ...
0
votes
1answer
46 views

What triggers journald to free up space, to comply with SystemMaxUse, SystemKeepFree?

When I do a software update (Ubuntu upgrade) and e.g. install new Linux kernels, sometimes I run out of space, which is a BAD THING. This is on Ubuntu Bionic 18.04, with systemd, so journald is ...
0
votes
1answer
51 views

Shrink disk (Thick Provisioned) size of CentOS VM and reclaim disk space on ESXi host

Our customer has VM with CentOS on ESXi host. I have to shrink the disk size of the VM and need to reclaim that free disk space back to ESXi host. Disk type on VM is Thick provisioned. How to do it?
1
vote
1answer
43 views

How to know what consumes storage? [duplicate]

I have a Centos 7 VM and I want to know what consumes the 126G on the /dev/mapper/centos-root fs. I have 2 mount points and I unmounted them to make sure there's nothing reserving space under them ...
0
votes
1answer
135 views

Grepping on du -h for all the files that are larger than 1GB

So my disk is full, I am trying to grep for all the files larger than 1G. I tried searching for the word Sort in the man page of DU, but found nothing. du -h . | grep -E "^\d*\.\d*G" and also this. ...
1
vote
1answer
40 views

use df on distant server with SSH and get the available size

i'm trying to use this code (working on a local server) on a distant server on SSH df |tail -n +2 | awk '{if ($6 == "/var") print $2; }' my code looks like that function dst_request { # Effectue ...
1
vote
3answers
76 views

How much space is available?

The question says Remove the entire git directory (it is not used in our tutorials). Now repeat the above calculation for disk space, but this time give the answer in blocks. I successfully deleted ...
6
votes
1answer
898 views

Why is /home twice as big as expected?

I was checking my disk usage today, and ran the following commands (using sudo so I didn't get "permission denied") $ du -hs /home 26G /home $ ls -la /home total 24 drwxr-xr-x 4 root root ...
3
votes
4answers
542 views

cut / grep df -h [duplicate]

How can I get the mount point "3.1T" under the column " Avail" (using grep or cut)? Filesystem Size Used Avail Use% Mounted on vstorage://cluster07 4.0T ...
0
votes
0answers
19 views

How to show dir sizes for a shared dir on a VM

I'm using an Ubuntu VM using Parallels for Mac. When I run du -d1 in /media/psf/share (which is the shared dir from the Mac host), everything shows as 0. Is there a way to have du return the actual ...
0
votes
1answer
77 views

df du hardlinks and space reclaimation

I am really confused on how to build an understanding around hardlinks. I work with a DB hosted on Linux. The Db in order to take backups creates hardlinks to data files in a different directory. ...
0
votes
0answers
34 views

Formating the wrong partition on Linux Debian

I have, mistakenly, deleted "/dev/mmcblk0p5". I connected to my server(Debian 9) via browser with a new feature I had installed "open media vault" to create/manage a NAS, then I saw two patitions in ...
1
vote
1answer
34 views

df size of partition and dd-ed image with sparse flag does not match

The size of a partition is close to 2Gb and the actual used size is 1.5Gb, I am trying to make image of this partition using dd with conv=sparse flag enabled. The generated image by dd is of size 1....
0
votes
0answers
22 views

Disk wiped but some space is still not freed?

I just erased my 1TB HDD with GParted but there is still 60GB in use. I tried to wipe the disk multiple times but it does nothing. From GParted: There is 15.70Gio in use after the wiped At the ...
0
votes
1answer
58 views

Disk usage of all the files in a directory

I am trying to get the disk usage of all the files present in a particular directory using the following commands and I am getting different answers for both. Could anyone explain why? find ./ -type ...
1
vote
1answer
3k views

Should I use XFS or ext4? [closed]

Context I'm setting up a system for an off-site backup. It is a Raspberry Pi connected to two external hard disks. The data is written on both disks in parallel (this is not RAID 1, but two disks on ...
2
votes
0answers
36 views

Why does an SCPed git repo have a different size?

I've SCPed a git repo from a machine running Ubuntu to a machine running Centos (there would be issues with pushing currently uncommitted changes into the repo and cloning it on the new machine), but ...
0
votes
1answer
221 views

“No space left on device” despite 70GB free; can't create any files larger than 8.0MiB on iPad [closed]

OK so this is on an iPad Pro but I'm asking you guys because this is about the underlying Unix system behind iOS/OS X, not really iPad specific. (And yes I spent hours reading all relevant ...
-2
votes
1answer
64 views

du reports directory size as much smaller than the sum of its contents

I have a directory ~/D that I'd like to find the size of. using du -c ~/D/* gives 26880. However, if I run ls -l ~/D, then I can clearly see that the individual files add up to much more than 26880. ...
-1
votes
1answer
110 views

ls and du disagree about file size, by a few orders of magnitude

Does anyone understand why I might get these results? Note the discrepency in file size between the two commands below: $ ls -lh gauss_landmarks_0000.npy -rw-rw-r-- 1 dparks dparks 1.1G Aug 16 12:43 ...
0
votes
2answers
26 views

How to allocate more memory to main partition?

I'm trying to setup a raspberry pi 3 for linux use, and I'm running into trouble with partitions. I'm very new to linux use and disk management so this is probably my misunderstanding. I don't have ...
0
votes
2answers
87 views

df (with options) leaves zombie process

OS = CentOS 7.3 If I try to run the 'df' command on this server with an option (e.g. -h -l) it hangs and leaves a zombie process. I cannot Ctrl+z out back to a prompt. If I run 'df' against specific ...
1
vote
0answers
27 views

How to See Bound Folders and Release Them

This morning I noticed someone had stuck a USB Drive in the back of the server. (I'll have to end that practice later). For some reason CentOS 7 mounted that disk /dev/sdc1 under /run/media//. I also ...
1
vote
0answers
35 views

.git takes MORE space after gc

$ du -ks .git 784113 .git $ git gc Counting objects: 30237, done. Delta compression using up to 4 threads. Compressing objects: 100% (9165/9165), done. Writing objects: 100% (30237/30237), done. ...
1
vote
1answer
1k views

df hangs and I have no idea why

[backstory] I've got a CentOS 7.5.1804 mail server (postfix/dovecot) that seems to be working, however when I added a new email client, it didn't create the mail folder for the user [/backstory] I ...
0
votes
2answers
45 views

Calculating directory size without subdirectories bind-mounted from the same device

I want to calculate a directory size with all its subdirectories. But I had made some of the subdirectories to mount from a mount point. (using mount -B/--bind) when I use du -hks the returned size ...
0
votes
2answers
81 views

Generic tool to order by size in linux, understanding common unit suffixes

I can order a list of files / directories by size: ls -lS But if I am using du in human readable format: du --max-depth=1 -h . I get: 128K ./something 3,3M ./more 3,2M ./even-more ... ...
0
votes
2answers
128 views

Can someone explain the meaning of — and ** in a linux/unix command? [duplicate]

du -ch -- **/*.jpg | grep total Especially, what do the -- (double dash) and ** (double asterisk) really mean? Using the Z shell