Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Ubuntu 12, and during installation I have chosen to encrypt the disk and home directory.

I only introduce the disk password the first time I log in, so I guess the disk is not encrypted when I lock the screen.

But what about home directory? Is it encrypted while the screen is locked?

I'm thinking that when I'm running this inside a VM (with its screen locked), someone with access to the host machine (not the VM) could access the VM's disk because it's just a file in the host machine, right? And since the VM is running, it's not encrypted, and the attacker doesn't even need to unlock the screen.

So then I thought, what would happen if I were running this as a host (not a VM), with the screen locked, and someone unplugged the disk? Would it stay unencrypted? That way the attacker doesn't even need to scan the ram looking for the key.

share|improve this question
1… – Zoredache May 25 '12 at 6:34
@Zoredache Wow this sucks =( . Seems like hackers are always one step ahead – HappyDeveloper May 25 '12 at 14:32
up vote 2 down vote accepted

While the contents of the disk are encrypted, the operating system is decrypting the content of the disk on the fly in order to access it. The screen lock does little to protect the contents of the disk while the computer is running.

All the screen lock does is prevent someone from running programs / reading your screen while you're away. As long as the computer is running and the encrypted disk mounted, your data is vulnerable. Granted most thieves would just shut the machine off / reboot it once they had it.

However, if you're paranoid about your data, the inconvenience of powering down/powering up every time you walk away for a while is a small price to pay IMHO.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .