Questions tagged as ['df']
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, logical block 754166359, async page read
[118924.226928] Buffer I/O error on dev sdh1, logical block 754166359, async page read
[118924.227149] Buffer I/O error on dev sdh1, logical block 754166359, async p ...
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 and I would like that space taken by this swapfile doesn't appear anymore when I do a "df
" command.
I would like to free this space without rebooting.
I tried : $ swapoff -a
I have also tried : $ swapoff / ...
I have recently spun up a new Ubuntu VM with Docker using KVM:
virt-install \
--bridge=br0 \
--name "${worker_name}" \
--ram 4096 \
--disk path=/var/lib/libvirt/images/"${worker_name}".qcow2,size=150 \
--vcpus 2 \
--cdrom /var/lib/libvirt/isos/ubuntu-20.04.2-live-server-amd64.iso \
--autostart
As you can see I have set the size of the disk to 150GB, however when I run df -h --total ...

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 Ubuntu Server 18.04 installed and the only thing on it should be about 10 Docker containers and their respective volumes. I have Synology NAS shares mounted for larger data (main use is Plex server) ...
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
/dev/mapper/vgubuntu-root 72G 68G 0 100% /
tmpfs 7.8G 16K 7.8G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 4.0M ...