Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Full encryption: One Password for several partitions?

  1. #1
    Join Date
    Dec 2008
    Beans
    7

    Full encryption: One Password for several partitions?

    hello,

    yesterday I installed fedora 10 and encrypted 3 partitions. i only had to enter one password (during install and especially at boot - and all encrypted partitions get mounted!). this is what i'm missing on ubuntu - currently i have 3 encrypted partitions and have to enter 3 passwords at boot, that's quite annoying!

    1) any chance to fix this without storing the password unencrypted in a shell script and running this after boting?
    2) would using LVM help to fix this, if you add all partitions to one LVM?
    3) does somebody know how fedora 10 does this?

    thank you very much!

  2. #2
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Full encryption: One Password for several partitions?

    I believe you are correct, the 3 partitions are on a LVM. I believe you can do this with the Ubuntu Alternate Installation CD.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  3. #3
    Join Date
    Aug 2005
    Beans
    Hidden!

    Re: Full encryption: One Password for several partitions?

    You can have multiple partitions and set it up so that you only have to enter in a pass phrase once regardless of whether they are LVM partitions or not.

    What you need to do is create a keyfile and insert the keyfile into the 2nd LUKS slot (which is slot 1) for all the partitions except for the one where you need to enter in a pass phrase to boot (which is typically an LVM partition containing root and swap.)

    What I do is put the keyfile somewhere on root and configure crypttab to use the keyfile to unlock all the other encrypted partitions. This way I only have to enter in my pass phrase once and then the keyfile (which is also secure because it is on an encrypted partition) is used to unlock all the other partitions.

    There is no limit to the number of encrypted partitions you can have. I have five of them, four of which are unlocked with a keyfile and I only have to enter in my pass phrase once to unlock the first partition.

  4. #4
    Join Date
    Aug 2007
    Location
    Arvada, CO
    Beans
    275
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Full encryption: One Password for several partitions?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: RIPEMD160

    Caveat: If you only have to enter one password, then potential attackers only have to *compromise* one password. This should factor into your consideration in proportion to the importance of the data you're trying to protect.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEAREDAAYFAklNOxwACgkQyLm4ydrABvcnXwCgxR3Kk5uat2 SEMyb8NHEE9VGD
    VvQAoKsrI9LpMzTev+/m5VcpWTJaXCyi
    =JBcl
    -----END PGP SIGNATURE-----

  5. #5
    Join Date
    Aug 2005
    Beans
    Hidden!

    Re: Full encryption: One Password for several partitions?

    Quote Originally Posted by Carl Hamlin View Post
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: RIPEMD160

    Caveat: If you only have to enter one password, then potential attackers only have to *compromise* one password. This should factor into your consideration in proportion to the importance of the data you're trying to protect.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEAREDAAYFAklNOxwACgkQyLm4ydrABvcnXwCgxR3Kk5uat2 SEMyb8NHEE9VGD
    VvQAoKsrI9LpMzTev+/m5VcpWTJaXCyi
    =JBcl
    -----END PGP SIGNATURE-----
    True but no-one is going to remember or use more than one long or completed pass phrase when they boot (or manually enter later by opening a text file containing the additional pass phrases.) It is better to have one good pass phrase (mine is almost 40 characters long) than five short and easy to remember passwords.

  6. #6
    Join Date
    Jun 2006
    Location
    Switzerland
    Beans
    Hidden!
    Distro
    Kubuntu Jaunty Jackalope (testing)

    Re: Full encryption: One Password for several partitions?

    Quote Originally Posted by blastus View Post
    What you need to do is create a keyfile and insert the keyfile into the 2nd LUKS slot (which is slot 1) for all the partitions except for the one where you need to enter in a pass phrase to boot (which is typically an LVM partition containing root and swap.)
    I wrote a little howto on that. It's in the tutorials section.

  7. #7
    Join Date
    Dec 2008
    Beans
    7

    Re: Full encryption: One Password for several partitions?

    hello,

    thank you all for your replies!
    i'm aware it can be done this way, but i don't like to store my keys or password directly on the hdd (even if it's encrypted). i'm wondereing how it's done on fedora, anybody knows that? i mean, if you currently login, your password is somewhere in the cache, you should also be able to use this for the other partitions (as long as they have the same passwords) instead of using a keyfile or similar.

    i will try if it makes a difference if you put all partitoins in one LVM, though i have no clue how to use LVM, will just try it and let you know if it then works with only one password...

  8. #8
    Join Date
    Oct 2008
    Location
    Washington, D.C., USA
    Beans
    118

    Re: Full encryption: One Password for several partitions?

    Quote Originally Posted by srynonick View Post
    hello,

    thank you all for your replies!
    i'm aware it can be done this way, but i don't like to store my keys or password directly on the hdd (even if it's encrypted). i'm wondereing how it's done on fedora, anybody knows that? i mean, if you currently login, your password is somewhere in the cache, you should also be able to use this for the other partitions (as long as they have the same passwords) instead of using a keyfile or similar.

    i will try if it makes a difference if you put all partitoins in one LVM, though i have no clue how to use LVM, will just try it and let you know if it then works with only one password...
    Fedora is likely done with LVM. It's easy to do LVM in the alternate installer, you just do what you normally do to set up an encrypted device, except when you would be formatting it as ext3 or another filesystem, you select "Use as physical volume for LVM". Then, you make all the filesystems on top of that LVM.

  9. #9
    Join Date
    Dec 2008
    Beans
    7

    Re: Full encryption: One Password for several partitions?

    thank you teddks, i meanwhile tested this. seems like LVM is the solution to my problem - make e.g. 2 partitions on your hdd (1 for /boot, rest for LVM), use the LVM partition as "partition for encryption" and when configuring this partition, choose "parition for lvm".

    however, my problem now is, that i have 2 HDDs and need this layout:
    HDD1:
    /boot
    swap
    / (root)

    HDD2
    /home

    but using the alternate installer, i first have to choose "use volume for encryption" before creating a LVM group. and as i have two HDDs i have two partitions for encryption (=2 passwords and the installer doesn't care if you choose the same password for several partitions) before i can create a LVM group, so i still have to enter 2 passwords on boot ):
    anybody can help me with this?

    thank you very much!

  10. #10
    Join Date
    Oct 2008
    Location
    Washington, D.C., USA
    Beans
    118

    Re: Full encryption: One Password for several partitions?

    Quote Originally Posted by srynonick View Post
    thank you teddks, i meanwhile tested this. seems like LVM is the solution to my problem - make e.g. 2 partitions on your hdd (1 for /boot, rest for LVM), use the LVM partition as "partition for encryption" and when configuring this partition, choose "parition for lvm".

    however, my problem now is, that i have 2 HDDs and need this layout:
    HDD1:
    /boot
    swap
    / (root)

    HDD2
    /home

    but using the alternate installer, i first have to choose "use volume for encryption" before creating a LVM group. and as i have two HDDs i have two partitions for encryption (=2 passwords and the installer doesn't care if you choose the same password for several partitions) before i can create a LVM group, so i still have to enter 2 passwords on boot ):
    anybody can help me with this?

    thank you very much!
    Install the full system onto one hard drive, then just expand the LVM onto the second.

Page 1 of 2 12 LastLast

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
  •