[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Root partition seems not to be trimmed



I have a Trixie system with two nvme disks, with a total of three partitions.

Once a week Trixie does an fstrim.  But it seems that one of the partitions (the root file system partition) is not trimmed.  I see this in the log:

2025-11-17T00:56:12.619791+01:00 andy systemd[1]: Starting fstrim.service - Discard unused blocks on filesystems from /etc/fstab... 2025-11-17T00:56:29.351018+01:00 andy fstrim[5599]: /disk2: 1.7 TiB (1831610261504 bytes) trimmed on /dev/nvme1n1p1 2025-11-17T00:56:29.351180+01:00 andy fstrim[5599]: /boot/efi: 1017.7 MiB (1067110400 bytes) trimmed on /dev/nvme0n1p1 2025-11-17T00:56:29.352097+01:00 andy systemd[1]: fstrim.service: Deactivated successfully. 2025-11-17T00:56:29.352236+01:00 andy systemd[1]: Finished fstrim.service - Discard unused blocks on filesystems from /etc/fstab.

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.

The fstrim command Trixie uses is:

# systemctl cat fstrim | grep ExecStart
ExecStart=/sbin/fstrim --listed-in /etc/fstab:/proc/self/mountinfo --verbose --quiet-unsupported

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

Thanks,

Jesper


Reply to: