I used to install Linux on HDD. It's easy. But now I have a SSD, and I want to install Fedora 17 on it.
What should I do to make Fedora 17 issue TRIM commands to the SSD?
fedoralinuxssd
I used to install Linux on HDD. It's easy. But now I have a SSD, and I want to install Fedora 17 on it.
What should I do to make Fedora 17 issue TRIM commands to the SSD?
Best Answer
This is pretty easy, now that TRIM can pass through LVM to the underlying device(s).
When you install, make sure your filesystems are all set to ext4. TRIM is not supported on ext3.
After you install, login as root and edit
/etc/fstab
. In the fourth column (that usually readsdefaults
) add the keyworddiscard
. Do this for both the/
and/boot
partitions, and any other partitions you created on the SSD.An example:
(If
defaults
is the only keyword there, it can be replaced withdiscard
. If other keywords are there, append it with a comma, e.g.whatever,discard
.)Nothing needs to be done for swap; all swap partitions automatically support TRIM.
LVM support for discard is disabled by default. Enable it by editing
/etc/lvm/lvm.conf
and changingissue_discards = 0
toissue_discards = 1
.Restart the computer.