Am Sat, Mar 22, 2025 at 09:37:37PM +0000 schrieb Michael: > On Saturday, 22 March 2025 18:50:48 Greenwich Mean Time Dale wrote: > > Howdy, > > > > As most know from other threads, I have a couple external m.2 NVME SSD > > drives thingys. As of today, I now have a Crucial 480GB and 1TB and a > > Samsung 1TB drive. I also have a Samsung 1TB m.2 in my main rig for the > > OS. I read some things ages ago about these things when they first came > > out and people were still learning about what to do and not do with > > them. At the time there was a lot of confusion as they were new and > > people were testing options. I figure by now, it is fairly well known > > what not to do with these things and what should be done to make them > > perform well and last longer. So, I have questions but also feel free > > to share other info as well that would be good to know. I plan to make > > a cheat sheet out of the info. > > > > First, for mount options. Should I have any mount options included in > > fstab for the OS m.2 in my main rig? > > Yes, noatime > > Also, depending on your filesystem choice you could benefit from compression.
I’m experimenting with f2fs (the flash-friendly file system), but recently ran into a road block with it: it does not support shrinking. Ooops, so now I can’t enlarge / on my mini PC, because /home is f2fs. > NOTE: With LUKS encrypted partitions you have to pay particular care - TRIM > can compromise the security of your data and LUKS devs warn about it. This is for people who not only don’t want to have their data leaked, but also the information how much data is on their drive. As a private person that does not do any really dangerous business like politics, leaks and so on, this is an irrelevant attack vector for me. > However, on a drive with a lot of re-write ops you will at some point need/ > want to run fstrim. In this case you'll have to run cryptsetup with '--allow- > discards', before you run fstrim. You can make --allow-discards a permanent option, if you combine it with --persistent. So you open the container with it once and then have to never think about it anymore. > > Are there things I should do on occasion that will make them perform > > better, last longer or both? Steve Gibson, the author of SpinRite, had testimonials in his Security Now podcast of people using his tool on old SSDs that became very slow. Afterwards, the SSDs were back to their former glory. I guess because the tool read it from start to finish so the controller was forced to check every cell (that was in use). > You probably want to alter the cache path for your browser from the SSD drive > to your RAM (tmpfs), especially if you have a lot of RAM. Ouh yeah, firefox writes a backup of its internal state every 15 s or so. If you leave many tabs open, this amounts to many 100 kB minute. Check with iotop --only --accumulated -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. Save water! Dilute it!
signature.asc
Description: PGP signature