
Originally Posted by
scriber
I have an nvme drive with 5 partitions ( different OS's ) and when I run the trim command, does that just trim the running OS partition or does it trim all partitions, ie the whole drive ?
The command I'm using is sudo fstrim -a -v
Just curious to know !
It will trim / and mounted partitions. I let systemd manage the trim. The results are in the systemd journal:
Code:
dmn@Tyana-vm:~$ journalctl | grep fstrim
Dec 28 06:11:02 Tyana-vm fstrim[590]: /mnt/Common-Files: 7.9 GiB (8482734080 bytes) trimmed on /dev/vdb1
Dec 28 06:11:02 Tyana-vm fstrim[590]: /: 7.4 GiB (7945121792 bytes) trimmed on /dev/vda2
Dec 28 06:11:02 Tyana-vm fstrim[590]: /boot/efi: 71 MiB (74432000 bytes) trimmed on /dev/vda1
/mnt/Common-Files is my shared data partition on another disk.
Bookmarks