tips
6 tips Filesystems
One command, setting or habit at a time about Filesystems: what it does, the line to copy and a caveat or two.
Linux and shell 3
-
Count the pieces a large file is split into on disk.
filefrag /var/lib/libvirt/images/vm1.qcow2 -
See allocated and unallocated space when df gives a misleading answer.
sudo btrfs filesystem usage /mnt/pool -
Shows every disk and partition with its filesystem type, label, UUID and mount point.
lsblk -f
Mounts and writes 3
-
Flush and pause a mounted volume so a disk snapshot is consistent.
sudo fsfreeze -f /srv/data -
Have a data volume checked after a set time or number of mounts.
sudo tune2fs -l /dev/sdX1 | grep -iE 'mount count|check' -
Show mounted filesystems in a df-style table, minus the pseudo filesystems.
findmnt --df
Nothing in this filter yet.