Questions tagged [df]
82 questions
23
votes
4 answers
`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/1000/doc: Operation not permitted
or
(when run via…
heynnema
- 73,649
17
votes
3 answers
How to fix exfat filesystem
So we accidentally caused our server to go down without a clean shutdown and now df is reporting wrong stats for the external usb (exfat).
root@srv1:/backup/usbdisk# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 3.6T 2.8T …
madpoet
- 339
7
votes
2 answers
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:
# df -mT
Filesystem Type 1M-blocks Used…
FedKad
- 13,420
5
votes
1 answer
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
- 151
4
votes
2 answers
df -h doesn't show /dev/sda
I am using df -h to get my disk space and the results are:
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 396M 436K 395M 1% /run
/dev/vda1 59G …
Prashant Prabhakar Singh
- 305
- 1
- 5
- 12
4
votes
2 answers
'df' command doesn't show file system requested in ubuntu 14.04
This strange behavior begins a few day ago. This is df of all file system
michele@OptiPlex-360:~$ df
File system 1K-blocchi Usati Disponib. Uso% Montato su
udev 1974808 8 1974800 1% /dev
tmpfs 397120 …
4
votes
2 answers
Utility says there's no more free disk space, when there's plenty
Somehow my system is in a pickle.
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are…
artfulrobot
- 8,733
4
votes
0 answers
Recovering deleted files with rm -rf
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 the previously occupied space is still…
kqvanity
- 135
4
votes
1 answer
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
- 41
4
votes
1 answer
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?
user964536
3
votes
2 answers
Finding my swap partition
It looks like I have 40 GB of swap:
wuser@wavesftwDell:~$ cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-1 partition 40959996 956 …
DDC
- 31
3
votes
2 answers
Ubuntu 14.04: df prints full UUID
For some reason, the output format for df changed after a recent kernel update in Ubuntu 14.04.
When I run df -hl to show all mounted filesystems, the output looks like this:
bwvdnbro@wixie:~/Projects$ df -hl
Filesystem Size Used Avail Use%…
3
votes
0 answers
Disk full after copying between external HDDs
I was copying 500 GB files from an external HDD to another external HDD and suddenly the local memory was running out?
When the copy was completed I rebooted and I get now a black screen. Logged in via SSH from another machine and the df -h command…
rf2632
- 491
3
votes
1 answer
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 LUKS and mounted into /home.
Today I was a bit…
Geosearchef
- 131
3
votes
1 answer
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 "Available" column is calculated.
It doesn't equal:
…
vho
- 145