Slashdot Mirror


Out-of-the-Box, Ubuntu 14.04 LTS To Support TRIM On SSDs

First time accepted submitter Maurits van der Schee writes "Where in older versions you had to add a cron job calling "fstrim" or mounting with the "discard" option in fstab, the new LTS (Long Term Stable) version of Ubuntu Linux will automatically enable TRIM for your SSD. Good news for hardware enthusiasts!"

15 of 133 comments (clear)

  1. Stable? by Anonymous Coward · · Score: 5, Informative

    "LTS is an abbreviation for "Long Term Support"."

  2. Defeats pleasure of unnecessary labour by Twinbee · · Score: 4, Funny

    But surely this defeats the perceived satisfaction of tweaking and fixing it all up manually? Where's the fun in that?

    --
    Why OpalCalc is the best Windows calc
    1. Re:Defeats pleasure of unnecessary labour by TeknoHog · · Score: 4, Interesting

      But surely this defeats the perceived satisfaction of tweaking and fixing it all up manually? Where's the fun in that?

      If that's your thing, use Gentoo instead. At least that's what I do. In case you're being sarcastic, the fun IMHO is in learning about your system and understanding why distros make the choices they do. I think my first week with Linux taught me more about computers than years with DOS/Windows, and I still wonder how a Windows machine can be anyone's "Personal Computer".

      --
      Escher was the first MC and Giger invented the HR department.
  3. Taking too long by Anonymous Coward · · Score: 5, Insightful

    This is way overdue.

    It's also taking too long for file systems that provide snapshot features to become mainstream and default as well. And no, LVM snapshots aren't good enough.

    No, I'm not going to write the patches. They wouldn't be accepted in any case. Fundamental features such as the IO stack and file systems are now the exclusive purview of well-heeled outfits like Red Hat, Oracle, Intel, OSDL, etc. and and their stable of full time developers.

    They just need to do their jobs and get it done.

    1. Re:Taking too long by darkpixel2k · · Score: 5, Funny

      I've been choosing btrfs through the debian installer for at least a couple of years now.

      Dude you so have to try ZFS. It's aweso--

      Yes, I know it's not as awesome as ZFS, but it still beats mdraid and lvm.

      Oh--sorry. Got ahead of myself there. Good thing you stopped me in time.

      --
      There's no place like ::1 (I've completed my transition to IPv6)
  4. WHAT THE FUCK ARE YOU DOING?! by Anonymous Coward · · Score: 5, Funny

    HOLY FUCK, MAN! JUST WHAT THE HELL DO YOU THINK YOU'RE DOING?!?!?!

    This is Slashdot, for crying out loud. How DARE you bring facts and correct information to the discussion here! THAT IS NOT ALLOWED! You just can't do that! FUCK!

  5. TRIM not always good by girlintraining · · Score: 5, Interesting

    the new LTS (Long Term Stable) version of Ubuntu Linux will automatically enable TRIM for your SSD. Good news for hardware enthusiasts!"

    And terrible news for encryption experts. Enabling TRIM tells your adversary which sectors contain data and which don't. It's a great asset to cryptanalysis and also destroys plausible deniability that there's a filesystem present on the drive, and how much data is present in it -- thus eliminating the "shadow volume" option of Truecrypt and others.

    --
    #fuckbeta #iamslashdot #dicemustdie
    1. Re:TRIM not always good by Anonymous Coward · · Score: 5, Interesting

      No, YOU clearly don't know what you're talking about, and yet are arrogant as all hell.
      The problem arises from the fact that while HDDs have only 2 operations (read, write) and therefore have no distinction outside the file-system of what is "free" and what is "allocated", SSDs have 3 (read, write, free), because SSDs label sectors as "free" or "allocated" (that is, the hardware itself, not just the file-system). So for a standard HDD encryption, the procedure goes: overwrite hard drive with random data, create encrypted partition, install OS on encrypted partition (last step optional, of course). What this accomplishes is that an attacker who examines the disk can't tell the difference between what is and isn't written to, since the unwritten data is random and the written data is encrypted (i.e. indistinguishable from random, if done correctly). On a TRIM-enabled SSD though, the OS sees all these unused sectors and proceeds to mark them as Free. That is a huge fucking problem, for the roughly the reasons the GP stated. In particular, it's egregiously bad for users of hidden volumes, since that hidden volume will never be TRIMed, and the attacker who can rubber hose your outer volume can see a chunk of disk that hasn't been trimmed, yet isn't allocated in the partition you gave them. They can now rubber hose THAT partition as well, whereas previously there was no way to know it even existed (in theory at least, the cryptsetup guys don't buy that).

      If you don't believe this is an issue, then ask the Truecrypt devs:
      http://www.truecrypt.org/docs/trim-operation

      or the LUKS/dm-crypt devs:
      http://asalor.blogspot.com/2011/08/trim-dm-crypt-problems.html

      Please be more respectful in the future, as we're wrong more often than we like to think.

    2. Re:TRIM not always good by Anonymous Coward · · Score: 3, Funny

      He can't be wrong though, he's already marked at Score 4: Insightful at the time of this post. And since Slashdotters are so smart and intelligent the score must be correct, right?

      I dunno. Problem is it's hard to know who's right and who's not. All I know is that Windows 7 had TRIM support automatically enabled for SSDs back in 2009 and the leading Linux distro's only finally going to enable it in 2014. No wonder so many people still see Linux as old and not suitable for end-user machines.

    3. Re:TRIM not always good by fisted · · Score: 3, Insightful

      Wow you seem to be one egocentric person.

    4. Re:TRIM not always good by LordLimecat · · Score: 5, Insightful

      Dude, youre overstating the threat.

      If the drive is encrypted, theres no more or less threat from brute-forcing.

      From a plausible deniability standpoint, Im not terribly sure how helpful that is ANYWAYS. If someone wants to know if youre using truecrypt, they could, I dont know, look at the MBR and see whether its using the Truecrypt bootloader. The idea that you can say "What partition?" when goons grab your mysteriously unreadable laptop is laughable. Im sure there are super corner cases where that would be helpful, but generally if youre being held by the sorts of people who have the means and ability to do rubber hose cryptography, theyre not going to put up with your BS about "but wait look i gave you a password that boots to an Ubuntu partition which only accounts for 1/2 of the drive's size, and has no data worth encrypting whatsoever!"

      Being involved with multiple organizations which employ encryption for very different reasons, none of them use plausible deniability / hidden encryptions; Id reckon because its not terribly helpful, or even plausible.

  6. TRIM? who needs it! by sshir · · Score: 3, Insightful

    Well, if you don't do random writes, you don't need TRIM.

    How to get away from random writes you ask? Simple! Just use BTRFS.

    "But my database!" you say. Well, the answer is simple - time to move away from 50 year old technology and to a modern database engine, the kind that doesn't do random writes either (fractal tree based, for example).

    Disclaimer: All of the above is not written for stodgy "enterprise level" types.

  7. Re: "Good news for hardware enthusiasts!"... by Gadget_Guy · · Score: 4, Insightful

    ...or typesetters & typists, accountants, video editors, music composers, engineers & architects, etc. In fact, anyone who produces, rather than consumes will tend to use computers as their main system. SSDs work nicely for all of them, if only to store the OS and program files.

    That you only know gamers and developers says more about the company you keep rather than what technology is used out there. It is true that tablets and smart phone sales are on the rise and PC sales are declining, but that doesn't mean that people have stopped using their old computers.

  8. Out-of-the-box? by rossdee · · Score: 4, Informative

    Does Linux come in a box these days, I thought you just downloaded it, and didn't have to pay for it and the packaging...

  9. Ubuntu != Linux by Anonymous Coward · · Score: 4, Informative

    It's been in the kernel for a long time now, google tells me since 2.6.33 (Which was released early 2010, about a half a year after Windows 7 was released). Ubuntu 12.04 (The last LTS) shipped with 3.2, so you could already enable TRIM using 12.04. This announcement is nothing more then a default settings change, I have no idea why it's even a big deal (Or why this wasn't already the default, I've been using it for a while now).