laptop_install
laptop_install copied to clipboard
Add fstrim support for SSD disks
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.