Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
How big is your SSD? It should work fine. Did you try installing it already? – Mikel Aug 1 '12 at 2:41
128GB. It's on my notebook computer. – CodeSun Aug 1 '12 at 3:01
So what problem are you having? Do you need help partitioning? Help with the bootloader? What exactly are you asking? – Mikel Aug 1 '12 at 4:04
The Fedora Guide (for 14) has a chapter on deployment on SSD, is it helpful? – sr_ Aug 1 '12 at 6:45
I don't see any difference on installation, what you expecting, tuning ? – warl0ck Aug 1 '12 at 8:01
show 3 more comments

1 Answer

up vote 2 down vote accepted

This is pretty easy, now that TRIM passes through LVM to the underlying device(s).

  1. When you install, make sure your filesystems are all set to ext4. TRIM is not supported on ext3.

  2. After you install, login as root and edit /etc/fstab. In the fourth column (that usually reads defaults) add the keyword discard. Do this for both the / and /boot partitions, and any other partitions you created on the SSD.

    An example:

    /dev/mapper/vg_mymachine-lv_root /                       ext4    discard         1 1
    UUID=94b6d32d-ec21-4028-9a89-b1a19849c4ad /boot                   ext4    discard         1 2
    

    (If defaults is the only keyword there, it can be replaced with discard. 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.

  3. Restart the computer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.