Can I set up a password-dependent partition as seen in "Little Brother"?

3

1

I was just reading Little Brother (the Cory Doctorow book) and I thought about how awesome it would be if, on startup, a computer asked for a password. Depending on the password, it could open different partitions.

Say I was captured by someone and I had my computer - they could demand the password, and I'd give the innocuous one that unlocks the non-sensitive partition. Is this possible?

tekknolagi

Posted 2011-10-23T17:51:26.367

Reputation: 1 130

linked: http://superuser.com/questions/72164/panic-password-on-linux

– tekknolagi – 2011-10-23T17:59:18.787

except it wasn't fully answered – tekknolagi – 2011-10-23T18:00:07.850

Answers

3

TrueCrypt supports adding a single "hidden volume" to an encrypted container or partition. It can include a hidden operating system as well. (The secret data should be located in the hidden volume.)

If your system uses LUKS, you could modify the initramfs to conditionally unlock multiple partitions, but this is less secure as anyone can extract the unlock script.

user1686

Posted 2011-10-23T17:51:26.367

Reputation: 283 655

would this function like it did in Little Brother? – tekknolagi – 2011-10-23T18:28:03.810

1@tekknolagi: Yes. – user1686 – 2011-10-23T18:30:59.497

Just coming back on this - MAN THIS IS FABULOUS. – tekknolagi – 2012-02-24T04:13:28.337