Slashdot Mirror


Ask Slashdot: Tools For Linux Disk Encryption and Integrity?

An anonymous reader writes "I have been using Gentoo Linux for a long time now and have always been satisfied with one of its many disk encryption tools: cryptsetup (dm-crypt and LUKS). However, I recently gave FreeBSD a try and, although I concluded BSD is not for me, I was amazed at geli(8), FreeBSD's disk encryption tool. It happens this tool also provides what it calls an 'authentication mode.' Besides encrypting the disk sector-by-sector, it also stores checksums (sha256 in my case) in it on every write. On reads, if the checksum mismatchs, it propagates the error up, resulting in, say, a read() error. Thus I do not have to trust my disk (except of course for the boot partition) any longer: any data inconsistency will be detected before the data is used. Having searched for a long time without answers, I want to ask: is there something similar to this in Linux? Note: Using Btrfs is a valid solution, but is far from stable (got a few oopses during my tests)."

123 comments

  1. Yep by Anonymous Coward · · Score: 5, Informative

    You can use IMA (2.6.30 and later) and EVM (2.6.38 and later). :)

    1. Re:Yep by lgftsa · · Score: 0

      Will someone please mod up the parent?

    2. Re:Yep by Anonymous Coward · · Score: 0

      How about some links?

    3. Re:Yep by Anonymous Coward · · Score: 0

      http://lmgtfy.com/?q=linux+ima

      First link on google. Information about EVM on the same page.

    4. Re:Yep by wild_berry · · Score: 1

      Linux IMA at LWN: https://lwn.net/Articles/227937/, https://lwn.net/Articles/326747/
      IBM (involved in Trusted Computing Group) link: http://domino.research.ibm.com/comm/research_people.nsf/pages/sailer.ima.html

      Bullet-point summary of EVM:
      EVM Mailing-list announce: https://lwn.net/Articles/393673/

  2. ZFS? by johnslater · · Score: 1

    ZFS has checksumming on every block

    1. Re:ZFS? by Anonymous Coward · · Score: 0

      Yeah, Linux was a requirement, Doofus.

    2. Re:ZFS? by johnslater · · Score: 1

      I'm honored that you spelled Doofus with a capital D. Now read the comments below.

    3. Re:ZFS? by Anonymous Coward · · Score: 0

      ZFS-Fuse? Or share iSCSI volume to linux client and keep ZFS on the backend.

  3. TrueCrypt by Anonymous Coward · · Score: 0

    Check out TrueCrypt, http://www.truecrypt.org/

    1. Re:TrueCrypt by munozdj · · Score: 3, Informative

      Yes, exactly. I've been using TrueCrypt for my important info (mostly pr0n), and have had no problems. It lets you choose between different encryption algorithms (blowfish, twofish, AES, and others I can't remember) and allows you to encrypt individual files, mount an encrypted virtual volume or encrypt your entire hard drive. And, as usual on /., its FOSS.

      --
      Democracy: Crowdsourcing a country near you
    2. Re:TrueCrypt by Anonymous Coward · · Score: 0

      I'm pretty sure TrueCrypt system encryption only works with Windows. For Linux, it only allows containers.

    3. Re:TrueCrypt by zonky · · Score: 1

      *insert TrueCrypt license debate here*

      Oh go on, i'll start it off.
      There are some who would argue the license is dangerous.

    4. Re:TrueCrypt by EkriirkE · · Score: 2

      Nope, it offers full disk encryption, partition encryption, and file container, regardless of filesystem type within on Linux. My only problem with in on linux is the partition labels do not propagate thru mounting (eg /media/truecrypt1 instead of /media/MyDiskLabel)

      --
      from 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
      to 45 2F 6E 40 3C DF 10 71 4E 41 DF AA 25 7D 31 3F
    5. Re:TrueCrypt by Jeremiah+Cornelius · · Score: 3, Informative

      Volume encryption?

      Why is it needed? Unless you have a requirement that dictates this, there are more ways for volume encryption to fail.

      I am surprised no one has mentioned encfs. You could run it in userspace over whatever precious checksumming system your heart desired.

      http://www.arg0.net/encfs

      Advantages of pass-thru system vs an encrypted block device

      • Size: an empty EncFS filesystem consists of a couple dozen bytes and can grow to any size without needing to be reformatted. With a loopback encrypted filesystem, you allocate a filesystem ahead of time with the size you want. Depending on the filesystem, there may be ways of resizing it later, but that requires user intervention.
      • Automated Backups: An EncFS filesystem can be backed-up on a file-by-file basis. A backup program can detect which files have changed, even though it wonâ(TM)t be able to decipher the files. This way backups can be made without needing to mount the encrypted filesystem.
      • Layering / Separation of Trust: EncFS can be layered on top of other filesystems in order to add encryption to unencrypted filesystems. This also allows you to store data on filesystems you trust for storage but not for security. For example, EncFS could be used on top of a CD, or a remote NFS filesystem, Samba share, or perhaps even GMail storage using GMailFS.

      Disadvantages

      • Meta-data: Meta-data remains visible to anyone with access to your encrypted files. This means that Encfs does not encrypt or otherwise hide the following information:
        • The number of files you have encrypted
        • The permissions on the files (readable, writable, executable)
        • The size of each file
        • The approximate size of each filename (to within 16 bytes using AES, or 8 bytes using Blowfish)
      --
      "Flyin' in just a sweet place,
      Never been known to fail..."
    6. Re:TrueCrypt by Anonymous Coward · · Score: 0

      truecrypt uses FUSE which is a performance hit. it's ok for backup storage though.

    7. Re:TrueCrypt by Anonymous Coward · · Score: 0

      I have no experience with TrueCrypt in Linux, but if it's half as good as in Windows, I agree.

    8. Re:TrueCrypt by Chryana · · Score: 2

      As far as I am concerned, you already said too much. Your post does not even remotely address the question asked. Please read the summary next time. As for the original poster: sorry, I don't know any such tool for Linux. ZFS has already been mentioned. Maybe you could compile Geli on Linux?

    9. Re:TrueCrypt by koolfy · · Score: 2, Informative

      Not TrueCrypt.
      Nuff said.

      also : https://tails.boum.org/support/truecrypt/index.en.html
      I'll never say this enough : Don't trust Truecrypt when you have a shitload of similar/better tools that you can actually trust on linux.

      I mean just look at this

      --
      Segmentation Fault in "Life, Universe and Everything" at line 42. Don't Panic.
    10. Re:TrueCrypt by boristhespider · · Score: 1

      Why's that?

      Honest question, I've not heard the argument.

    11. Re:TrueCrypt by johnslater · · Score: 5, Funny

      For pr0n you should definitely use blowfish, along with analfish

    12. Re:TrueCrypt by Threni · · Score: 1

      Not open source. Do keep up.

    13. Re:TrueCrypt by Threni · · Score: 1

      Have you read the license? Not GPL, Apache etc. Not really open source, although the source is available.

      http://fedoraproject.org/wiki/ForbiddenItems#TrueCrypt

    14. Re:TrueCrypt by geminidomino · · Score: 1

      The link says that Fedora says the license is dangerous, but doesn't go into it at all.

      Here is a more detailed explanation on the dangers from debian-legal, though it's 5 years old so I can't say whether or not it's even still relevant...

    15. Re:TrueCrypt by Anonymous Coward · · Score: 0

      TrueCrypt is open source. Do keep up.

    16. Re:TrueCrypt by Ranguvar · · Score: 1

      Not open source.

      The code is available, but under terms of a license so insane that neither the FSF nor the Open Source Initiative (who maintain the definition of 'open source': on their list of approved licenses) consider it free.

      This is also one of the reasons RMS prefers free/libre software -- it avoids this whole "well it's open, but not really" ridiculousness when it comes to insane licensing.

    17. Re:TrueCrypt by mlts · · Score: 1

      What I find ironic is that Google has not included this with Android, as it is the perfect tool for securing data on SD cards.

    18. Re:TrueCrypt by luther349 · · Score: 1

      truecrypt well the consern it may have backdoors but never confermed.

    19. Re:TrueCrypt by Anonymous Coward · · Score: 0

      It is open source, code is available for download and you can make and distribute derivative works or do a code review.

      It does not, however, feature a gpl license or an open development model.

    20. Re:TrueCrypt by Ranguvar · · Score: 2

      The definition of open source is maintained here: http://www.opensource.org/osd.html
      It does not meet the requirements, therefore it is not technically open source.

    21. Re:TrueCrypt by synthespian · · Score: 0

      Geez, moderators, where's your sense of humor ?!
      LMAO at this guy's pun... :_))

      --
      Main difference between the BSD license and the GPL license: one is from California and the other is from Massachusetts
    22. Re:TrueCrypt by synthespian · · Score: 0

      Rather than using some obscure thingo nobody's heard of, made by whats-his-name, I would speculate that the FreeBSD is safer, because they have people who understand crypto.

      Philip Zimmer (of PGP fame) used to say that most people screw up in the implementation part.

      Now, TrueCrypt you can trust, because it was used in a high-profile financial case in Brazil (it was mentioned here in Slashdot) and the Feds from Brazil and the USA (Brazilians asked for help) couldn't get the data out.

      All charges against the banker Daniel Dantas (although this had nothing to do with TrueCrypt).

      http://news.techworld.com/security/3228701/fbi-hackers-fail-to-crack-truecrypt/

      Needs translating:
      http://g1.globo.com/politica/noticia/2010/06/nem-fbi-consegue-decifrar-arquivos-de-daniel-dantas-diz-jornal.html

      --
      Main difference between the BSD license and the GPL license: one is from California and the other is from Massachusetts
    23. Re:TrueCrypt by synthespian · · Score: 1

      Sorry, that was "all charges were dropped"

      --
      Main difference between the BSD license and the GPL license: one is from California and the other is from Massachusetts
    24. Re:TrueCrypt by wallyhall · · Score: 1

      Sorry, Then my post should read: "Yes". :)

      --
      I think therefore I am... a Linux geek.
    25. Re:TrueCrypt by wallyhall · · Score: 1

      Sorry, please excuse my ignorance - (that's expressed honestly, not sarcastically) - I wasn't aware the OP was interested in only GPL? (Or am I missing something ... in which case I apologise profusely!)

      --
      I think therefore I am... a Linux geek.
    26. Re:TrueCrypt by wallyhall · · Score: 1

      Only GPL / only OSS / only RMS whatever. Sorry, not suggesting GPL is the "only" open source!

      --
      I think therefore I am... a Linux geek.
    27. Re:TrueCrypt by wallyhall · · Score: 1

      You've been modded down - I think that's a shame. You've made a discussion point - and been penalised for it.

      What such tools would you suggest? Your last two linked articles don't work for me - could you summarise their content?

      I suggested TrueCrypt because the NHS in the UK use it quite a bit (so I'm informed), for a free product (and one which I believe the source code is available for) it does the job quite nicely IMHO.

      --
      I think therefore I am... a Linux geek.
    28. Re:TrueCrypt by Anonymous Coward · · Score: 0

      I don't give a fuck about what the FSF considers to be free software. The code is available, which means that it can be audited. That's what I'm interested in when dealing with a security product.

      What? That no one external to the project has reviewed the code despite being publicly available? Well, that tells you all you need to know about the Million Eyes Reviewing Source Code myth.

    29. Re:TrueCrypt by koolfy · · Score: 2

      sorry the correct link was : http://en.wikipedia.org/wiki/Comparison_of_disk_encryption_software

      I Usually use LUKS with DM-Crypt, but there are other tools more user-friendly that come with gnome.
      Last day I discovered a gnome applet that manages crypted volumes written on the fly as you modify the mounted folder, that scale with the size of the content of the volume. (Dm-crypt has a defined volume size that you cannot outgrow, and the chiffered file used to mount the volume always has the maximum size it can reach --If I want a 15gB crypted volume, I get a 15gB file, no matter how empty the volume is.)

      I know avoiding TrueCrypt sounds like tinfoil hat paranoia, but if you need te encrypt your data in the first place, maybe this is healthy paranoia.

      --
      Segmentation Fault in "Life, Universe and Everything" at line 42. Don't Panic.
    30. Re:TrueCrypt by tehcyder · · Score: 1

      my important info (mostly pr0n)

      I think your definition of the words important and info must differ radically from mine.

      --
      To have a right to do a thing is not at all the same as to be right in doing it
    31. Re:TrueCrypt by Anonymous Coward · · Score: 0
    32. Re:TrueCrypt by X0563511 · · Score: 1

      Last I checked TC didn't do file or block checksumming the way the posed question is looking for...

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    33. Re:TrueCrypt by X0563511 · · Score: 1

      The question posed is asking about disk integrity specifically. TrueCrypt does not do this.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
    34. Re:TrueCrypt by tkalfigo · · Score: 1

      Or maybe the quality of his pr0n differs radically from yours.

    35. Re:TrueCrypt by Jeremiah+Cornelius · · Score: 1

      From Google's own invasive searchbots.

      --
      "Flyin' in just a sweet place,
      Never been known to fail..."
    36. Re:TrueCrypt by Ranguvar · · Score: 1

      Nobody said all you have to do is make a program's code readable for audits to magically happen.
      TrueCrypt development is done in a closed fashion, with extremely few (any?) patches from outside sources, and a lead team actively hostile towards critique.
      Furthermore, it is extremely difficult to build close-to-identical versions of TrueCrypt due to build system ridiculousness.
      That is more why no audits have taken place.

      Spread your free software FUD elsewhere, that last bit is a fun little straw man...

  4. Without checksumming? by bluefoxlucid · · Score: 1

    What? What do you mean? You mean someone would be retarded enough to write an encryption method that doesn't use ECC or such internally?

    1. Re:Without checksumming? by Anonymous Coward · · Score: 1

      dm-crypt doesn't protect you against someone who is manipulating your hard drive while you're using it. It's intended to protect you after the hard drive is stolen. This is how most full disk encryption software works. It's not really "retarded".

    2. Re:Without checksumming? by gweihir · · Score: 2

      You have no clue about block-oriented storage encryption, obviously. There is no space for checksums and the task is done on a lower layer (the disk) and can be done on filesystem layer. Doing it on block layer in addition to the encryption breaks block alignment.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  5. Just use a by Anonymous Coward · · Score: 0

    Just use a one-time pad.

    1. Re:Just use a by TheSpoom · · Score: 1

      Absolutely. Just take an extra hard drive with the pad on it whenever you need to access your data...

      --
      It's better to vote for what you want and not get it than to vote for what you don't want and get it.
      - E. Debs
    2. Re:Just use a by Anonymous Coward · · Score: 0

      Ah, hearing that reminds me of Telenet and Phrack/2600. Now get off my lawn!

    3. Re:Just use a by X0563511 · · Score: 1

      ... and how does this let you detect or correct corruption?

      Jesus people, at least read the whole question.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  6. Why is FreeBSD not for you? by Anonymous Coward · · Score: 0

    Since I've been using FreeBSD for a decade now and I like geli very much, it's not very interesting for me what Linux alternatives there are. But one thing is interesting... why did you decide that (Free)BSD is nothing for you?

    1. Re:Why is FreeBSD not for you? by hedwards · · Score: 1

      Probably the same reason why Linux is my main OS right now rather than FreeBSD, there's a few specific applications which I haven't been able to get running on FreeBSD, which work fine on Linux. Most applications can be made to work on FreeBSD if they work on Linux, but a few like Truecrypt won't.

    2. Re:Why is FreeBSD not for you? by utkonos · · Score: 1

      How is it that you didn't get TrueCrypt working? The current version is in the ports collection and works fine for me: http://www.freebsd.org/cgi/url.cgi?ports/security/truecrypt/pkg-descr

    3. Re:Why is FreeBSD not for you? by webmistressrachel · · Score: 1

      Hmmm, I believe you just bit a very common troll, how does it taste?

      Surely you've seen the "BSD doesn't support xyz" (where BSD clearly does support xyz) troll before? The other one we see a lot here is the "Netcraft confirms it... BSD is dying". That one never gets replies, though.

      Your comment is informative, however.

      --
      This tagline was transcoded to result in at least one smirk. If you experience failure to smirk, please consult your Gen
    4. Re:Why is FreeBSD not for you? by Anonymous Coward · · Score: 0

      Wow, that's one of the worst comebacks from a freetard of all time.

  7. Wikipedia ftw by Anonymous Coward · · Score: 0

    Linux Disk Encryption Comparison

    Nevermind that this has been covered many times before.

  8. Re:CNET (of all places) Review by Jeremiah+Cornelius · · Score: 0

    I saw that episode. Archie can't choose between Betty and Veronica.

    --
    "Flyin' in just a sweet place,
    Never been known to fail..."
  9. TrueCrypt by wallyhall · · Score: 1

    TrueCrypt.
    Nuff said.
    http://www.truecrypt.org/

    --
    I think therefore I am... a Linux geek.
  10. Just trolling by bigredradio · · Score: 0

    I have been using Gentoo Linux for a long time now

    No takers?

    1. Re:Just trolling by Anonymous Coward · · Score: 0

      I have been using Gentoo Linux for a long time now

      No takers?

      Being a Gentoo user myself, I'm surprised at the lack of "LOLricerGTFO" comments. Maybe they're stuck in rush hour and we just have to wait a little longer?

    2. Re:Just trolling by Verteiron · · Score: 5, Funny

      ... and I just finished compiling Firefox so I could submit this story to Slashdot!

      *crickets* .. gee, tough crowd.

      --
      End of lesson. You may press the button.
    3. Re:Just trolling by Wingman+5 · · Score: 5, Funny
      My personal favorite gentoo quote:

      <@insomni> it only takes three commands to install Gentoo
      <@insomnia> cfdisk /dev/hda && mkfs.xfs /dev/hda1 && mount /dev/hda1 /mnt/gentoo/ && chroot /mnt/gentoo/ && env-update && . /etc/profile && emerge sync && cd /usr/portage && scripts/bootsrap.sh && emerge system && emerge vim && vi /etc/fstab && emerge gentoo-dev-sources && cd /usr/src/linux && make menuconfig && make install modules_install && emerge gnome mozilla-firefox openoffice && emerge grub && cp /boot/grub/grub.conf.sample /boot/grub/grub.conf && vi /boot/grub/grub.conf && grub && init 6
      <@insomnia> that's the first one

    4. Re:Just trolling by Anonymous Coward · · Score: 0

      Oh what sad times are these when /. posters don't even bother to make a simple Ricer comment to admitted Gentoo users anymore. What has become of this site, once so proud and lively? It now stands rigid, unmoving, possibly covered in hot grits.

    5. Re:Just trolling by greg1104 · · Score: 3, Insightful

      Gentoo recently postponed using GNOME3 because it seemed like a "work in progress". Meanwhile, Fedora has shipped it, Ubuntu is now on the even less mature Ubiquity, and CentOS can't even get a modern release shipped out the door at all. Gentoo is looking like a stable Linux aimed at old geezers nowadays.

    6. Re:Just trolling by Anonymous Coward · · Score: 0

      I'm surprised at the lack of "LOLricerGTFO" comments

      Obviously they didn't recompile their browser with -funroll-loops, so it's taking them a few extra cycles to get here.

    7. Re:Just trolling by Anonymous Coward · · Score: 1

      My personal favorite gentoo quote:

      <@insomni> it only takes three commands to install Gentoo

      <@insomnia> cfdisk /dev/hda && mkfs.xfs /dev/hda1 && mount /dev/hda1 /mnt/gentoo/ && chroot /mnt/gentoo/ && env-update && . /etc/profile && emerge sync && cd /usr/portage && scripts/bootsrap.sh && emerge system && emerge vim && vi /etc/fstab && emerge gentoo-dev-sources && cd /usr/src/linux && make menuconfig && make install modules_install && emerge gnome mozilla-firefox openoffice && emerge grub && cp /boot/grub/grub.conf.sample /boot/grub/grub.conf && vi /boot/grub/grub.conf && grub && init 6

      <@insomnia> that's the first one

      Ehh.... not to rain on the joke, but there's nothing in partition /dev/hda1 after mkfsing it. Why so quick to chroot into it? It's missing the stage3 download!

    8. Re:Just trolling by Lanteran · · Score: 1

      Unity, not ubiquity. And I really hope it does not become such...

      --
      "People don't want to learn linux" hasn't been a valid excuse since '03.
    9. Re:Just trolling by WuphonsReach · · Score: 1

      Which is at least an improvement over the old process... (although emerge'ing firefox that early is a bit of overkill and makes the whole thing fake).

      --
      Wolde you bothe eate your cake, and have your cake?
    10. Re:Just trolling by NateTech · · Score: 1

      Or Linux desktops still just look like the metric ass-load of crap they've all been since Enlightenment.

      --
      +++OK ATH
    11. Re:Just trolling by NateTech · · Score: 1

      U-fucked-Up is the next Linux desktop project, I hear.

      I love Linux. I hate Linux desktops.

      --
      +++OK ATH
    12. Re:Just trolling by NateTech · · Score: 1

      They're all waiting for a broken Firefox emerge bug to be fixed.

      --
      +++OK ATH
    13. Re:Just trolling by Bert64 · · Score: 1

      The beauty of Gentoo is that you can mix and match...
      There is a gnome3 overlay if you want it.

      I like being able to have control over the system, so i can mix and match package versions at will... With most binary distros its an all or nothing upgrade - if you want new gnome3, you also need to take new x11, new glibc, new gcc etc.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    14. Re:Just trolling by Anrego · · Score: 1

      Also didn't mount/bind the proc or dev file systems.

      And what the hell @ installing _gnome_ before grub!

    15. Re:Just trolling by myyaxian · · Score: 1

      tiffany is good

  11. Re:http://zfsonlinux.org/ by bigredradio · · Score: 1
    From the zfsonlinux.org site:

    Please keep in mind the current 0.5.2 stable release does not yet support a mountable filesystem.

    And considering that btrfs was not stable enough for the author, I don't think that is an option either.

  12. TPM, please? by mlts · · Score: 1, Interesting

    It would be nice to have a TPM based authentication system as an option. This way, a Linux server can grab a memory image, have the hash of that passed to the TPM, and if unchanged, the boot process continues.

    Add a PIN to the process, and the TPM will start denying access after a certain amount of missed tries, so brute forcing a filesystem key isn't going to happen.

    This way, someone pulling disks, or booting the server from other media will be unable to decrypt the machine.

    Essentially, BitLocker functionality (which admittedly is very good)

    1. Re:TPM, please? by df5ea · · Score: 1

      Yeah, using the TPM would be great. Using a pin instead of a passphrase at most startups would be much less cumbersome.

      Obviously you would still need a backup passphrase when you change your motherboard or exhaust the maximum numer of pin tries.

      --
      echo -n blabla | md5sum | cut -b 1-5
    2. Re:TPM, please? by Anonymous Coward · · Score: 0

      I thought about this. A lot.
      And without full hardware support for it, in every component, from the keyboard, over everything on the motherboard and the hard disk, to all devices on all buses and even your display, it's pointless. As even a single non-secure (= non-checked) point will cause it all to fall apart.

      And that includes EM shielding on a level that doesn't allow reading your keyboard/display from up to 10m away. (I've seed in live.)

      Which all assumes nobody gets into the room in the first place.

      And if you think you got the perfect system, there's always that last factor: You. Versus that large steel pipe against your head. If you know what I mean. Or just versus a social engineer you think is a nice girl that needs your help. (Disclaimer: The last thing is my job. Ok, I'm not the girl, but I work with the girl. [Don't worry, I do it for good causes.])

    3. Re:TPM, please? by Cato · · Score: 2

      You will probably get your wish, as there are people working on a secure boot using UEFI (modern replacement for BIOS) and the sort of cryptographic integrity validation you are talking about: https://lwn.net/Articles/447381/ (subscription required, but free from 23 Jun 2011)

      This can be used for good (if you own your own keys, you can compile and install your own kernel etc) or bad (if the hardware vendor or OS vendor owns the keys, you have no way to install anything else, i.e. you have a Tivoized system).

      Be careful what you wish for... There's a good chance that in a few years' time, new PCs that come with Windows will make it cryptographically impossible to install a new OS. Only if the UEFI allows you to disable this secure boot feature will you be able to do anything beyond Windows.

      Linux IMA (Integrity Measurement Architecture) is a separate project, in kernel 2.6.30+, that does similar things within Linux based on TPM: http://linux-ima.sourceforge.net/ - again, the ownership of the keys is critical.

  13. Re:TPM - no thank you by Anonymous Coward · · Score: 0

    Makes it very hard to replace a motherboard when one dies. All the encrypted disks are useless.

  14. Re:TPM - no thank you by mlts · · Score: 1

    That is you have a recovery password or keyfile saved off on a USB flash drive. Same procedure with BitLocker.

    The TPM is an advantage, an option in addition to the usual typed in passphrase. I wish other operating systems would take advantage of it, and not just Windows, because it brings with it some good security functionality.

  15. Re:TPM - no thank you by Anonymous Coward · · Score: 0

    TPM enables treacherous computing. No thanks.

  16. Re:http://zfsonlinux.org/ by boristhespider · · Score: 1

    Yes but some people are too busy to read the summary! Have a heart.

  17. cryptsetup + BTRFS by Anonymous Coward · · Score: 0

    BTRFS does check-summing on all data and has automatic data scrubbing. It can also do a RAID-1 of sorts with one hard drive, storing all data twice on the same disk. If it sees a checksum error, it will re-duplicate the good copy. Or you could use two hard drives using BTRFS RAID support.

  18. Lazy-man's encryption by atari2600a · · Score: 1

    I've been using the eCryptFS built into Ubuntu & touching /fsckcheck in either a recovery or single-user shell every time power gets cut but I'm sure you want something a bit more fancy...

  19. Frendly Help from epSos.de by Anonymous Coward · · Score: 0

    Have a Look at :
    http://en.wikipedia.org/wiki/Comparison_of_disk_encryption_software

    3 possible options:

    Encrypt an SD card.
    Encrypt a 7z archive.
    Encrypt a virtual folder with EncFS.

    Archives are better for backups that are not changing.
    EncFS Virtual folders are good for daily use (loss of data happened to some people).
    SD cards are good for monthly backups.

  20. Just use FreeBSD by ZorkZero · · Score: 1

    Linux users growing frustrated at the increasingly superior feature set of FreeBSD can take heart that FreeBSD is also open source, and runs all of your favorite software. The adjustment necessary is roughly that of moving from one Linux distribution to another.

  21. Re:TPM - no thank you by mlts · · Score: 1

    In the past, this might have been an issue, but virtually every x86 server and server motherboard out there comes with a TPM present, but disabled and unowned.

    Yes, it can be used for DRM, but since the functionality is there, might as well use it for good, and to ensure that a machine hasn't been tampered with, and that the MBR is intact.

    Another use for it is a secure keystore for public/private keypairs. For example for code signing, you copy a public/private keypair into it (keeping a backup in a secure, offline place), and if someone compromised the box, they can sign stuff, but do not have access to the keypairs.

  22. OpenPGP by DERoss · · Score: 1

    Why not PGP (free for non-commercial use) or Gnu Privacy Guard (GPG, free). Both use the OpenPGP method and are interoperable with each other. While neither is open source, the source code for both are supposed to be available to anyone who wants to check the integrity of either application (e.g., lack of back doors).

    1. Re:OpenPGP by Anonymous Coward · · Score: 0

      I'm confused - did you intend to say that GPG is not open source, or am I misreading your post? According to the website, it's Free Software released under the GPL.

  23. Debian kfreebsd by GPLHost-Thomas · · Score: 1

    If you liked FreeBSD, the kernel, but didn't like the userland, why don't you take the good of both worlds, and install Debian kfreebsd, which is Debian, but running the FreeBSD kernel?

  24. University of Wisconsin - Madison by fnj · · Score: 1

    This looks like a project to address adding checksums in the md(4) Multiple Device layer (not ideally named, because MD is perfectly usable on a single drive). Because MD is a layer under the filesystem, any filesystem is supported. They only support RAID4C (checksumming RAID4) and RAID5C (checksumming RAID5), though they show how to implement it on a single volume, albeit with a large performance penalty.

    There is an excellent paper which analyzes the integrity issue you are trying to address.

    I wish this would get into linux kernel mainstream.

  25. "when will btrfs be ready?" by bill_mcgonigle · · Score: 1

    That's how I interpret the question. Soon, by this fall, most likely.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  26. Use VDMFEC or other FEC for ECC by RowboatRobot · · Score: 1

    What? What do you mean? You mean someone would be retarded enough to write an encryption method that doesn't use ECC or such internally?

    Most encryption algorithms, whether implemented on a file or real-time on a disc, are not primarily concerned with ECC. Plenty use hashes, but not for the purpose of correcting errors caused by disk corruption. There are even less of the kind the author is looking for (real-time total disc encryption with ECC seamlessly integrated). It's not my speciality so I don't know of them

    But if we're talking about sending and receiving data from long-term storage (rather than real time), that is easily attainable if you separate the encryption and error detection tasks. For error detection, and just as important, being able to fix those errors when they happen (two separate things) the term you're looking for is Forward Error Correction (FEC) software. If you're serious about backing up your data, and it still being around and undamaged in a few years, you should be serious about FEC. It amazes me how many enterprise-level companies frequently back up millions of files, but have no strategy for ECC.

    Using vdmfec (my favorite FEC software. For linux), say you have a file that is 1gb that you'd back up with it (Large archive files are especially important to use forward error correction on, because plenty of them, if they get data corruption in the wrong place, get totally screwed up.) So, let's say with vdmfec you select the blocksize to be 5 kb, and then you select two positive whole number parameters, K and N. For every original K blocks, N blocks are written so that if up to N-K fail, you can still recover all original K blocks.

    In plain english, if I set a K value of 10 and an N value of 30, then the first 50kb of the file would be transformed into 150kb. There could be quite a few bits accidentally flipped in that 100kb over time, but as long as any 10 of the 30 blocks did not suffer any damage, that set of blocks would be entirely fine. You can pass different K and N arguments according to your needs (reliability v. size) for a reasonably reliable disc over the short term, K=15 and N=20 would do just fine.

    For encryption, use whatever you'd like, total disk encryption, folder encryption etc. One concern is that if you use any error detection or correction, it establishes a reliable data pattern which can be used to break the encryption. This concern can be solved by encrypting before applying error correction instead of after, or using encryption of sufficient bitstrength so that it will take another several decades for the hardware to be developed to crack it.

    1. Re:Use VDMFEC or other FEC for ECC by bluefoxlucid · · Score: 1

      Actually I was thinking of Hamming-encoding post-encryption such that damage to one part didn't destroy the whole block...

  27. ZFS by Grogdor · · Score: 1

    Stick with FreeBSD and use ZFS. It includes filesystem-level checksumming, deduplication (just rolled into STABLE) and encryption (still in CURRENT) http://en.wikipedia.org/wiki/ZFS http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/filesystems-zfs.html

  28. Messes up alignment by gweihir · · Score: 1

    The checksums need storage space. So you either have to reduce usable block size or use extra sectors. Both options mean you lose the 1:1 block mapping that both dm-crypt and LUKS (the latter with an offset) provide. This can cause all sorts of problems, unless the file-system layer is also optimized for it and therefore dm-crypt and LUKS delegate any such checking in addition to what the disks themselves already do to the file-system layer.

    But the second thing is this: You have to basically trust your disk anyways. You can also trust your disk in most cases, as the rate for an unrecognized read error is basically low enough that these will not happen in practice, unless the disk is seriously damaged (e.g. defective buffer RAM). So unless you use extremely large amounts of storage (say, > 500 disks) and extremely high integrity needs, I would suggest you are barking up the wrong tree and want something here that you do not in fact need.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
    1. Re:Messes up alignment by dutchwhizzman · · Score: 2

      Not if you store the sum in another block. Look at how ZFS does it, very sweet because data stays data and the metadata contains the checksum. I could copy and paste the details here, but you could find those by yourself.

      You should never trust your disk. The amount of unrecognized single sector failures on modern disks is so big, that with a >90% probability, at any given moment, a stripe/raid with four 2TB disks will contain at least one of them. All professional grade storage systems have disc scrubbing and checksumming in place just because of this.

      The extreme large amounts of storage you are talking about was valid when disks were 4GB. Modern discs have the same error rate as then, per byte stored. All you do is have these 500 4GB discs consolidated on a single disk of 2TB. Same amount of sectors that can get broken, same actual amount of broken sectors.

      --
      I was promised a flying car. Where is my flying car?
    2. Re:Messes up alignment by Anonymous Coward · · Score: 0

      The error rate of a disk read depends on the data density on the platter and the platter quality. If you compare an old 4GB disk to a new 2TB disk, and they have the same number of platters, and same platter defect rate per unit area, then the read errors per unit data on the 2TB disk will be approximately 500 times LOWER than that of the 4GB disk.

    3. Re:Messes up alignment by gweihir · · Score: 1

      What ZFS does is perfectly fine. But dm-crypt and LUKS is a block-level crypto mapper, there this is about the worst thing you could do.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted by this and ignored otherwise.
  29. ZFS encryption by Cato · · Score: 2

    ZFS has very good per-block checksumming and many other features, and now has encryption support, which should be in OpenIndiana (the non-Oracle fork of OpenSolaris): http://milek.blogspot.com/2010/10/zfs-encryption.html. ZFS is a combination of volume manager (like LVM), software RAID and filesystem. Here's a useful HOWTO on setup: http://hardforum.com/showthread.php?t=1573272

    Unfortunately ZFS support in Linux is userland only due to licensing issues. It may not have encryption yet either - however you could run TrueCrypt on top of a ZFS volume (like an LVM logical volume), bypassing the ZFS filesystem part.

    1. Re:ZFS encryption by Anonymous Coward · · Score: 0

      Not any more. ZFS runs in kernel now, see http://zfsonlinux.org/. Give it a try, it looks quite stable and usable to me on Scientific Linux 6. I can watch a movie on XBMC while scrubbing 1TB mirror volume on a 4 year old box.

    2. Re:ZFS encryption by Mysticalfruit · · Score: 1

      Actually there are naive in kernel ZFS modules. There was a bunch of work done by the Lawrence Livermore National Laboratory to do a clean port. Currently the vdev layer is totally solid. Their using that as back end block storage for a lustre filesystem. However the guy who did the port has also released the posix layer as well.

      So, I can't speak to the licensing issues, but there is native ZFS support. Granted it's got a ways to go to be completely stable (from the posix layer level) but the vdev stuff works great.

      http://zfsonlinux.org/

      --
      Yes Francis, the world has gone crazy.
    3. Re:ZFS encryption by Cato · · Score: 1

      I was aware of this, but mountable filesystems are still only in a release candidate so it's some way from being usable. Also you do need to compile it yourself due to legal issues if it's distributed with Linux: http://zfsonlinux.org/faq.html#WhatAboutTheLicensingIssue

  30. Hey OP by Anonymous Coward · · Score: 0

    U geli?

  31. SHA is a Hash, not a Checksum by Anonymous Coward · · Score: 0

    Just wanted to mention that...

  32. FreeBSD by SirDice · · Score: 1

    May I ask what made you conclude FreeBSD wasn't for you?

    1. Re:FreeBSD by Anonymous Coward · · Score: 0

      This is because of two reasons. First, FreeBSD compiles ports as root and I need to compile untrusted software (games) for low privileged users to use. Second, I want/need my systems to run on a wide variety of ARM targets, and FreeBSD does not support those yet.

    2. Re:FreeBSD by SirDice · · Score: 1

      Ports do not need to be compiled as root. But you do need to set WRKDIRPREFIX to somewhere the user can write. Ports will be build in this directory. By default the port system will use a subdirectory in the port itself, which indeed can't be written to by a normal user. It's all pretty well documented in the ports(7) manpage. As for the second, nothing I can do about that. ARM is still a Tier2 supported architecture :(

  33. Do it the other way around by Anonymous Coward · · Score: 0

    It makes more sense to run ZFS ontop of an encryption solution (TrueCrypt, LUKS, whatever you like) to have the fun parts of ZFS available (filesystems, snapshots, compression, dedup).

  34. tiffany by Anonymous Coward · · Score: 0

    tiffany hahaqhahahahahahahahhaahaaa

  35. I was wrong by Anonymous Coward · · Score: 0

    FreeBSD's geli does not provide authentication because it is vulnerable to replay attacks. Although it is written in the man page, I ignored it because "replay attack" was not clear enough for me. Thus, the only real solution is use a filesystem like Btrfs since it builds a tree of hashes. The stability of Btrfs given the disk is not trusted is questionable and its hash function is weak (crc32). However, I will go with it hoping the underlying block cipher strengthens the crc32.

  36. Anyone WHITE or JEWISH here? by Anonymous Coward · · Score: 0

    Jeremiah Cornelius is talking to you http://slashdot.org/comments.pl?sid=2245866&cid=36480118

  37. Context is *all* by Mathinker · · Score: 1

    Thanks for reminding us that many things can be misrepresented if taken without regard to their context.

  38. checksums by Anonymous Coward · · Score: 0

    Why build something that not use checksums. It doesn't make sense. Eric Http://rotterdamescortservice.com, Rotterdam Escort