Skip to main content

Questions tagged [disk-usage]

Disk space usage: how much space do my files take?

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

What does df actually display? [duplicate]

Today I was using tar to backup the /var directory of my server. At some point, I noticed that this is taking very long, so I used du to figure out how large /var is. It was about 76 GB. My disk had ...
Thomas Weller's user avatar
0 votes
1 answer
51 views

calculate df available space [duplicate]

I made a partition of 5 GB -> /dev/sdd2 then made a filesystem sudo mke2fs -N 700 -t ext4 -L test2 /dev/sdd2 and set root reserved space to 0 sudo tune2fs -r 0 /dev/sdd2 sudo dumpe2fs -h /dev/sdd2 ...
Schmaehgrunza's user avatar
0 votes
0 answers
21 views

I get quota pop-up for /, even though timeshift is a different mount

I'm getting a popup saying 'The volume "Filesystem root" has only x disk space remaining", like below: When I click Examine to open Disk Usage Analyzer, it is timeshift that is taking ...
user3273814's user avatar
0 votes
0 answers
22 views

Resized disk and immediately filled up

I'm on a VM, and I was low on space so I resized the disk to 100GB. I ran sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv to make use of the extra space, and now it shows my "104GB Block ...
pauib's user avatar
  • 1
0 votes
1 answer
31 views

Graphical visualization of disk usage using ncdu output json file

NCDU is a great tool, and I use it often to get a usage report of my headless servers. However, I was wondering of there is a tool out there that can take the output of NCDU (the json file), and ...
ricardo3889's user avatar
2 votes
1 answer
56 views

No space left on device when building Docker image

I am trying to build a Docker image, but got an error like: make: *** [slave.mk:1119: target/docker-lldp.gz] Error 1 mkdir: cannot create directory './target/versions/build/log-20240530215300': No ...
laogao's user avatar
  • 31
0 votes
0 answers
27 views

du -h only show folders but not files, how to show all?

I don't know what's going on with my centos 7 machine but seems like du -h /path only shows folders, not files, and it's annoying. I want to find all the files and folders at a specific depth and sort ...
Hoang Minh Quang FX15045's user avatar
1 vote
1 answer
32 views

Discrepancy between "df" and "du" on a CIFS network drive

When I run df -H, my network mount reports 100% usage: user@system:/mnt/backup$ df -H Filesystem Size Used Avail Use% Mounted on ... //192.168.71.2/Linux-Database-...
widavies's user avatar
  • 113
0 votes
1 answer
21 views

Find ever growing file(s) held by open process filling disk to 100%

I have linux server which has started filling up the root disk to 100% in the last few days. df -h shows 100% and any file write attempts fail stating disk is full. du -sh of the drives contents show ...
user avatar
3 votes
2 answers
224 views

Why does df contain several tmpfs entries?

I understand that df -a includes "pseudo, duplicate, and inaccessible file systems". This results in quite a few mounts being hidden such as: udev 8055632 0 8055632 ...
Jez's user avatar
  • 992
1 vote
1 answer
42 views

Empty xfs drive has 50+ gigs used

OS is Debian. I have a new 8 TB disk. Formatted, it's 7.3 TB. Filesystem is XFS. Block size is 4096. I used it a bit, then recently removed all files from it, but df still shows 52 gigs as used. find ....
cat pants's user avatar
  • 487
1 vote
2 answers
38 views

Removing a file does not increase available space?

OS is Debian. Output of df -h /: Filesystem Size Used Avail Use% Mounted on /dev/sda3 99G 97G 0 100% / lsof shows /var/log/syslog file handle is open, but nothing related to /var/log/...
cat pants's user avatar
  • 487
1 vote
1 answer
688 views

How to clean up a Linux system to free up disk space?

What are some generic ways to free up lots of storage space without deleting personal files? I'm doing a distro upgrade (Debian11->12) and it needs lots of disk space on the root partition / which ...
mYnDstrEAm's user avatar
  • 4,370
1 vote
0 answers
52 views

My available space decreases when I deleted .local folder [closed]

I am using a Linux computer through ssh (I do not have root privileges). In my home directory, usually when I run df . I see the message below: $ df . Filesystem Size Used Avail ...
zdm's user avatar
  • 111
0 votes
1 answer
60 views

Inode limit reached with free space available

Let's assume I was very unlucky and ran out of inodes in my ext4 filesystem but left with enough free space. Inode usage is 100%, but it has 50% disk free space. How can I resolve it?
firdavs's user avatar
  • 21
0 votes
2 answers
76 views

My SSD filled up mysteriously; now I can't boot Debian 12

I have a (new) Lenovo notebook and was using Debian 12.  I was working in a Google Docs file and suddenly received a message saying that I should empty my SSD because it was almost full.  When I ...
guilhwm's user avatar
1 vote
1 answer
45 views

What could be the source of drastically different disk usage reports between df, lsblk and baobab?

Disk Usage Analyzer (baobab) reports a size of 29.3 GB for the root partition, out of which 2.5 GB are available: However, when selecting that device for closer inspection, I am presented with only 7....
kuadrat's user avatar
  • 51
