Questions tagged [df]

df is a standard Unix computer program used to display the amount of available disk space for filesystems

Filter by
Sorted by
Tagged with
1
vote
1answer
27 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 ...
0
votes
1answer
26 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
0answers
45 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
0answers
42 views

DF and DU show different usage, but LSOF shows no deleted files

I'm running Docker daemon on an RedHat host and Docker containers are being built here on a daily basis. After a couple of days the mount point reserved for the Docker daemon (/var/lib/docker) fills ...
0
votes
1answer
27 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 ...
0
votes
0answers
20 views

How to interpret info from tune2fs output to get used/free space of a filesystem

I'm trying to see free/used space via tune2fs - generally, I originally was interested to see free/used space of an unmounted filesystem. I see tune2fs shows "block" information but when ...
4
votes
1answer
564 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: /...
1
vote
1answer
2k 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
1answer
30 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 ...
4
votes
3answers
463 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 ...
1
vote
3answers
504 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
2answers
1k 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
2answers
340 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
1answer
78 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
1answer
259 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
1answer
1k 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
1answer
2k 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
2answers
159 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
1answer
52 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
1answer
366 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
1answer
1k 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
1answer
2k 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
1answer
1k 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
1answer
578 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
1answer
799 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
0answers
681 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 ...
0
votes
1answer
46 views

Debian df - What are my partitions

I have a debian server hosted by Kimsufi. It has 2TB of HDD storage. When I run df -h on my server I get this output: Filesystem Size Used Avail Use% Mounted on /dev/root 20G 1.3G 17G ...
0
votes
2answers
1k views

du and df on Mac give different results

I'm trying to figure out where my HD space is going. df tells me this: bash-3.2$ df -h / Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk1 148Gi 137Gi 11Gi ...
0
votes
1answer
61 views

System check : lsscsi Vs df

Runnning lssci I get 3 disks infos : $ lsscsi [0:0:0:0] disk ATA Samsung SSD 850 EMT0 /dev/sda [2:0:0:0] disk ATA VB0250EAVER HPG0 /dev/sdb [3:0:0:0] disk ATA ...
1
vote
1answer
173 views

How much disk space do I have?

I'm trying to find out how much disk space a system has, but df does not show the / filesystem : # df Filesystem 1K-blocks Used Available Use% Mounted on ...
6
votes
2answers
7k views

why df vs lsblk command have different results?

so this is the situation: I had this hardDrive of 500GB, on my server and tried to upgrade it to a 2T HardDrive, after the upgrade result of lsblk has changed while df still returns same results. ...
12
votes
1answer
14k views

Why might a partition show up in `mount` but not `df`?

If I compare this $> sudo mount | grep sdb /dev/sdb1 on /windows type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sdb2 on /store type ext4 (rw) with this $> ...
3
votes
3answers
3k views

Find availble disk space in unix without parsing `df` output

When I type df -k ., I get the following output Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 16512936 8650196 7023932 56% / What I do is tail the last line and ...
-1
votes
1answer
2k views

Is there something wrong with my disk partition?

# fdisk -l Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 41940991 20719617 5 Extended ...
0
votes
2answers
230 views

Where is my diskspace?

Recently my disk space reached the 98% mark, and I tried to discover the reason for this. My system consists of two disks: a ssd /dev/sda and a storage hdd /dev/sdb. My Linux is installed on /dev/...
1
vote
4answers
7k views

df -l is showing 100% full but the file was removed

I got an alert that a local disk was full; dm@fooserv:/local/data/plog $ df -l Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/rootvg-datavol ...
2
votes
1answer
176 views

df -h Size - User != Avail

When I run df -h I get the following Filesystem Size Used Avail Use% Mounted on /dev/sda3 809G 753G 14G 99% / But Size - Used is not even close to Avail (809-753 = 56 and ...
0
votes
1answer
170 views

Disk usage increasing on its own

I am using ubuntu 13.10. I checked disk usage using df. Following was the result df --block-size=1 /dev/sda1 Filesystem 1B-blocks Used Available Use% Mounted on /dev/sda1 ...
1
vote
1answer
941 views

Linux Server out of Disk Space

When I run some commands I get 'out of space' messages. I looked around the Internet for ways to diagnose the issue. I ran df: adam@nas:/$ df Filesystem 1K-blocks Used Available Use%...
1
vote
1answer
3k views

Confused about df and lsblk commands showing different information?

$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda1 202:1 0 20G 0 disk / xvda3 202:3 0 896M 0 disk [SWAP] $ df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G ...
0
votes
3answers
3k views

Get hard disk size without df

How to check a vendor's statement about a hard disk size? df shows results partition oriented (including tmpfs), one has to execute it and count label oriented. How to get in a single command or cat /...
2
votes
0answers
957 views

Raspbian: USB drive mounted and accessible but doesn't show on `df -h`

I have an USB drive connected to my Raspberry Pi running Raspbian. The directories on it are accessible using cd, ls etc. but the drive doesn't show up when running df. It however does show when I run ...
0
votes
1answer
758 views

What are sparse files and how to deal with them?

When dealing with sparse files, df appears to report the dummy size and not the apparent size of the file which makes it difficult to monitor free space on the system. (I use df -h to check disk usage)...
1
vote
1answer
2k views

Can I hide BIND mount points from DF?

Is there a formal way to hide the mount points of BIND from df (in CentOS 6.4) ? It's ugly and distracting. Apparently people have been complaining about it for a decade but I cannot seem to google ...
3
votes
0answers
214 views

Explaination needed for strange `df` and `du` results

Can someone help me to understand the following output: # df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 8.0G 7.5G 167M 98% / udev 7.4G 8.0K 7.4G 1% /dev ...
1
vote
1answer
867 views

Missing space on hdd linux?

michaelxu@michaelxu-server:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 71G 65G 2.0G 98% / none 495M 224K 495M 1% /dev none ...
2
votes
2answers
951 views

Discrepancy between df and du

I have a question pertaining the difference from 'df -h' and 'du -bs'. I have seen several questions here about it, but the issue was always that 'df -h' was reporting more used space than 'du -bs'. I ...
0
votes
2answers
352 views

*nix shellscript: Get disk usage on multiple OSs

I am trying to get the usage-percentage for a given disk in a system. The program I have to write will be a bash shell script. The script has to work on Debian, Arch, and Mac OS X. My current approach ...
0
votes
1answer
215 views

How can the 'df' Used be different after an rsync?

I've used rsync to copy an entire hard disk from one to another which was just newly formatted. It's about 640GB of data, but the destination hard drive has 750MB more that shows up under the 'df' ...
0
votes
3answers
2k views

df -h showing wrong output in GB

If I list df output for KB, MB and GB, they do not match e.g. $ df -k |grep xvdb /dev/xvdb1 12796048 732812 11413172 7% /xxx $ df -m |grep xvdb /dev/xvdb1 12497 ...