Results 1 to 4 of 4

Thread: Removing LVM Encryption

  1. #1
    Join Date
    Oct 2008
    Beans
    7

    Removing LVM Encryption

    I've spent the past couple of days setting up an old computer to be a media box for the house, but while everything looks nice on the inside, I stupidly set a password for the LVM, so every time I start up, I require a monitor in order to enter the password. Is there any quick way I can remove this password and decrypt the partition if needed?

  2. #2
    Join Date
    Oct 2008
    Beans
    7

    Re: Removing LVM Encryption

    After looking into this a bit, I found myself presented with two options:
    1. Create a new physical volume on the disc and transfer everything over, perhaps a bit too complex for a simple mind like mine
    2. Use cryptsetup to remove the encryption on /dev/sda1, something I'm much more inclined to do since it hopefully would not involve moving tons of data around.

    Does anyone have any suggestions on how to go about doing either? All help is appreciated

    Edit: After a bit of time spent on this problem, I've found that the easiest solution was to go into:
    /usr/share/initramfs-tools/scripts/local-top/cryptroot
    and edit the line:
    Code:
    $cryptkeyscript "$cryptkey" | $cryptcreate --key-file=- ; then
    to:
    Code:
    echo -n "PASSWORD" | $cryptcreate --key-file=- ; then
    Which put the password straight into the decryption part of the code, rather than prompting the user. It's hackish, and I'd definitely like to say to remember to put "echo -n" so it doesn't mess it up and lock you out, but it works, which is what I was looking for.
    Last edited by Thundara; May 10th, 2009 at 10:40 PM.

  3. #3
    Join Date
    Jul 2009
    Beans
    68

    Re: Removing LVM Encryption

    Thanks, this is the best answer I could find !!
    Slowwwwwwwubuntupoke.

    My GPG key.

  4. #4
    Join Date
    Feb 2008
    Beans
    158

    Re: Removing LVM Encryption

    Hi,

    It didn't work for me
    I'm on 10.04 and I have to introduce a passphrase (not a key file).

    Can you shed some light, please?

    Regards

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
  •