Disk sometimes full

I frequently see out of disk space errors, but I also have several GB free, and I am confused. I’d like to know why this is happening and how to fix it.

The output of df indicates free space

x@fedora:~$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/nvme0n1p7  47166464 43867960   3149288  94% /
vendorfw         3813344    80976   3732368   3% /usr/lib/firmware/vendor
devtmpfs            4096        0      4096   0% /dev
tmpfs            3813344        0   3813344   0% /dev/shm
tmpfs            1525344     8816   1516528   1% /run
/dev/loop0           128      128         0 100% /var/lib/snapd/snap/bare/5
/dev/loop1         70912    70912         0 100% /var/lib/snapd/snap/core22/1125
/dev/loop3         93952    93952         0 100% /var/lib/snapd/snap/gtk-common-themes/1535
/dev/loop2        486528   486528         0 100% /var/lib/snapd/snap/gnome-42-2204/143
/dev/loop4        187008   187008         0 100% /var/lib/snapd/snap/signal-desktop/627
/dev/loop5        187008   187008         0 100% /var/lib/snapd/snap/signal-desktop/629
/dev/loop6        188800   188800         0 100% /var/lib/snapd/snap/signal-desktop/643
/dev/loop7         36096    36096         0 100% /var/lib/snapd/snap/snapd/20674
/dev/nvme0n1p7  47166464 43867960   3149288  94% /home
/dev/nvme0n1p6    996780   266356    661612  29% /boot
/dev/nvme0n1p5    510872   134072    376800  27% /boot/efi
tmpfs            3813360       64   3813296   1% /tmp
tmpfs             762656      720    761936   1% /run/user/1000

And I can create large files as a non-root user

x@fedora:~/demo$ du
0	.
x@fedora:~/demo$ head --bytes 1000000000 /dev/random >> file
x@fedora:~/demo$ du
976564	.
x@fedora:~/demo$ du -h
954M	.

And I can create large files in /tmp

x@fedora:/tmp/demo2$ du
0	.
x@fedora:/tmp/demo2$ head --bytes 1000000000 /dev/random >> file
x@fedora:/tmp/demo2$ du
976576	.
x@fedora:/tmp/demo2$ du -h
954M	.

And even in new subdirectories in /

x@fedora:/demo3$ du
0	.
x@fedora:/demo3$ head --bytes 1000000000 /dev/random >> filex@fedora:/demo3$ du
976564	.
x@fedora:/demo3$ du -h
954M	.

And as root I can make large files in / itself

x@fedora:/$ su
Password: 
root@fedora:/# head --bytes 1000000000 /dev/random >> file
root@fedora:/# 
exit
x@fedora:/$ du file
976564	file
x@fedora:/$ du -h file
954M	file

Yet when I edit a file with the Text Editor utility and try to save it says

Failed to save document
Error renaming temporary file: No space left on disk

I’m on Fedora Asahi Remix release 39 with GNOME desktop manager.

From Ask Fedora to Ask Asahi

Moving items to trash also fails (but rm succeeds) and moving items in removable media to trash also succeeds.

Yet I can still create large files and move files in /home/x/.local/share/Trash/info/

Well, this is mostly a btrfs question rather than an Asahi one.

Anyway, ‘free space’ in BTRFS is a bit complicated, as it might refer to both metadata space and data space.

BTW, unfortunately I’ve not yet reached that state so I can’t help you much, but the info provided here should be useful:

You might also check this as a non-QA link: btrfs: No space left on device

1 Like