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
vote
1answer
16 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
26 views

du disk usage and apparent size huge difference (Terabytes vs Kilobytes)

I know that when using du utility, disk usage is bigger than apparent size because of the blocks that are not fully used. But here there is something else. On a particular folder, du without apparent-...
0
votes
0answers
21 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
34 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 ...
0
votes
1answer
52 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
28 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
82 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
37 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
57 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
23 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
38 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
26 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
30 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
173 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
38 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
40 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
83 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
0
votes
0answers
26 views

Mounted folders with bind take up space in root drive

A few months back, I have set up a separate storage for my data on my linux server (running Ubuntu 17.10). The way I set it up is as follows: /dev/mapper/community--vg-root - primary drive - 60GB - ...
0
votes
1answer
34 views

is there a way to get detailed information about HDD in linux

In 2013 I used a program that analyzes the HDD and gives detailed and deep information about the hard disk. However, that program, CrystalDiskInfo, only works on Windows. Is there a GUI that is ...
0
votes
2answers
71 views

Using 'grep' and the output of `grep` as variable in second command to get user Id of folders

I am using the following commandd to get the % of disk used df -h| grep workfld, than getting the top folders that are using the most disk space in %, the last piece would be to use the output/result ...
-1
votes
1answer
94 views

Disk management issue [duplicate]

After trying to execute the command apt upgrade from the terminal, I received the following error: E: You don't have enough free space in /var/cache/apt/archives/. Not quite sure what to do about it....
1
vote
0answers
33 views

du command shows larger size than nand erase block size in ubifs. How to check the exact size in ubifs?

I use UBIFS for rootfs. I would like to check the size of each direcotries in /. When I checked with du command, it shows larger than mtd size. Would you tell me the way how can I check the correct ...
2
votes
3answers
1k views

disk full: unable to install software packages

I am trying to download a huge python package and suddenly I hit this space crunch issue. When I run df -h command, it shows: [root@darwin ~]# df -h Filesystem Size Used Avail Use% Mounted on /...
-1
votes
2answers
29 views

Space availability on disc

I run Debian 6 linux located on SD card. Trying to extract tar.gz file to /opt directory , but system complains regarding no space available on disc. Command df -k brings: user@ion:/opt$ df -k ...
2
votes
2answers
99 views

Linux Mint startup error due to insufficient disk space

Can you help me please to solve this issue? I am on Linux Mint 18.3. I use it for java script development. I have just Chrome, node and Visual Studio Code. Just couple days ago disk analyzer told me,...
0
votes
1answer
71 views

Programmatically identify block device of filesystem [closed]

The following code was tested on RedHat 7 using df verison 8.2 and lsblk version 2.23.2. This is important as the lsblk utility has signficantly more output options than the RedHat 6 version (2.17.2) ...
2
votes
1answer
82 views

sort: read failed: ./folder/: Is a directory [closed]

When I run: du -sh ./*/ I get the following error: sort: read failed: ./folder/: Is a directory How do I fix this? Is there something wrong with sort on my system. I am running x86_64 Linux 4.16....
5
votes
2answers
268 views

Why do df and df -h show different value? How does df -h perform calculation?

how exactly df -h works? If I run df, I get this: Filesystem 1K-blocks Used Available Use% Mounted on /dev/simfs 41943040 7659828 34283212 19% / If I run df -h, I get this: Filesystem ...
0
votes
3answers
31 views

How to check the available space on the hard disk each day and if it is lower than 1GO remove files

I need to make a planned task : Check the available space on the hard disk each day and remove files if this condition is verified : Available < 1Go. Here is the script that I wrote but doesn't ...
1
vote
2answers
398 views

How does df know how much space is used without needing to go through all the files?

When using du to get the total size of a folder, the command enumerates every file from every (sub)folder and adds it up, in my understanding. yann@p:~$ du /var/log 4 /var/log/ntpstats ... 148 /var/...
0
votes
1answer
391 views

Ubuntu 18.04, what is using my hard-disk space?

I recently installed Ubuntu 18.04 on my machine and installed all the regular stuff that I had put the 17.10 version. However, it seems like something is amiss as my Linux partition is showing ...
0
votes
0answers
59 views

“du -h -a” not show all disk usages [duplicate]

When I run df -h, I have the following output, indicate that /dev/sda6 which mounted on / is using 100% disk space. Filesystem Size Used Avail Use% Mounted on /dev/sda6 29G ...
0
votes
1answer
36 views

df and stat -f difference in blocks count for ext4 filesystem on LVM

[yotsu@fedora ttyid:2 czw maj 10 19:25:32 ~]$ df -B4K /dev/mapper/fedora-home System plików 4K-bl użyte dostępne %uż. zamont. na /dev/mapper/fedora-home 625612 27690 561212 5% /home [...
0
votes
1answer
31 views

df -P gives me a combination of Mega and Giga byte

$ df -P Filesystem Size Used Avail Use% Mounted on /dev/mapper/Rootvg-rootlv 20G 613M 19G 4% / tmpfs 7....
1
vote
2answers
45 views

Why do du/df and by System Monitor show used space in home differently? [duplicate]

$ sudo du -h -d 0 home/ 309G home/ $ df -h Filesystem Size Used Avail Use% Mounted on ... /dev/sda4 550G 309G 214G 60% /home ... System Monitor on Ubuntu shows the used space on /...
0
votes
1answer
25 views

Why does my system count /media for disk space?

I'm running debian # uname -a Linux thinkstation 4.9.0-6-amd64 #1 SMP Debian 4.9.88-1 (2018-04-29) x86_64 GNU/Linux after booting today I got an error that the system wasn't able to write to /tmp ...
2
votes
5answers
64 views

Parse du result using sed

Hello i am trying to parse the result of du command but i don't know how to do it without looping i execute the below command du -shm /var/vmail/mailboxes/domain/*/mail my result is a list e.g.: ...
2
votes
1answer
50 views

