Questions tagged [df]

The tag has no usage guidance.

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

Deleting files does not free up the space

I am getting No space left on device error when I run git pull. This is output of my df command: $ df -h Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev ...
RajS's user avatar
  • 153
1 vote
2 answers
151 views

df -h shows 2TB external HDD is almost full but the output for 'du' does not add up

The system that I am using has 18.04 (no dual boot). I have a 2TB Seagate external hard drive which I use for taking the backup of my Ph.D. data. I use rsync -rtvhP to take backups. Recently during ...
Abhishek Anand's user avatar
0 votes
1 answer
220 views

Parted shows 2TB partition, but df says it's 98GB

I ran out of space on my root partition, df outputs: Filesystem Size Used Avail Use% Mounted on tmpfs 3.1G 2.0M 3.1G 1% /run /dev/mapper/...
Renari's user avatar
  • 101
-1 votes
1 answer
52 views

Lost Memory (88 of 92 GB used but still shows 100% Usage) [duplicate]

I restarted my Ubuntu Laptop after long time and now I can't start Graphical User Interface anymore. To solve this problem I tried to repair the packages from the recovery system, which said that ...
Franz's user avatar
  • 101
0 votes
1 answer
585 views

Different partition sizes (lsblk and df)

I've been struggling to comprehend the discrepancy found in two outputs - lsblk and df -h. Searching among other similar questions didn't yield any good result. lsblk: sdb 8:16 0 10G 0 disk ...
neuling's user avatar
  • 11
1 vote
2 answers
518 views

du, df showing inconsistent hard drive usage

Ubuntu 20.04 1T built-in drive 5T Seagate Basic external USB drive Yesterday I moved a very large postgres database to an external USB drive, and then deleted the database directory from the main hard ...
Zephyrus's user avatar
  • 131
3 votes
1 answer
197 views

df reports negative used storage on Ubuntu server

I am running Ubuntu server on a machine with multiple hard drives and partitions. Recently, I split the system partition into two, sda2 and sda3. sda2 contains the system files, sda3 is mapped using ...
Geosearchef's user avatar
0 votes
3 answers
124 views

Check if a "string" is an existing device name and not a partition name

