Technology Review - Published By MIT
Log in to My.TechnologyReview.com | Register
Advertisement
 

A commonsense take on computer security, usability and why IT does matter.

View Complete Bio
Add RSS Feed XML

Preventing Data Loss with FileVault

Sometimes the price of protecting data is losing it.
Tuesday, May 01, 2007

FileVault is Apple's encrypted file system. I use it on my laptop to prevent me from having one of those "data-loss incidents" in the event that my laptop gets lost or stolen.

FileVault is pretty cool. It keeps all your files in a single big "virtual disk" file. Whenever data is written into the virtual disk, the data is encrypted; when the data is read back, it's decrypted. All this encryption and decryption is done transparently. And the disk is automatically mounted when you log into the Mac, with the encryption key being protected with your log-in password. All in all, it's pretty slick.

But FileVault has also caused me to lose data--and on more than one occasion. Usually the data loss happens when my battery dies on a long flight. My MacBook is pretty good about shutting down before the battery dies, but a battery can go out of calibration. When that happens, sometimes the Mac just loses power. When this has happened to me in the past while I was saving a file, I've lost the entire directory where the file was being saved. Now that's annoying.

The other failure mode that I've seen with FileVault, one that's far more troubling, happened to me on Sunday night. My computer got real slow, the disk kept spinning, and eventually I had to power it off. When I turned it back on, I discovered that every file that had been written over the past 10 to 20 minutes was filled with corrupt data.

I keep excellent backups, so this wasn't the horrible problem that it could have been. Yes, it did take me eight hours to reconstruct all the data on my laptop, but I was sleeping for most of that time. It was the laptop that was doing the work, slowly copying the data from one of my backups back to the laptop.

Periodically wiping out your laptop has another advantage, of course: it lets you pinpoint the problems in your backup system.

Frankly, I always treat my laptop as if it is on borrowed time. Between drops, theft, and buggy software, data that's on a laptop is always living on borrowed time. If you aren't constantly backing up your laptop whenever you have an Internet connection, you're making a mistake.

Comments

  • That's why you use Windows
    Buckwheat469 on 05/01/2007 at 4:54 PM
    Posts:
    32
    Avg Rating:
    4/5
    Operating System arguments aside, I would like to point out some bad and good aspects of using this huge encrypted file instead of using a traditional file system with individual data points.

    A single file is great in terms of backups and migrations because it ensures that if you copy the entire file then you've backed up everything. Also, if you copy the file to another computer with the right configuration and a little tweaking then you can make that computer run your old OS (in case your hardware crashes). Security is also improved because it only requires a single broker, but if that broker is broke than it can be broker than having multiple brokers.

    The downsides to the argument are that if the file is corrupt or cannot be mounted because the headers are corrupt then the entire disk is lost. I know that there are probably programs to help in this case, but let's assume that we are the average user which doesn't know about those programs. Also, if a single file is corrupt in the disk file when it is written then it could cascade to other files and wipe out 20 minutes worth of data. This is more than likely a problem with the FileVault program in that it buffers a certain number of bytes and cannot write those bytes if the disk fails.

    FileVault may be a great program in desktop Macs, but I don't think it was really designed to be used in Laptops. The programming required to make it run without fault on Laptops would be quite complex and I think Apple just didn't think these problems would come up because they probably figured that the OS would take care of the problem.

    I'm sure I'll get a bunch of comments about the subject line, but remember that all OS's are different, each has their own problems, and none are perfect. Use whatever OS fits your needs, not what one is the coolest and most trendy.
    Rate this comment: 12345
    • Re: That's why you use...
      brunascle on 05/02/2007 at 12:37 PM
      Technology Review TR Staff
      Web Developer
      Posts:
      70
      Avg Rating:
      4/5
      but that's a problem specific to encryption, not to filesystem-in-a-single-file. with any encrypted data, if part of it is corrupt there's a good chance the entire thing is unusable.

      with any type of filesystem, if the headers are corrupt you're not going to be able to mount it or access it in the normal fashion. that's happen to me twice (with windows, i might add, NTFS partitions) in the past year or two. the partition table got corrupted, so i couldnt boot it. i still managed to get the data off of it, since it's still there just unmountable, but most people would be screwed if this happened.
      Rate this comment: 12345
  • Suggestions for online backup?
    x509v3 on 05/02/2007 at 12:22 PM
    Posts:
    1
    I like the idea of your machine quietly "sipping" bandwidth whenever you're on the Internet to constantly keep a backup current.

    Do you have any suggestions on how to do this?  Apple's .mac solution is like most other backup software: too intrusive.  Rsync sounds close, but I haven't yet found a solution that's easy enough to put on my wife's or parents computer and forget about it.

    What do you use to keep your backups current?
    Rate this comment: 12345
    • Re: Suggestions for online backup?
      gregorius on 05/06/2007 at 7:05 AM
      Posts:
      1
      I've just started using an awesome backup solution called Mozy.  Its run by General Electric in the US, has an excellent software client (the Windows one is much better than the mac one, but i'm sure they'll improve the Mac one, and still its very good)...

      it encrypts your data on the server using either a shared key or your own private key, its free for up to 2GB (more if you refer people - extra 256mb per referral - for both referrer and referree), and if you want to backup alot of data, its only US$4.95 per month for unlimited storage and retrieval. 

      Add to this automatic incremental backups in the background (all the time, or when your computer is idle), and the ability to restore files back to any previous version, and you have an all round killer backup service. 

      Check it out at https://mozy.com/?code=Y66GLH .  Use my code if you want the extra 256mb.  or not if you dont - i dont really mind. 

      i must say i'm much more at ease knowing my laptop data is constantly being backed up and kept secure on an offsite machine. 
      Rate this comment: 12345
  • Encryption over rated and dangerous
    dredman on 05/30/2007 at 11:05 AM
    Posts:
    1
    I believe people feel that must encrypt because everyone is doing it.  But for most people, encryption has many risks.  When it comes to passwords and phrases, you always have your IT guy, or admin to back you up and reset your password when it is lost.  With encryption, this is your data, not   a silly yahoo account.  Lose/forget your password with the right encryption, and you can kiss your stuff goodbye.  Why is this never talked about?

    -Don
    http://vdata.org/
    Rate this comment: 12345
  • http://intasys.com/keys/pinacle-studio-software.php
    Frida on 08/29/2007 at 1:15 AM
    Posts:
    5
    well, I can't complain about FileVault. It definitely has some faults but it's better than nothing, right?)
    Rate this comment: 12345

Video

Intensifying the Sun Jon Mapel, cofounder of Covalent Solar, explains how the solar-power company got its start and how its technology works.
35 Innovators under 35 Tesla Roadster* Mitch Kapor How Obama Really Did It Digging a Smarter Crowd
35 Innovators under 35
Tesla Roadster*
Mitch Kapor
How Obama Really Did It
Digging a Smarter Crowd
 
 
35 Innovators under 35
Advertisement

Current Issue

Technology Review September/October 2008
How Obama Really Did It
Social technology helped bring him to the brink of the presidency.
•  Subscribe
Save 41%
•  Table of Contents
•  MIT News

Magazine Services

Career Resources

MIT Technology Insider

Stories and breaking news from inside MIT about the latest research, innovations, and startups--in a convenient monthly e-newsletter. Subscribe today

Follow us on Twitter

Twitter

Get Technology Review updates via the web, cellphone, or Instant Messager – Follow techreview on Twitter!

Advertisement
Advertisement
Advertisement
Advertisement
Advertisement
MIT Massachusetts Institute of Technology