Jesper Dybdal composed on 2025-11-17 14:10 (UTC+0100):

> Geoff wrote:

>> jd-debian-user 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.)

IMO the root= parameter from your bootloader, which is just an override of 
initrd
content, was carrying through successful booting in spite of the broken fstab
entry. Did you ever look for a hint in dmesg or journal?
-- 
Evolution as taught in public schools is, like religion,
        based on faith, not based on science.

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata

Reply via email to