Results 1 to 2 of 2

Thread: Installed Ubuntu 12.04 64 bit on SSD - Trim Enabled?

Hybrid View

  1. #1
    Join Date
    May 2011

    Installed Ubuntu 12.04 64 bit on SSD - Trim Enabled?

    Just installed a fresh 12.04 64bit version on my new SSD from a USB thumb drive. Took 5-7 minutes. It's fast. Wanted to ask about Trim. This is my first SSD and have seen mention of this Trim feature/command wonder if it's enabled by default/supported in Ubuntu?

    Any info/advice?


  2. #2
    Join Date
    Jun 2009
    SW Forida

    Re: Installed Ubuntu 12.04 64 bit on SSD - Trim Enabled?

    You need to change some settings in fstab.

    You need to add noatime & discard like this:
    Typical fstab entry:
    UUID=d65e4ad3-6315-4838-97a1-ec574cb8575f / ext4 noatime,discard,errors=remount-ro 0 1

    I had not updated my fstab right away and did this:
    Alternate to discard, call fstrim via cron
    fred@fred-Precise:~$ sudo fstrim -v /
    /: 23267893248 bytes were trimmed

    You should have partitioned ok by default, the new standard is to start at 2048 and use 1K boundaries.

    Some of these links may be getting older, I have not recently reviewed them.

    BIOS settings (SSD but also most systems)

    How to Tweak Your SSD in Ubuntu for Better Performance
    See comment: There’s no reason to use BOTH noatime and nodiratime, using noatime implies nodiratime.

    You normally want journal to speed up system recovery if you have to do repairs or run fsck. But if partition is small then it does not take long to fsck anyway and without journal writing is reduced.

    With SSD or Flash drives, Use ext2 or ext4 without journal:
    sudo tune2fs -O ^has_journal /dev/sda1

    No swap or set swapiness or install 'Dynamic Swap Space Manager' from the Ubuntu Software Center

    After installing, change the fstab so that everything gets mounted with noatime.
    change to noop i/o scheduler
    UEFI boot install & repair info - Regularly Updated :
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts