How to Enable Trim in Linux for SSD Solid State Drives

Опубликовано: 17 Октябрь 2024
на канале: quidsup
28,403
226

Tutorial on how to enable Trim for SSD (Solid State Drives) in Linux, I show you two methods of enabling Trim in Ubuntu 12.04:
1. Edit /etc/fstab
Add "discard,noatime" to the mount options
2. Manually run "fstrim / -v"

Both these methods apply to most (if not all) Linux distros, including: Ubuntu, Debian, Fedora, Arch, and Gentoo.

Trim works on Ext4, BTRFS, XFS, and FAT drives.
Using trim can extend the life of the SSD's, but can cause a loss in performance.

There is no need to use Trim on Rotational Hard Drives (HDD's)