Questions tagged [disk-usage]
Hard disk space usage: how much space do my files take?
1,060
questions
2
votes
0
answers
123
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% /...
-1
votes
1
answer
36
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 ...
0
votes
1
answer
103
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 ...
0
votes
1
answer
79
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/...
0
votes
0
answers
30
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 ...
0
votes
1
answer
57
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 ...
0
votes
0
answers
51
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 ...
0
votes
1
answer
68
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 ...
0
votes
0
answers
37
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 ...
0
votes
4
answers
692
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 ...
0
votes
1
answer
45
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 ...
0
votes
0
answers
35
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 ...
0
votes
1
answer
224
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 ...
0
votes
0
answers
14
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 ...
0
votes
1
answer
45
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 ...
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.
...
0
votes
1
answer
293
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 ...
0
votes
0
answers
22
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 ...
0
votes
1
answer
112
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 &...
-1
votes
1
answer
60
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 ...
0
votes
0
answers
28
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/...
0
votes
1
answer
70
views
Why do I have so many file systems on my ubuntu server and what's the usage of each? [closed]
I issued df -H command on my system and saw the following output
Filesystem Size Used Avail Use% Mounted on
tmpfs 95M 3.1M 92M 4% /run
/dev/mmcblk0p2 32G 3.2G 27G 11% /
...
0
votes
1
answer
46
views
Occupied file system space not decreased despite deleting folder
This is on a CentOS 7 installation.
The shared folder is in /dev/sbd1 mounted on /data
Capacity is 4 TB. After deleting the folder it should show 1.1TB occupied space, but it is showing 2.2TB.
...
0
votes
1
answer
55
views
Mount More Space Under /
I am trying to install a package and apt complains of not enough space at /var/cache/apt/archives.
The usual commands:
apt-get autoclean
apt-get autoremove
do not work. Turns out because most of the ...
2
votes
1
answer
146
views
What is the way to enforce daily write limits on a disk partition in linux?
I would like to enforce certain write limits on my disk partitions. I would like to limit the amount of data application can write on a given disk partition on hourly, daily or weekly basis.
Is there ...
3
votes
1
answer
217
views
Can't write to Live CD system
I am not new to Linux, but am new to creating my own virtual machine environment. I am using Linux to learn how to do penetration testing, and have been required to download lots of different software ...
1
vote
1
answer
82
views
Why ncdu scans meaningless locations?
I love this piece of software ncdu; I also have it installed on all my servers. But imagine a cozy Saturday evening ruined by an alert from Grafana that says one of your servers uses more than 95% of ...
0
votes
1
answer
75
views
TOP vs df -h command memory shows different
I am using solaris 10.
Can someone please help me why both command shows different total memory?
df -h command shows memory total memory SIZE is 900G
~=>df -h /test
Filesystem Size Used ...
0
votes
0
answers
19
views
Direct admin, Debian server - Inodes per user check
df -i prints inode usage per file system.
How can I find out what is the inode usage per user created in Direct Admin?
1
vote
1
answer
110
views
Neofetch showing wrong size on MacOS
My neofetch on MacOS Ventura 13.1 shows the wrong disk size, as compared to Settings -> Storage:
neofetch: Disk (/dev/disk1s1s1): 12G / 113G (45%)
Storage GUI:
It seems that neofetch is using df -...
2
votes
0
answers
302
views
LVM Device-mapper (dm-2) 100% busy
We have set up LVM stripping across 06 disk in our DB server for improving IOPS performance.
However during heavy load, it has been observed that device-mapper dm-2 asscociated with these 6 disks is ...
0
votes
0
answers
27
views
RPI Tracking disk usage - hidden usage
I am using Raspberry Pi 4 with Raspbian OS (UNIX based) and trying to find out where all my disk space has gone. Whatever disk usage analyser tool I tried, nothing showed the correct result.
Result of ...
0
votes
0
answers
189
views
Disk space not freed after deleting file and killing processes holding it
I'm using the latest version of Raspberrypi os, and I had a big archive file (from librespot) in the /var/cache that took all the disk space available (57GB). I deleted it using rm, but the df command ...
0
votes
1
answer
778
views
df and where a folder is mounted
I have linux system. When I do df I get something like
Filesystem 1k-blocks Used Available Use% Mounted on
.... some data here
/dev/mmcblk0pyy yyy yyy 0 100% /
/dev/mmcblk0pxx ...
4
votes
0
answers
256
views
"This computer has only 0 bytes disk remaining" message from Linux running on Virtual box
This is the setup. I started seeing this message today from Linux Manjaro installed on Virtual box under windows 10. The issue is that I have lots of disk space, both allocated for the Linux and also ...
1
vote
1
answer
183
views
Why does free space differ when shown by fdisk and df?
Basically title. I'm running MX Linux from a 32GB live USB. When I run fdisk -l, I see the following:
[...]
Disk /dev/sda: 29.88 GiB, 32080200192 bytes, 62656641 sectors
Disk model: Flash Drive
...
0
votes
0
answers
188
views
How to figure out what is using the space on my Ubuntu LXC running qBittorrent?
I have a LXC in Proxmox running Ubuntu with qBittorrent on it. The boot disk looks like this from Proxmox:
Notice it's using 3.26GiB. A quick look at df -h confirms this:
I have tried to track down ...
-2
votes
1
answer
103
views
Which files are safe to delete?
so I used ncdu to help free up some storage and for the following log:
--- / ----------------------------------------------------------------------------------------------------------------------------...
0
votes
1
answer
2k
views
E: Write error - write (28: No space left on device)
Is it possible to solve the space problem below as root user? Any idea which disk/folder is full, causing installation of new software impossible?
root@fba-bod-p1:/mnt/# apt install setuptools-scm
...
0
votes
1
answer
653
views
Move disk space from /dev/sda3 to /dev/sda4
This is my current setup:
Disk /dev/sda: 546.8 GiB, 587127480320 bytes, 1146733360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/...
1
vote
1
answer
7k
views
/dev/mapper/centos-root is at 100% Running CentOs
we have a VM that host our docker and is currently out of space, I've tried everything on the net and nothing worked out yet, it is so full that I can't even run yum autremove
The system type is XFS, ...
0
votes
2
answers
220
views
How to increase the disk space for /root from /home on SLES SP4?
Currently I am unable to run or install anything on SLES SP4 system because insufficient space in /root. Could you please suggest a way to increase the disk space for /root from /home on SLES SP4?
...
0
votes
1
answer
322
views
How to find the disk usage ONLY of 2nd level dirs?
I have the following dir structure:
relative_path/
app1/
data
config
trash
other_app/
...
0
votes
0
answers
42
views
Watching disk space dynamically during disk-intensive operations
We recently had an install that failed due to "disk full" errors. As is often the case, the log didn't specify which share was full. We saw a certain share at 100% and naturally assumed ...
1
vote
0
answers
29
views
Disk usage command not producing expected number of outputs [duplicate]
I want to run disk usage command (du) on both a parent directory (to find the total of all its contents), and then additionally on one of its subdirectories only.
If I try to pass multiple paths into ...
0
votes
1
answer
236
views
Does a user need executable permissions to be able to run du (disk usage)? [duplicate]
I am observing the following behaviour, and want to know if it is expected.
I am trying to run disk usage ( du ) as user2 on a directory test_directory which is owned by user1.
If I change the ...
1
vote
3
answers
306
views
How do I find out which partitions my filesystems (and mount points) are on, and how full the partitions are?
This question is essentially the opposite of the first question below, and adjacently related to the second question, and is therefore not a duplicate:
Ask Ubuntu: How do I find out what filesystem ...
1
vote
1
answer
109
views
How do I repartition my root filesystem with space from another partition?
I am trying to double the size of my root filesystem shown below:
# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs ...
0
votes
2
answers
39
views
Sum directory sizes
I have a folder with multiple .NET projects, let's call the parent directory projects. Each .NET project has a bin folder with the binaries built for that project. Now I want to get the sum of the ...
1
vote
0
answers
360
views
WizTree equivalent for ext2/3/4
There are many applications for visualizing the files/directories that take up the most space, for example all of these: How to understand what's taking up disk space?, and other similar ones for ...