Questions tagged [df]
df is a standard Unix computer program used to display the amount of available disk space for filesystems
60
questions
1
vote
1
answer
44
views
Why is an incorrect size reported on multi-partition USB flash drive?
I'm creating a custom Linux installer which uses two partitions on a 4GB USB flash drive: an EFI partition for booting and a data partition for installer files.
The size reported by df is unexpected.
...
1
vote
1
answer
177
views
2T file system full! du says only 70G consumed. Where is the rest?
When I run
df / I get
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv 2.0T 1.9T 0 100% /
When I run
sudo ncdu -x /
I get
Total disk usage: ...
0
votes
2
answers
792
views
What happens if I dont resize filesystem after increasing storage
My question is built on top of this post:
why df vs lsblk command have different results?
The command, df and lsblk, yielded different result since I increased the storage. From the above post, it ...
0
votes
1
answer
44
views
Linux + what are the preferred options in order to resolve inodes that reached 100%
we have RHEL machine , and from df -i , we can see that some partitions are with 100% ( about inodes ) , in spite by df -h we have space
Note - disks are VMDK disks
df -h
/dev/sdc ...
0
votes
1
answer
235
views
Why are df and du command show inconsistent results?
When I run df -h it shows that 95% has been used in /data4 and I am the only user under /data4.
Filesystem Size Used Avail Use% Mounted on
overlay 591G 455G 136G 78% /
tmpfs ...
1
vote
0
answers
2k
views
BTRFS discrepancy between df and du
the difference between disk usage reported by df and du makes 20% of capacity of my drive. It is ubuntu-type btrfs filesystem with @ and @home. Where could be the problem please?
df -h /dev/sda2
...
2
votes
1
answer
2k
views
linux df -h not showing some info
I have Ubuntu 20.04 linux and I create a second disk, and second filesystem. Right now when I want to see info my second filesystem df is not showing. I use default mount specification.
df -ah
...
1
vote
1
answer
3k
views
How can I find out the capacity of the nfs mounted directory on the disk?
I cloud not find files filling the disk. df -h command print out / part usage %86 ( capacity is 15G ) but du -sh / command print out 3G.
I am using nfs share on my system. the nfs mounted to /mnt. i ...
0
votes
0
answers
219
views
Why my disk not in /dev/diskstats
I can see the device /dev/xsda by df -h command.
But the device not shown in /proc/diskstats. Instead, there are devices names as below:
sda
sda0
....
sda6
lsbk does not show the device either
$...
0
votes
1
answer
2k
views
Find mounted hard drives on ubuntu
I recently got a new dedicated server and I'm trying to mount all the drives it contains.
$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL
NAME FSTYPE SIZE MOUNTPOINT LABEL
...
4
votes
1
answer
1k
views
Not the same output format from `df` in different Linux distributions
In Ubuntu the output of this command
df --exclude={tmpfs,devtmpfs,squashfs,overlay} | sed -e /^Filesystem/d | awk '{print $6 " " $1 " " $3 " " $4 " " $5}'
is:
/...
3
votes
2
answers
11k
views
Is it safe to delete contents of /root/.cache folder to free up space?
I need to free up disk space on my linux server.
I run the df command to check space ad see that I'm using up 100% of disk space.
myserver:/ # df /
Filesystem 1K-blocks Used Available Use% ...
0
votes
1
answer
154
views
Why does it say no space available when a lot are avaliable?
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 30G 290M 28G 2% /
devtmpfs 63G 0 63G 0% /dev
tmpfs 63G 0 63G 0% /dev/shm
tmpfs ...
5
votes
3
answers
1k
views
Is it possible to add a thousands comma separator to the output of the Linux "df" command
df command gives me good information, and I love to see it in KB unit. But I need a thousands separator (aka: a comma) every 3 digits because the numbers will be always huge.
ex> df
Filesystem ...
2
votes
3
answers
5k
views
Folder is empty, but du reports high usage
I have a 115GB partition on my hard disk (output of cgdisk /dev/sda is below):
Part. # Size Partition Type Partition Name
--------------------------------------------------------...