Results 1 to 4 of 4

Thread: How to encrypt the system with LVM _after_ the installation?

  1. #1
    Join Date
    Jun 2009
    Beans
    132
    Distro
    Ubuntu 9.10 Karmic Koala

    Question How to encrypt the system with LVM _after_ the installation?

    With the Ubuntu/Kubuntu alternate install CD, you can very easily encrypt the whole system during install by encrypting an LVM partition.

    But what if you install or you already have an unencrypted LVM setup that you want to encrypt to encrypt the system with preboot authorization? Are there any manuals or walk troughs for doing this? Or do anyone in here know how to?

    Thanks in advance!

  2. #2
    Join Date
    Sep 2005
    Location
    Edinburgh, UK
    Beans
    409
    Distro
    Ubuntu Development Release

    Re: How to encrypt the system with LVM _after_ the installation?

    You're going to struggle to encrypt a system after installation. You need a small unencrypted boot partition, then the rest of your disk is set up with a single encrypted parition, upon which you put LVM and create the various partitions you need (root, home and swap for example) according the sizes you prefer.

    You can use this howto to add a Private directory to your existing install :
    http://tombuntu.com/index.php/2008/0...with-ecryptfs/

    But in my opinion, you'd be better of with Truecrypt - it has a pretty and effective GUI and the data file it creates can subsequently be stuck on a disk and used on Macs or Windows devices. Pretty slick.

    If you really need the full disk encryption, I think you're snookered.
    Revera linguam latinam vix cognovi

  3. #3
    Join Date
    Jun 2009
    Beans
    132
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How to encrypt the system with LVM _after_ the installation?

    Quote Originally Posted by scaine View Post
    You're going to struggle to encrypt a system after installation. You need a small unencrypted boot partition, then the rest of your disk is set up with a single encrypted parition, upon which you put LVM and create the various partitions you need (root, home and swap for example) according the sizes you prefer.

    You can use this howto to add a Private directory to your existing install :
    http://tombuntu.com/index.php/2008/0...with-ecryptfs/

    But in my opinion, you'd be better of with Truecrypt - it has a pretty and effective GUI and the data file it creates can subsequently be stuck on a disk and used on Macs or Windows devices. Pretty slick.

    If you really need the full disk encryption, I think you're snookered.
    Thanks for your reply, scaine!

    My plan is to setup a /boot and a LVM partition setup with at least / during install, but not encrypt it at this point with the alternate install disk.

    The reason for doing this is so I can setup a basic unencrypted system which I can take an image of, as in complete system backup, and thereafter encrypt the LVM setup containing the system partition before I actually start to use the system as intended to.

    I want to backup my system before it gets encrypted, in other words. Because of security reasons, you should never take a backup of an encrypted volume or file, as in cloning:
    http://www.truecrypt.org/docs/?s=volume-clones

    It takes a lot of time and and work to install (K)ubuntu, setup hardware, install drivers, software and setup multiple user accounts; and even set each of them up differently. If something should go wrong during all this, it's so much easier to just restore an image of the disk and continue from a backup instead of starting at square one with the alternate install CD again.

    So everything should be in place for the encryption; all I need to do is to encrypt the LVM system partition when everything is setup just as I want it. And I want to know how to do that.


  4. #4
    Join Date
    Nov 2006
    Location
    40.31996,-80.607213
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to encrypt the system with LVM _after_ the installation?

    Quote Originally Posted by viking_maniac View Post
    I want to backup my system before it gets encrypted, in other words. Because of security reasons, you should never take a backup of an encrypted volume or file, as in cloning:
    http://www.truecrypt.org/docs/?s=volume-clones
    That just depends on where you are storing the backup. After you boot, enter your LUKS password and login, the system is now decrypted and running virtually. It's not like it is still mystically encrypted. Anyone connecting over the network will see unencrypted files, which they will be able to access.

    The security of the full disc encryption, is to keep your files encrypted and unreadable, while your system is off.

    If you are going to the trouble to encrypt your system, then your backups should be placed on a separate drive that is encrypted also.
    "Security lies within the user of who runs the system. Think smart, live safe." - Dr Small
    Linux User #441960 | Wiki: DrSmall

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •