xeno74 wrote: Fri Apr 14, 2023 11:21 am
Please don't test it if you have important files on the NTFS partition. I don't know if the bug still exists.
If you want to test it then use a new NTFS test partition.
Ok, thanks for warning...
But for me it would be more important to get fstrim to work with NTFS-3G, as I want to run trim only periodically. I tried to mount the ntfs parttion using the 'ntfs-3d' command to be sure that 3g is really in use and not the legacy one, but that did not change anything. Do you have idea why it is not working...?
I would like to say thank you because of your hint with TRIM. This topic is very important for SSDs.
I checked my Void PPC today because it is installed on an SSD.
Unfortunately, TRIM is not activated automatically if Void runs on an SSD. I tested fstrim manually today and it works.
I installed cronie and created a cron job for fstrim.
systemctl status fstrim.timer
● fstrim.timer - Discard unused blocks once a week
Loaded: loaded (/lib/systemd/system/fstrim.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Tue 2023-04-18 11:02:01 CEST; 23s ago
Trigger: Mon 2023-04-24 01:08:03 CEST; 5 days left
Triggers: ● fstrim.service
Docs: man:fstrim
Apr 18 11:02:01 mintppc.a-eon.tld systemd[1]: Started Discard unused blocks once a week.
xeno74 wrote: Tue Apr 18, 2023 10:43 am
For MintPPC, Fienix and Debian: To schedule a weekly TRIM of all attached capable drives, enable the .timer unit.
systemctl enable --now fstrim.timer
Thank you for sharing this info! If you want to run fstrim monthly instead of weekly, is it enough to simply replace the paramter "Weekly" with "Monthly" in the "fstrim.timer" file?
I think this thread could be used to share all kind of tips for 'helthcare' of SSDs, in addition to TRIM. So, I slightly modified the title of this thread to better fullfill that task .
Roland wrote: Mon Apr 10, 2023 11:02 am
Thank you! I tested fstrim with Fienix6, and it seems to work with EXT4 partitions, but with NTFS I got this error:
~$ sudo fstrim -v /media/roland/NTFS-disk
fstrim: /media/roland/NTFS-disk: the discard operation is not supported
Iny idea how to get it to work with NTFS? I read from different sources that NTFS-3G should nowadays work with TRIM.
I got finally 'fstrim' to work also with ntfs partitions! The trick was to mount them in fstab, using 'ntfs-3g' parameter instead of 'ntfs' or 'ntfs3':
But the question remains: why ntfs partitions mounted simply by accessing then from caja cannot be trimmed? Is there some way to set 'ntfs-3g' the system default when mounting partitions? BTW, EXT4 partitions mounted from caja do work with fstrim.
Roland wrote: Sun Apr 23, 2023 4:11 pm
I got finally 'fstrim' to work also with ntfs partitions! The trick was to mount them in fstab, using 'ntfs-3g' parameter instead of 'ntfs' or 'ntfs3':
But the question remains: why ntfs partitions mounted simply by accessing then from caja cannot be trimmed? Is there some way to set 'ntfs-3g' the system default when mounting partitions? BTW, EXT4 partitions mounted from caja do work with fstrim.
Hi Roland,
Well done! Great idea with the ntfs-3g in the fstab.
Unfortunately, I don't use NTFS mounts and I don't need them so I don't have any idea about a solution but I hope you can find a solution.