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
--------------------------------------------------------...
2
votes
2
answers
3k
views
Difference in free disk space - ncdu and df
I've noticed that there is a huge difference in free disk space for root by using "ncdu" or "df" for me:
df -Th:
dev devtmpfs 7,8G 0 7,8G 0% /dev
run ...
1
vote
2
answers
633
views
Unable to Detect Size of Brand new Hard Disk
I just purchased a 8TB hard drive today.
I just put it in my USB enclosure.
fdisk -l did see the device:
Disk /dev/sdc: 1404.5 GB, 1404493455360 bytes, 2743151280 sectors
Units = sectors of 1 * 512 ...
0
votes
1
answer
148
views
Is there a way I can check which block of disk is really used?
I use df and du to check disk usage of centos,then I get different results from these tools.
[root@localhost home]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/...
-1
votes
1
answer
594
views
What is the total size of your Linux installation and total partitions on the system?
I am going through the Linux documentation and trying to answer the following questions
On which partition is your home directory?
How many partitions are on your system?
What is the total size of ...
1
vote
1
answer
3k
views
Why does rm over NFS not free space immediately?
I'm on a SUSE Enterprise server which has mounted a drive via an NFS mount. I have created a 34GB file via dd if=/dev/Zero of=test_file bs=8k Count=4194304 to test the write speed of the NFS share. ...
2
votes
1
answer
3k
views
Increase root disk space
New to Linux, I want to increase the size of disk space in fedora-root and it appears that theres ~16GB of available space in other filesystems. Is this a correct assessment? Below I provide the ...
1
vote
2
answers
223
views
This is my `df -h` output. Why is my 256G SSD partioned into so many filesystems?
Filesystem Size Used Avail Use% Mounted on
udev 63G 0 63G 0% /dev
tmpfs 13G 139M 13G 2% /run
/dev/nvme0n1p2 103G 22G 77G 22% /
tmpfs 63G ...
0
votes
1
answer
76
views
df hide ifree etc (GNU)
(analogous to https://apple.stackexchange.com/questions/263437/df-hide-ifree-iused-512-blocks-customize-column-format-dont-show-inode-info for BSD)
How can I hide the columns beginning with i (iused, ...
0
votes
1
answer
493
views
how to increase the space on docker in CentOS7?
How can I increase the space on this docker? I need to transfer 30G of images into this docker to do the image processing within the docker however seems I only have 2G available
$ sudo docker pull ...
1
vote
1
answer
2k
views
Linux df command returns permission denied
Any ideas on how I can fix this, Im not sure it should return those results anyway...
$ df
df: `/var/named/chroot/etc/named': Permission denied
df: `/var/named/chroot/var/named': Permission denied
df:...
-1
votes
1
answer
3k
views
Disk space usage per owner, group or user
I am writing a small tool in which I need to find per-user, owner or group File-system-memory-usage.
There is no quotas for each one, so all of them works under the same HDFS parameters in the ...
3
votes
1
answer
2k
views
Parse df output by columns
I'm having difficulty extracting the Filesystem and Mounted on columns from the df ouput.
$df -Hl
Results in
Filesystem Size Used Avail Capacity iused ifree %...
-1
votes
1
answer
1k
views
df says there is no free space, but there is free space
df shows there is no free space, but it also shows there is only 7,9/21G used.
Filesystem Size Used Avail. Used% Mount path
-> /dev/simfs 21G 7,9G 0 100% /
devtmpfs 2,0G ...
0
votes
1
answer
845
views
Wrong available storage reported for mac os
The available space on my Macbook Air is not getting reported correctly.
Hard disk capacity is 120GB out of which 17GB is getting reported as available space when I check HD info.
When I see in ...
0
votes
0
answers
1k
views
Why does the output of `lsblk` and `df -h` seem to conflict?
I'm trying to create a directory /mnt/data that will be mounted on to /dev/mapper/centos-home, since that's the biggest partition. The output of lsblk looks like this:
NAME MAJ:MIN RM ...