6 votes
3 answers
1k views

filesystem on disk without partition

One may help me with this, because its confusing me: I have a 1.8T Disk (it's a VM virtual disk), here a snippet of df: df -TH Filesystem Type Size Used Avail Use% ...
MMAX's user avatar
  • 235
0 votes
0 answers
122 views

Midnight Commander show disk usage

I am trying to use midnight commander (mc) to show disk usage of particular directories. I'm aware that I can use the command menu, but I need see individual directory sizes on the fly. I am using ctl ...
Pierre Raynerd's user avatar
0 votes
0 answers
47 views

Unable to find which files are consuming disk space in root partition

When I try to display file usage on the root partition using an application like FileLight, it gives me this output: However, I see different total usage in the Dolphin File Manager. I got to see ...
lone wolf's user avatar
  • 188
0 votes
1 answer
65 views

Debian/Ubuntu Random Disk Expansion

Running mysql 8.0.34 on debian 12 (BookWorm). I get this random issue where the disk looks like it is being steadily consumed, but when I step into the disk or search the disk there doesn't seem to be ...
Watson's user avatar
  • 103
0 votes
1 answer
47 views

Why does `du` report that my `rsync` backup is not the same size as the original?

I'm creating a backup of my $HOME directory on an external storage drive using rsync, using the following options: --archive --xattrs --hard-links After a fresh backup, du reports that the sizes of ...
jth's user avatar
  • 195
2 votes
3 answers
438 views

Disk space is not freed up when deleting files on a hard drive

After deleting files on a veracrypt-encrypted drive with no disk space left, no disk space is freed up. I'm trying to sync a hard drive to another one as described here. That target drive is full and ...
mYnDstrEAm's user avatar
  • 4,370
0 votes
1 answer
44 views

Command 'du -h' but continue when current directory larger than threshold

I'm looking for something along the lines of du -h /var/log/ --max-depth=2 --threshold=5G but to execute du again on the current directory if the space is above that threshold. Is there a way to do ...
M. G's user avatar
  • 1
2 votes
1 answer
528 views

Resize a LVM partition on linux disk of Azure

I have created a Vm in Azure with Oracle Linux 9. I have selected a 128G disk but when I see the size of the partitions I see that it was not fully used. [root@oraclelinux ~]$ lsblk NAME ...
Pedro Luque's user avatar
0 votes
1 answer
66 views

Phantom disk usage

Running Debian 12. According to df, I have only 22G remaining space on my main disk (nvme0n1p2); according to ncdu, I should have like 960G: $ df -H Filesystem Size Used Avail ...
SleepUncertainty's user avatar
0 votes
1 answer
29 views

Why does du -xshc report only 35GB usage while my 100GB disk is showing as full? [duplicate]

My SSD-disk on my server is full although du doesn't show it. df -h|head Filesystem Size Used Avail Use% Mounted on /dev/xvda2 98G 93G 0 100% / although: du -xhcs --apparent-size / ...
rubo77's user avatar
  • 29.2k
0 votes
1 answer
60 views

How to indicate that the shell was spawned by ncdu - NCurses Disk Usage?

I employ ncdu, the NCurses Disk Usage tool, in conjunction with zsh and p10k. Pressing 'b' triggers the spawning of a shell in the current directory. How can I present this information on-screen to ...
alecail's user avatar
  • 1,643
0 votes
0 answers
46 views

How to check how much space is available on block device disk (e.g not used on partition)

I have multiple block devices: e.g sda (sda1, sda2 & sda3). sda3 is further divided into LVMs which all has a X amount of space on them. However, I want to be able to list how much space is ...
N. J's user avatar
  • 167
2 votes
0 answers
195 views

How to free disk if df show full but du show free?

I have an cvm, the disk of which is full in recent day. I use df -h, it says the disk is almost full: > df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 99G 87G 7.2G 93% /...
Jason Pan's user avatar
  • 121
-1 votes
1 answer
41 views

How to anticipate the time before disk space would be close to exhaustion?

I have a task to make alerts if there's free disk space for only 2 hours for dinamycally growing directory. Honestly I don't know what's the best way to it. I'm not sure if the space will grow ...
palmasd1's user avatar
  • 123
0 votes
1 answer
188 views

Disk Partition Full

My / partition is full, to which I allotted about 30GB, and another partition of about 71GB is used for /home is quite empty. I didn't install the dual boot myself and I quite don't know about why ...
Prathamesh Gujar's user avatar
0 votes
1 answer
780 views

none filesystem in WSL got large disk space

By running the following command, a path (/usr/lib/wsl/drivers) with none filesystem type appears: $ df -h Filesystem Size Used Avail Use% Mounted on none 16G 4.0K 16G 1% /mnt/...
Super Hornet's user avatar
0 votes
0 answers
45 views

Why mate-panel has a disk Read and disk Write of 2.6GB?

Linux Mint 21.2 MATE Luks ZFS The System Monitor shows me a Disk Read of 2.6GB Data of mate-panel. But in the Properties i read about Disk Write: So why that much Data in that short Time of being ...
CJCoochie's user avatar
1 vote
1 answer
293 views

Is there some universally recommended Reserved block count (for root) for large Ext4 drives?

By the following question: Is there some universally recommended Reserved block count (for root) for large Ext4 drives? I specifically mean the following: Let us consider (almost) everyone has a ...
Vlastimil Burián's user avatar
0 votes
1 answer
96 views

Partition size differ in fdisk and df by 240 GB. why?

I have a 4 TB Seagate Drive. Apart from 22 GiB of other partitions, there rest is for sda1. The Problem? I miss about 240 GiB of sda1! I can't see where it is. whole sda1 partition has a filesystem in ...
Euphoria's user avatar
0 votes
1 answer
336 views

How to get available free disk space in bytes?

I'm trying to get total free disk space to make its filling prognosis. The ways I've already used df -h Filesystem Avail /dev/md1p1 182G none 488K tmpfs 32G tmpfs ...
Aleksey's user avatar
  • 21
0 votes
0 answers
59 views

I just installed a Debian VM, and it's already occupying 5GB without installing anything

im using debian 12 and run it via virtual box . when i do df -h i can see it takes 5g , and i didn't install any thing yet , see : umen@debian12:~$ df -h Filesystem Size Used Avail Use% Mounted ...
user63898's user avatar
  • 343
0 votes
4 answers
1k views

How to get the size of a large directory?

How can I get the size of a large directory with lot of small sub-directories on Linux? I just want the total size the parent directory. I tried du -s mydirectory/ but it is taking a long time to ...
kumar's user avatar
  • 201
0 votes
1 answer
55 views

Any operations with file system takes forever

I'm using Ubuntu 22.04 LTS. Unexpectedly for me all operations with the file system stopped working. I tried ls /, df and nautilus - all of this command takes forever to execute. What happened to my ...
Minuta18's user avatar
0 votes
0 answers
39 views

Any folders on headless cent os safe to remove in /usr/share/ to regain desperate space?

I have an old web-server running apache that was installed with a small 8GB / drive for some reason. Most things run on /home which is on another volume but there are some oddities I am having with ...
Codejoy's user avatar
  • 113
0 votes
1 answer
990 views

GCP /dev/sda1/ Disk Space Full, Shows 90% In Use, but Mounting SDA1 only showing 6GB. What is using all my space?

I'm running Wordpress instance on top of a Linux GCP VM instance. In SSH, running cmd 'df -h' I see /dev/sda1 is 91% used up. I mounted sda1 to see what could be taking up all the space, but ...
PlezHelp's user avatar
0 votes
0 answers
23 views

Linux Filesystem: Automatic/Continuous disk usage accounting

I am interested in having a Linux filesystem which does automatic/continuous accounting of disk usage (e.g. tracks the size of all files and directories so that tools like du return quickly). The ...
tcjsd's user avatar
  • 1
0 votes
1 answer
72 views

du report wrong usage and root folder is so big

In Debian the /root/ directory is so big but du show nothing inside it. root account is just a supervisor/administrator/superuser user, there is no folder for this account in home directory. This ...
Denis da Mata's user avatar
0 votes
0 answers
24 views

Examine disk usage of file tree, accounting for reflinks on Btrfs [duplicate]

Calculation of disk usage through du entails maintaining a set of all inodes represented by files under the tree, such that hard links will be counted only once with respect to total disk usage. ...
brainchild's user avatar
0 votes
1 answer
1k views

Working out if inodes are responsible for low disk space

I am running out of disk space on my CENTOS 7.9 server. When I type the command sudo df -h / Filesystem Size Used Avail Use% Mounted on /dev/md2 436G 405G 9.0G 98% / When I type the ...
stackQA's user avatar
  • 103
0 votes
0 answers
23 views

Sum of all file sizes in a folder down not adds up to what what ls or du show [duplicate]

I have downloaded couple of thousands file form a cloud. the download is done without any error. When I check the files occupied space in my hard drive is showing size, then what is shown on the cloud ...
Ahmad.S's user avatar
  • 101
0 votes
1 answer
217 views

Script to send an alert mail once the disk space is above 90% sends disk full even when the disk isn't full, how to resolve this issue?

#!/bin/bash df -m > myfile server_ip_address=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) if awk '$2 &...
achhainsan's user avatar
-1 votes
1 answer
64 views

Why are there missing commands on some manpages? [closed]

Early on in my Linux journey, I found some manpages to be lacking. One example is that on Fedora 37, I forgot the command to display the total filesize of all files in a directory. I knew it involved ...
the_endian's user avatar
0 votes
0 answers
29 views

du and du -h give different results, and neither match ls -lh [duplicate]

I can paste a screenshot if preferred, but here is what I typed: me@server:~/dutest/test2$ du 12 . me@server:~/dutest/test2$ du -h 12K . me@server:~/dutest/test2$ du -b 4243 . me@server:~/dutest/...
Ben Holness's user avatar

1
2 3 4 5
22