On 2025-11-17 12:56, Geoff wrote:
[email protected] wrote:
But why does it seem not to trim the root partition (/dev/nvme0n1p2)?
The EFI partition on the same physical disk seems to be trimmed fine.
My fstab contains
LABEL=ESPANDY /boot/efi vfat nofail,errors=remount-ro 0 2
LABEl=root / ext4 errors=remount-ro 0 1
LABEL=disk2 /disk2 ext4 errors=remount-ro 0 1
What happens if you change LABEl=root to LABEL=root
Aaargh! Fixing that helped a lot:
# /sbin/fstrim --listed-in /etc/fstab:/proc/self/mountinfo --verbose
/disk2: 115.6 MiB (121245696 bytes) trimmed on /dev/nvme1n1p1
/: 1.8 TiB (1983153356800 bytes) trimmed on /dev/nvme0n1p2
/boot/efi: 1017.7 MiB (1067110400 bytes) trimmed on /dev/nvme0n1p1
Thanks to everybbdy who answered my stupid question! (And amazing that
the system can run almost normally with a missing root fs entry in fstab.)
Jesper
--
Jesper Dybdal
https://www.dybdal.dk