[solved] enable trim on ssd

this link from the wiki says i should edit my /etc/fstab in order to enable trim on my ssd.
this is my /etc/fstab
# /etc/fstab: static file system information
# <file system> <dir> <type> <options> <dump> <pass>
# UUID=6b44daaa-610c-4f23-a632-569d091e4d43
/dev/sda1 / ext4 rw,relatime,data=ordered 0 1
should i replace 'rw,relatime,data=ordered' with 'defaults,noatime,discard' or appent 'discard' to the options?
Last edited by aldoiljazi (2013-09-18 19:42:05)

@ploub, thanks!
another thing i want to make sure is trim support for my ssd. i have this one. the 64gb version.
i don't seem to find a certain source online, even the sandisk's page doesn't mention anything.
is there a test i can run?
edit: it does support trim, just for reference i used "hdparm -I /dev/yourssd" as root and i got:
Data Set Management TRIM supported (limit 8 blocks)
somewhere in the output.
Last edited by aldoiljazi (2013-09-18 19:41:42)

Similar Messages

  • Enable TRIM on SSD Mac OS X Mountain Lion

    I recently purchased and installed a Samsung SSD 840 Pro series on my MacBook Pro. I was reading up on SSDs and I heard something about enabling TRIM and how it makes the SSD last longer. How can I enable TRIM on my SSD on my MacBook Pro that's running Mac OS X Mountain Lion?

    TRIM is necessary as SSD have limited writes, so the new written data has to go to a  less frequently used spot on the SSD.
    It's a real shame Apple doesn't automatically enable TRIM on non-Apple SSD's, it knows when it formats it that it's one as it won't enable scrubbing.
    http://www.mactrast.com/2011/07/how-to-enable-trim-support-for-all-ssds-in-os-x- lion/
    Secure erase data on a Solid State Drive?

  • Enable TRIM on Samsung SSD 840, is it necessary?

    This type of question has been asked a lot of times, I know, but I would like to receive some advice from experts.
    Few weeks ago I installed my Samsung SSD 840. People say that it's not necessary to enable TRIM for such type of SSD. Others say that it allows to maintain the life of the SSD. So, what do you think about? What way to follow?
    Note that in this case TRIM would be enabled by third part apps (TRIM enabler or Chameleon) and not by Apple.
    Thank you in adavnce.

    TRIM does not improve performance. Do a google search for TRIM and read up on it. Is it necessary and a good thing to have enbled? I say yes it is even if the drive does some garbage collection. If TIRM was not needed or not good for the drive apple would not auto enable it on ssd's that are branded by apple. Neither would windows 7 auto enable trim when windows sees a ssd installed.
    mac_giabber wrote:
    Kappy,
    Thank you for yur reply.
    If I enable the TRIM, what about the performance? Will it improve or not? IMHO, this would put an overhead on the SSD. What do you think about?
    Thank you again.

  • [solved] Best Practice for SSDs with crypto on it regarding TRIM

    Hi,
    I was doing some research on this matter but did not find too much information on that that's more useful than confusing.
    The setup is the following: I have an SSD (Crucial, Marvell-Controller) with two partitions: a small one for /boot and a bigger one for the rest, which is a LUKS-Container. I left some unpartitioned space at the end of the SSD. I'd like to *not* enable TRIM on the LUKS-device for security purposes.
    I was wondering now:
    I read that TRIM does reduce the write amplification of garbage collection. But shouldn't the garbage collection do not write at all, but just erase cells with no information on it?
    If TRIM helps keeping up performance: do I need to explicitly trim the unpartitioned space? Or does this area behave like the spare area?
    If TRIM of the unpartitioned space is necessary: what's the most elegant way to do so?
    If someone could shed a little light on this matter, that would help a lot and would be greatly appreciated.
    Last edited by Ovion (2015-03-09 19:20:13)

    I have the same setup. Crucial SSD, LUKS, TRIM (cron.weekly fstrim). A full hexdump (minus gigabytes of random data) looks like this: https://bpaste.net/raw/505157 (tell me about it)
    There is no issue with security. At least, none I care about. So the attacker can see how much free space there is [and where]. The where part is important since lots of small files give a different picture [lots of small free spaces in between] than a single very large file would [no free space in between], assuming there is no fragmentation worth mentioning [which Linux filesystems are usually good at]. So an attacker could probably make some guesses about your amount of data and file sizes. On the other hand I don't see how that's important, in ecryptfs you get this kind of info for free, and I have all sorts of files in all sorts of sizes either way, so it's not a big secret.
    The question is, when all it takes to crack your encryption setup is a keylogger or a $5 encryption wrench, does it really matter?
    Don't use TRIM on your SSD if you don't want to (there are lots of reasons not to TRIM... like better data recovery chances if you delete something by accident). But don't fool yourself thinking it's somehow really important for your security...
    As for unpartitioned space, if it ever was in use before, you need to trim it once. Create a partition on it, then blkdiscard the partition, then delete the partition. That way it's good until it's "in use" again because you dd all over it or had it resynced in a RAID.
    Apart from that, TRIM does all the things you said (reduce write amplification, performance, etc. etc.) but it's not like the SSD can't take it if you're not writing 24/7 because it's a database server burning up or something.
    Last edited by frostschutz (2015-03-09 19:19:16)

  • So I've changed my hard drive for an ssd and now I've been told to enable trim now I've got the apple cover will they show me how to enable it with out some program of the internet ?

    so I've changed my hard drive for an ssd and now I've been told to enable trim  ?  now I've got the apple cover will they show me how to enable it with out some program of the internet ?

    Use an app called chameleon ssd optimizer.
    I enabled trim with it after almost a year of having installed a Samsung 840 pro SSD and my read/write speeds almost quadrupled.
    I would definite;y advise using it even though Samsung SSD's come with there own garbage disposal.
    Hope that helps.

  • Crucial ssd enable trim?

    How do you enable trim when installing new ssd?
    Booting from mountain lion on external thumb
    No time machine backups all important files have already been backed up

    here's the pic of my system info:
    [URL=http://imageshack.us/photo/my-images/692/screenshot20130326at249.png/][IMG]http://img692.imageshack.us/img692/3509/screenshot20130326at249.png[/IMG][/URL]
    Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL]
    as u can see it is an apple ssd....it's something that i got from a friend that is a servicer here..
    anyway...he doesn't know how it work's...

  • Enable Trim Command for SSD

    How can I enable Trim Command for SSD in my Windows 7 O/S?

    Unfortunately, using "fsutil behavior set disabledeletenotify 0" will not tell you if TRIM is actually working.
    How do you know it is not already working?
    You can try using this tool to check
    http://files.thecybershadow.net/trimcheck/
    Copy the exe you download to a folder on the drive you wish to test (eg c:\test) and double click it. Follow the instructions.

  • If I get one of the Toshiba SSDs and put it in my 2011 MBP, will it auto enable trim support?

    If I get one of the Toshiba SSDs and put it in my 2011 MBP, will it auto enable trim support?

    It is outrageous that Appe deliberately does not enable TRIM support native to the OS to non Apple SSD drives automatically. Even worse is to cancel it after an update of the OS.
    It is forcing anyone who does not add up to your greedy aftersales target to eventually experience trouble with their non Apple drives.
    It is monopoly, isn't it?
    It does also sounds petty, very disgusting from such a reputable company.
    I love Apple but they do not need to go down such length to whatever are their aims.
    Very disappointed to find out that the TRIM support I enabled prior to the update 10.9.3 is now disable.
    Simply unbelievable!

  • HP dv7t CTO Corei7, Win7 . . . can this notebook run TRIM on SSD

    I have a new HP dv7t CTO Notebook, Core-i7, 64bit Win7, 128GB Crucial SSD-SATA III.  I also have a different, smaller SSD installed in the 2nd drive bay for data storage.
    I have attempted to enable TRIM for the 128GB SSD with no success.
    QUESTION:  Can this notebook support TRIM ?
    QUESTION:  Could the trouble be that I have a 2nd SSD installed ?
    Thanks for your help.
    This question was solved.
    View Solution.

    You are welcome
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • Enabling TRIM on MBP 2010 ?

    Hello,
    Few weeks ago i installed Corsair Force GT Sata 3 SSD.After a while i was curious about if im using on full performance.Then i found out TRIM Support is not enabled. Some sites says do this do that on terminal to enable trim support but i was wondering can anyone help about this ?
    Macbook Pro 2010. Core i7 (non sandy bridge) 4GB Ram.Mac OS X Lion.
    Corsair Force GT Sata 3 120GB 555mb/s

    I don't have engineering data. But let me give you this. All SSDs sold by Apple and installed into Apple computers have TRIM enabled Automatically by the OS.
    All SSDs installed into any PC running Windows 7 TRIM is enable Automatically. It is only with Mac OS X and NON Apple SSDs that TRIM is NOT Automatically enabled.
    So what does that tell us. Apple feels so strongly that TRIM should be enabled on Apple SSDs that they do it Automatically. Microsoft feels so strongly that TRIM should be enabled on ALL SSDs that they do it Automatically when using Windows 7.
    The only place I have ever read that TRIM support is not needed is on the OWC website promoting their RE-Branded SSDs. You will not find that same info on any website of a major manufacturer of SSDs.
    Now Apple does not have one brand of SSDs. Just like the spinning HDD they use they buy the brand/model that fits there price point at any given time they are in the market for more components of that type.
    So with all that stated it is my honest and well informed opinion that whenever you are using an SSD you should always enable TRIM support.
    I hope that is now clear to you.
    You may think differently. That is fine.
    But I don't care for your tone.
    Thanks.

  • Enable TRIM on fusion drive?

    I have recently installed a 256GB Sandisk SSD into my Mac mini and set it up, in conjunction with the existing 1TB HDD, as a single volume fusion drive (see: https://discussions.apple.com/message/24609725#24609725).
    I would like to know whether it is possible to enable TRIM for the SSD while it remains integrated with the HDD as a fusion drive. If so, how can this be done?
    Incidentally, the new fusion drive set-up has been outstandingly effective and an absolute breeze to set-up (once the new drive had been installed). It has been the most cost-effective upgrade imaginable for the Mac mini.

    Personally, I don't feel you need TRIM enable on a Fusion drive with 3rd party SSDs. I never did when I had an Intel SSD fused.
    TRIM Enabler will work on a Fusion drive, though if you feel you need it. See the bottom of the provided link.

  • TRIM and SSD Question

    Hi all,
    I have just bought:
    Crucial CT240M500SSD1 2.5-inch 240GB M500 SATA 6Gb/s Internal Solid State Drive 
    for my Macbook pro 2009 model. I plan to install OSX Mountain lion on it (OSX 10.8). I was woundering after reading about TRIM etc, when i have plugged the SSD in, and installed the operating system do i need to enable TRIM or will it be on by default?
    Thanks

    You certainly can and many do. 
    I have my own way of setting up a new drive as shown below.  Mainly because I want a fresh start.
    Power down my computer and remove the power charger and dispense static electricity.
    1.  Format new SSD or HDD (Mac OS Extended Journaled).  External enclosure is needed for this.
    2.  Remove the internal HDD (the one being replaced) (FIRST dispense static electricity).
    3.  Install new internal drive (SSD or HDD)
    4.  Install OS on new SSD or HDD
    5.  Install apps
    6.  Connect the drive removed and move data, pictures, videos, etc to the new drive (use external enclosure).
    Make sure you have a solid backup of your important data

  • TRIM for SSD?

    I just bought a Samsung 840 PRO Series 128GB SSD to replace the HDD in my MacBook Pro Early 2011 13" running Mountain Lion. I installed it and it functions great and speeds up my Mac considerably. Having paid $150 for 128GB of storage makes me want to do what I can to ensure that my SSD will have a long lifespan. Are there any tweaks that I should perform? Such as "turning off sudden motion sensor" or "enabling TRIM"?
    I am especially concerned about the TRIM feature. I read numerous forums online and it seems no one agrees on whether to enable TRIM or not. Some say enabling TRIM on a Mac with third party SSD's will be disastrous, since OS X cannot support TRIM on anything other than a hard drive with Apple firmware. Others say that performing a tweak that allows Mac to enable TRIM on a third party SSD is recommended. (Note: The Samsung 840 Pro DOES incorporate garbage collection algorithms.)
    I plan to install Windows 7 using Boot Camp on my SSD so that I can run Windows on my Mac. I understand that Windows 7 automatically enables the TRIM feature for an SSD. If that is the case, do I still need to perform the TRIM tweak in Mountain Lion?
    I would be more than happy for some up-to-date information regarding using third party SSD's in a MacBook. Thank you!

    SSD Tweaks for Mac OS X
    My personal recommendation is the "Disable file access time tracking" tweak, which I have applied on all three of my SSDs.
    For advice on whether or not to force TRIM on an unsupported device, check with your manufacturer.  OWC, for example, specifically advise against it.
    Windows 7 automatically enables the TRIM feature for an SSD.  […]  do I still need to perform the TRIM tweak in Mountain Lion?
    Yes.  Windows 7's Trim is only used when booted into Windows 7.

  • Should I enable TRIM for Windows 7 Ultimate 64 for my MacBook Air?

    Can I enable TRIM support in Windows 7 for my MacBook Air?

    When you installed windows 7, TRIM would have already been enabled if the SSD supports it. Windows 7 auto detects SSD’s
    To check TRIM is on at command prompt type
    fsutil behavior query DisableDeleteNotify
    the result will be 0 if it’s enabled

  • Does Mountain Lion support trim for SSDs? ...

    I've been reading various forum posts and I find conflicting info. I did se several references to a tool called 'trim enabler.'
    I have a late 2012 Mac Mini with Mountain Lion and installed a Samsung 830 SSD.
    System Report shows that trim is not enabled for the drive. Does Mountain Lion support trim for these drives? How important is it to enable it?
    Thanks in advance,
    Chris

    Apple does not support the 3rd party drives.  To enable it (without installing another software package), you can visit the website:
    http://digitaldj.net/2011/07/21/trim-enabler-for-lion/
    I ran the series of commands on my Mac Pro and it did enable TRIM.
    the webpage even has a backup/back-out procedure.
    Without TRIM, my computer was running extremely slowly.  After enabling TRIM, my computer ran substancially faster.

Maybe you are looking for

  • Hex value to Hex display

    I read in a text document from a server different HEX values ​​depending on the equipment i used. The Hex value is sent to a VI for TMT commands. And the entrance which must be presented as HEX display. I want to "convert" an appended path string wit

  • Accessing Managed Bean Variables in Entity Impl Class

    How can I access managed bean variables in the entity Impl class . While inserting a new record in DB , i want to set few entity properties values . The values of those properties are available in the managed bean . How can i access those values from

  • Deleting Plantes replicated from R/3.

    Hi, I replicated plant for mR/3 into SRM using BBP_LOCATIONS_GET_ALL.  This worked as expected. However, I replicated more plants that I wanted.  Guess I should have used BBP_LOCATIONS_GET_SELECTED. My question:  Is there a way to delete the plants w

  • Parallel Currency- Asset Accounting

    Hi, When I am trying to save the Purchase Order with Asset Account Assignment, it gives me following error message.  "Company code manages parallel currencies in Asset Accounting. For each area that posts automatically online to FI, you have to defin

  • Co11n check on field

    hi experts,     I am using WORKORDER_GOODSMVT BADI  to put check on quantity field of CO11n tcode. I found the method GOODS_RECEIPT having the changing parameter CT_GOODS_RECEIPT which is containing the field ERFMG (quantity). I created an implementa