laptop_install icon indicating copy to clipboard operation
laptop_install copied to clipboard

Add fstrim support for SSD disks

Open e-minguez opened this issue 7 years ago • 1 comments

e-minguez avatar Jan 21 '18 10:01 e-minguez

Notes:

/etc/crypttab -> discard
/etc/fstab -> relatime
# Discard doesn't seem needed in /etc/fstab as it will continuously trim the disk (which we don't want)
/etc/default/grub -> GRUB_CMDLINE_LINUX="... rd.luks.options=discard"
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
dracut -f
systemctl enable fstrim.timer
reboot

Do fstrim -av a couple of times to see if it trims it or not.

e-minguez avatar Jan 22 '18 11:01 e-minguez