Showing 0 (zero) disk space available even though there is free space

I have an ext4 volume that is 3.6T. According to df, the USED is less than SIZE with about 100GB free. However AVAIL shows 0. If I run gparted it shows the real amount of free space (100GB). If I ...
0
votes
1answer
79 views

Best way to prevent users from filling up all free btrfs disk space?

Many years ago I had an application that went out-of-control and filled up all disk space. This caused write failures in system processes that maintain some kind of database (in the wider sense), ...
2
votes
2answers
65 views

how to find the disk usage of a directory in Unix

Can someone explain how this calculation is done for disk usage? I am confused because in line1 4k , line2 4k line3 36k and total is also 36k $ du -ch 4.0K ./tempFolder 4.0K ./Folder1 36K ....
0
votes
0answers
55 views

ENOSPC when space and inode is available

My digitalocean instance, running a blockchain simulation using ganache-cli (uses nodejs), gives the following error: Error: ENOSPC: no space left on device, open '/tmp/tmp-462UV3xgF8SXTWM/!trie_db!...
1
vote
0answers
35 views

mount + verify disk status + disk isnt read/write [closed]

we check the sdb disk to see if this is rw but we get "ew" , what is the meaning of that? mount | grep sdb /dev/sdb on /montoptree/sdb type ext4 (ew,noatime, data=ordered)
0
votes
0answers
31 views

Why does “du” top level's size doesn't add up? [duplicate]

I was trying to use du -h --max-depth=1 to calculate my disk space usage, but the result doesn't add up: on the first image, the numbers are good: 6.8G + 17G ≈ 24G; but on the 2nd image, I only see ...
0
votes
1answer
139 views

Moving space from one partition to another? /dev/nvme0n1 -> /dev/xvda1

I ran out of space on "/dev/xvda1" and I want to pull some space from either "tmpfs" or "/dev/nvme0n1" into "/dev/xvda1" % df --print-type Filesystem Type 1K-blocks Used Available Use% ...
1
vote
0answers
49 views

Can't find the reason why root directory usage is so large [duplicate]

Everyone. I have a very difficult thing to do. I have a Linux server, and the root directory has 16GB of space. df -h, shows the / directory has been used for 15GB, but du -sh shows that only 5.9GB ...
-1
votes
2answers
26 views

How to see system wide hard disk disk free with a GUI tool?

First of all, I'm a Linux User and know that df and tons of other CLI tools exist. I'm only looking for a GUI tool, this makes this question relevant, so please don't mention CLI tools. In the GUI ...
0
votes
1answer
29 views

Disk usage irregularities [duplicate]

can somebody please explain to me how is this possible? df -h Filesystem Size Used Avail Use% Mounted on /dev/md2 204G 170G 24G 88% / du -ah / | sort -rh | head -20 121G / 88G /...
1
vote
1answer
138 views

NixOS: No space left on /nix/store during nixos-rebuild or nixops deploy

When doing upgrades (especially large ones) on NixOS with a relatively small root partition, I sometimes run out of space after a bunch of new packages are installed in /nix/store. Eg: error: ...
0
votes
0answers
44 views

Can I run du to get disk usage on directories I don't own without sudo?

I need to run du on /home on a shared machine where I don't have sudo. Someone has filled up the partition and I'd like to track them down without the hoopla of contacting IT. Is it possible to get ...
1
vote
1answer
74 views

“compdef: unknown command or service” with disk quota exceeded

I just came across a problem with zsh. Every time I open it, I got this: /home/****/.zcompdump:201: parse error near `\n' compdef: unknown command or service: git And zsh completion broke down as ...