For example if I have an existing device variable /dev/sda, I want to verify that it is not the name of a partition but of the entire disk. I have tried this: [[ $(df --output=source "$var" ...
Mario Palumbo's user avatar
0 votes
0 answers
564 views

Ubuntu 20.04.3 taking up too much space?

I am new to linux OS and so my apologies if this is disjointed or a stupid/basic question. I am running into an issue where I had allocated about 50gb for this installation of ubuntu (20.04.3) (...
B M's user avatar
  • 1
0 votes
0 answers
176 views

Some space seems to be lost on an ext4 drive on Ubuntu 20.04

Today I "found" a HDD in one of my systems that I completely forgot I had. So I wanted to look inside and see what was in there. I logged in via ssh from another computer (may be important ...
Andyc's user avatar
  • 218
1 vote
1 answer
873 views

df hanging: Buffer I/O error on dev sdh1, logical block 754166359, async page read

After a Ubuntu 20.04 machine has been running for some time, and I tried to run df, it simply just hangs there. dmesg shows tons of the same error message: [118924.226495] Buffer I/O error on dev sdh1,...
Athena Wisdom's user avatar
0 votes
0 answers
136 views

Free swap file space contained on root partition without rebooting to free space checked by df

I have created a temporary Swap file (/var/cache/swap/myswap) of 500GB on a Ubuntu worstation at work wiht 1TB RAM. This swapfile is on a BTRFS filesystem. I don't need anymore of this swapfile now ...
youpilat13's user avatar
1 vote
1 answer
312 views

Keep running out of space, where have my harddrive space gone?

I'm kind of a Linux noob and have been for almost 15 years, but I am trying to keep it active and learn more. I have a Intel NUC with 120-ish NVMe SSD storage which I'm using for a home server. It has ...
Viktor's user avatar
  • 113
0 votes
0 answers
197 views

Why is my filesystem size larger than the partition size. (df vs fdisk)

So... I get that fdisk lists partition sizes, and df lists filesystem sizes, and that filesystem may use a portion of the partition and disagree on the size, but why would df list filesystem sizes ...
user48956's user avatar
  • 641
1 vote
1 answer
336 views

what is the meaning of the "root file system full: empty trash" message?

there should be plenty of space: nicholas@mordor:~$ nicholas@mordor:~$ sudo df -h Filesystem Size Used Avail Use% Mounted on tmpfs 1.6G 2.6M 1.6G 1% /run /...
Nicholas Saunders's user avatar
0 votes
0 answers
844 views

df, du, xfs_quota shows three different disk usage on xfs partition

I have an Ubuntu 18.04 server which is used by a backup software as a storage. The backup software saves the data to a xfs partition (/backup) which is on RAID5. The root filesystem is ext4. When I ...
PocsArc's user avatar
0 votes
1 answer
55 views

Why do "Properties" and df command return different used disk space?

So I just formatted two SSDs to EXT4 and when I right-click and select Properties in file manager, I get a window that says 50 GB (!) of disk space is already used on the 1 TB disk and 100 GB (!!) is ...
user234899's user avatar
0 votes
0 answers
49 views

understanding df -h output for use with dd

What do the different sda devices represent in this df -h output? Aren't /var /usr /opt all apart of / (the root directory)? Does this mean those directories are partitioned differently? -bash-3.2$ df ...
mcv110's user avatar
  • 23
0 votes
0 answers
1k views

Missing df command on Ubuntu 20.04

I tried to run TimeShift but got an error saying: Commands listed below are not available on this system: *df I tried to install the df command using sudo apt install coreutils and got a message ...
Thiago Barata's user avatar
0 votes
0 answers
60 views

Discrepancy between df and du

I'm tracking down disk usage, and I am getting different results from df and du. When I installed Ubuntu, I ticked the box to encrypt my home directory, so my df -h outputs the following mounts (among ...
JellicleCat's user avatar
4 votes
0 answers
962 views

Recovering deleted files with rm -rf [duplicate]

I accidentally deleted a directory with rm -rf /media/directory When using ls -lh /media the space appears to be free, but when I use df or open the file manager nautilus or pantheon, it shows that ...
polendina's user avatar
  • 115
2 votes
0 answers
3k views

No space left on device, even though there is

similar questions on this site did not have a solution for me. I'm developing a web app with symfony, and tried to start a local server, which resulted in a warning and didn't start anything che6yp@...
CHE6yp's user avatar
  • 21
3 votes
1 answer
2k views

df -h displays /cow as one of the devices what does this mean?

In addition to the other storage devices on my laptop, running df -h displays /cow as one of the devices. What does this mean?
Beldar's user avatar
  • 31
1 vote
1 answer
130 views

Understanding the Use% column of the df command output

Below is an output of df command # df /boot Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 122835 26732 89550 23% /boot It seems that Used = 1K-blocks - ...
Vardan Hovhannisyan's user avatar
3 votes
1 answer
314 views

Understanding the df command output

Below is an output of df command # df /boot Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 122835 26732 89550 23% /boot I cannot figure out how the "...
Vardan Hovhannisyan's user avatar
1 vote
1 answer
415 views

Difference between gparted and df hard drive sizes

In df -h output I can see: Filesystem Size Used Avail Use% Mounted on /dev/sda1 234G 60M 222G 1% /...
Daniel's user avatar
  • 387
1 vote
2 answers
782 views

How much free space do I really have on my drive (ext4 and ntfs)?

I keep backups at two, 1.5 GB external hard drives which were both, up until recently, formatted to ntfs. The two hold identical copies of my files and folders. Recently I decided to change to ext4, ...
Klara's user avatar
  • 13
0 votes
0 answers
439 views

Is the size of loopback devices considered for calculating total disk space

I am in a dilemma and want to confirm whether the size of loopback devices is considered while calculation disk size using df -h command. Here is the output of my df -h command. Filesystem ...
Krishna Oza's user avatar
7 votes
2 answers
1k views

Prevent du command report inflated info about /snap directories

I have an Ubuntu 20.04 server installed on a single 8GB drive. The default installation has some "snap"s installed also. So, there are some "squashfs" file systems also reported by the df command: # ...
FedKad's user avatar
  • 9,386
24 votes
4 answers
13k views

`df` command throws error on /run/user/1000/doc/ folder

When reviewing my daily logwatch report, I noticed a new df error this morning. I noticed the unusual error at the top of the df listing. $ df (when run manually from my own account) df: /run/user/...
heynnema's user avatar
  • 68.9k
1 vote
1 answer
3k views

There is no space left on the device

sudo df -h udev 982M 0 982M 0% /dev tmpfs 200M 5.3M 195M 3% /run /dev/vda2 40G 5.2G 33G 14% / tmpfs 1000M 0 1000M 0% /dev/shm tmpfs ...
Saef Myth's user avatar
3 votes
1 answer
3k views

Why does df -h show different information then fdisk -l

I am trying to understand the difference between the output of fdisk -l and df -h. As I understand, fdisk shows the partition size, and df shows the size of the filesystem. My problem is that I have ...
Kfir's user avatar
  • 31
5 votes
1 answer
7k views

What is difference between ls -lh and du -sh?

$ ls -lh file1.tar -rw-r--r-- 1 wnice wnice 40K Aug 6 20:41 file1.tar $ du -sh file1.tar 80K file1.tar Why is it showing different sizes of same file? Please help me understand
Nitin Kumar's user avatar
1 vote
1 answer
81 views

Which folders are in /dev/sde3?

How to see which folders are in /dev/sde3 ? df -h /dev/sde3 39G 32G 4.8G 87% / Doing: cd / sudo du -d 1 -h | sort -hr Also shows me folders like: /dev/sde4 ...
mrgloom's user avatar
  • 870
4 votes
1 answer
11k views

What is "udev" and "tmpfs"

I run the command df -h and it showed that udev has a size of 471M and the other 5 tmpfs have an estimated size of 1.1G. What should I do to them?
user avatar
3 votes
1 answer
2k views

Disk usage analyzer report different free space than terminal

I got an error that I'm running out of disk space while syncing dropbox, so I had to delete some files. The strange thing is that the "disk usage analyzer" reported that I had about 15GB free space. ...
eirikaso's user avatar
2 votes
1 answer
696 views

Missing df --direct option?

during configuration (after install) of Oracle XE 18c on my 16.04, I noticed this message generated by the shell script: /bin/df: unrecognized option '--direct' 'Try '/bin/df --help' for more ...
ManuelJE's user avatar
  • 123
2 votes
1 answer
2k views

Not enough space on parition mounted at / [duplicate]

I'm trying to install cuda toolkit: sudo sh cuda_10.0.130_410.48_linux.run --silent --toolkit --toolkitpath=/usr/local/cuda-10.0 Not enough space on parition mounted at /. Need 3391705088 bytes. ...
mrgloom's user avatar
  • 870
1 vote
2 answers
2k views

Use df on LUKS encrypted device

I am using LUKS for disk encryption for a Ubuntu 18.04 system. I'd like to find out how much free space is still available on my hard drive. gparted prints the following: As you can see the entire ...
null's user avatar
  • 1,211
1 vote
1 answer
163 views

How to speed-up boot by disabling few dev-loox.device? [duplicate]

When I checked my system's boot logs, I noticed that each of the dev-loopx.device takes a good 3-5 seconds to boot, and I have a total 20 such loopx devices lines up during my boot, which ultimately ...
Abbas Mehdi's user avatar
0 votes
1 answer
3k views

Failed to boot : create volatile files and directories, enable support for additional executables binary formats and LSB: AppArmor initialization

I get these errors whenever I boot the machine: [failed] Failed to start Create Volatile Files and Directories. [failed] Failed to start Enable support for additional executable binary formats. [...
오지선's user avatar
2 votes
1 answer
93 views

Available + used size only 19% of total partition size

I have a VPS with Ubuntu on OpenVZ. I noticed a day ago that the output of the df -h command returns strange values. Filesystem Size Used Avail Use% Mounted on /dev/simfs 54G 1.5G 8.8G ...
djaho's user avatar
  • 23
0 votes
1 answer
2k views

Used and available df values don't add up to the correct size [duplicate]

I just did a df to check the disk usage on a new 16.04 installation and noticed the following result. The used and available on /dev/sda2 don't add up to the partition size. Even if I do 836120968-...
user818485's user avatar
1 vote
0 answers
2k views

nvme SSD df -h reports incorrect disk usage

I helped myself with this shiny new Samsung 960 EVO 250GB, and it is super fast, I am very happy with it. Now my disk is full, but df -h reports 33% used space... I really don't know where to start....
Ant's user avatar
  • 186
1 vote
1 answer
82 views

Unable to free diskspace by removing files and not restarting the computer (hibernation possible)

I have a similar problem to the one mentioned here: Unable to free up space in df but I can not reboot (I have important data in the memory). The output of df -h / is: Filesystem Size Used ...
abukaj's user avatar
  • 427
1 vote
1 answer
848 views

df generates duplicate entries

df command generates duplicate entries, like so: mr@ubx:~$ df /* Filesystem Size Used Avail Use% Mounted on /dev/mapper/ubuntu--vg-root 213G 65G 137G 33% / /dev/sda2 ...
mxr's user avatar
  • 45
0 votes
0 answers
872 views

SSD total capacity <> free space + used space

I got a new 500GB SSD and formatted it with ext4+LUKS using the Disks utility in Ubuntu 16.04. Enter disk with Nautilus, right-click and Properties. Total capacity is 492 GB, free space is 467 GB, ...
Daniel's user avatar
  • 3,880
0 votes
2 answers
1k views

How can I check all used space on filesystem in linux?

I've already tried du-ch , df -h and df -h --total but it all result to their specific size of folder. Need to know how can I get the total used space in human readable form. Hoping for your help. ...
Freimnsdei Nanayon's user avatar
1 vote
0 answers
578 views

No space left on device - Size=105G, Used=55G, Avail=0

My root filesystem claims I have no space left on device. I've done some searching and can't find anyone with the problem I'm having. If you look at / you can see that the partition is 105G, used is ...
Eric Wolf's user avatar
  • 335
0 votes
1 answer
203 views

df reports missing space? [duplicate]

This is part of df -h Filesystem Size Used Avail Use% Mounted on /dev/md1 222G 5.5G 205G 3% / 222 - 5.5 = 205? I also observe this in another physical machine /dev/sda1 108G ...
php_nub_qq's user avatar
  • 1,479