Linux Lite Forums

Hardware - Support => Hard Drives and SSDs => Topic started by: T1125P on June 07, 2018, 04:07:09 PM

Title: Trim on NTFS and ext4
Post by: T1125P on June 07, 2018, 04:07:09 PM
Hi all, I want to know if trim is indeed working on my NTFS hard drive in Linux Lite 3.8?
I have 2 SSD's in my laptop one is the main one with LL 3.8 the other is another one thats NTFS.
I ran the command fstrim --all -v and this is the output:



root@Dell-E6330:~# fstrim --all -v
/mnt/84786FC9786FB896: 16 EiB (18446744073709551615 bytes) trimmed
/: 207.7 GiB (222991659008 bytes) trimmed




where is says /mnt/ I'm not sure but it looks like that would be my NTFS drive and the one below that shows 207.7 would be my main LL drive thats ext4. Because it shows 2 entries that are trimmed.

I just came across NTFS-3G which was installed when I checked install/remove software. I also read that it does support Trim with NTFS.



Thanks
Title: Re: Trim on NTFS and ext4
Post by: kpanic on June 11, 2018, 05:04:40 PM
Hi,

Linux does not support NTFS very well because it is a proprietary filesystem.
Use ext4 filesystem and set mount option 'discard' to the corresponding fstab entry
to enable trim in your SSD

And of course you should not use any "tools" on a mounted filesystem in any case
Title: Re: Trim on NTFS and ext4
Post by: T1125P on June 16, 2018, 08:31:07 PM
Oh, but I thought that with NTFS-3G  installed Trim would be supported on NTFS drives?