Laptop encryption — the ideal and the real
|
|
|
Comments (6)
So can I:
a) back up /home
b) Boot, perhaps from a live CD, and create a new, encrypted home, either LVM or other kind of partition
c) change fstab to point to the new /home
d) do same for /swap
e) all done
??
I guess my main question is: can an LVM volume exist in the midst of the rest of my non-LVM partitions?
a) back up /home
b) Boot, perhaps from a live CD, and create a new, encrypted home, either LVM or other kind of partition
c) change fstab to point to the new /home
d) do same for /swap
e) all done
??
I guess my main question is: can an LVM volume exist in the midst of the rest of my non-LVM partitions?
On my laptop, I made a luks encrypted partition that is mounted as my home dir when I log in if I have my flash drive connected.
So if I login without the flash drive, I get a normal (lite) home.
If I login with the flash drive, I get my full encrypted home.
Encrypting laptops is a wonderful exercise.
Some day I may do it myself. :^)
I've seen many variations, some quite interesting. The USB drive seems most interesting in its application.
I'd like to have a USB to boot, which would then allow access to the encrypted HD. Of course, once running, make it so the thumb drive can be removed while the machine is running. Otherwise it could get real obvious, or even just the mistake of leaving the USB plugged in.
If the machine was booted without the USB, a real live system would boot, but without access to the encrypted partitions. There is no password that will work to decrypt it, maybe the correct encryption routines aren't compiled in, a nice little red-herring for someone malicious who gets the machine.
Then, after booting from the USB drive, how about a background process that would scan the unencrypted boot partition against a known good set of files or hashes, to see if anyone has been putting password scanners or other hacked stuff into what they think is the boot system while you weren't looking? Honeypot boot partition!
Some day I may do it myself. :^)
I've seen many variations, some quite interesting. The USB drive seems most interesting in its application.
I'd like to have a USB to boot, which would then allow access to the encrypted HD. Of course, once running, make it so the thumb drive can be removed while the machine is running. Otherwise it could get real obvious, or even just the mistake of leaving the USB plugged in.
If the machine was booted without the USB, a real live system would boot, but without access to the encrypted partitions. There is no password that will work to decrypt it, maybe the correct encryption routines aren't compiled in, a nice little red-herring for someone malicious who gets the machine.
Then, after booting from the USB drive, how about a background process that would scan the unencrypted boot partition against a known good set of files or hashes, to see if anyone has been putting password scanners or other hacked stuff into what they think is the boot system while you weren't looking? Honeypot boot partition!
@Steven
That indeed would be one way to do it (and is one of the cleanest ways). The key 'trick' is to ensure that none of the data on /home that you want to move it in use. In other words you can't login with your usual account and run the required commands with sudo.
If I recall correctly the default live cd doesn't include nfs support, at least the 8.10 version didn't. However, can install the required software onto the live-cd environment and use it as normal.
As for having an lvm between normal partitions that's possible too, it can be setup on both an entire hdd or a partition.
That indeed would be one way to do it (and is one of the cleanest ways). The key 'trick' is to ensure that none of the data on /home that you want to move it in use. In other words you can't login with your usual account and run the required commands with sudo.
If I recall correctly the default live cd doesn't include nfs support, at least the 8.10 version didn't. However, can install the required software onto the live-cd environment and use it as normal.
As for having an lvm between normal partitions that's possible too, it can be setup on both an entire hdd or a partition.
Saving /etc is probably a good idea, too.
Post a comment
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help
Sign up and post (it is free) or Log in and post

You can create a list of installed apps with dpkg:
dpkg --get-selections > installed-debs
pulling everything back in is done with the '--set-selections' option.
If all you want to is encrypt the /home volume why not just create a new encrypted lvm volume rather than a full reinstall? Simply copy/move everything from the original /home there and then tweak /etc/fstab to point to the new /home. Ubuntu makes this a bit tricky as theres no root account by default so youll either have to make on or 'sudo -i' on a console to pull it off.
hth,
ABCC