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

Thread: HOWTO: Rescue an encrypted LUKS LVM volume

  1. #1
    Join Date
    May 2005
    Location
    Seattle, WA
    Beans
    250
    Distro
    Ubuntu 9.10 Karmic Koala

    HOWTO: Rescue an encrypted LUKS LVM volume

    This HOWTO is for people who have encrypted their main volumes of their hard drives using the method offered by the Alternate CD installer. IT will probably work on other ways of installation.

    1. Boot into a Live CD environment (the other OS is imposable to boot to right?) and open up a terminal window. (applications<accessories<terminal)

    2. Install needed packages:
    Code:
    sudo apt-get install lvm2 cryptsetup
    3. probe needed module:
    Code:
    sudo modprobe dm-crypt
    4. setup the crypto module to recognise the partition
    Code:
    sudo cryptsetup luksOpen /dev/hda5 crypt1
    Enter your passphrase. You should get the following message:
    key slot 0 unlocked.
    Command successful.
    If not, something has gone wrong.
    5. scan for volume groups
    Code:
    sudo vgscan --mknodes
    sudo vgchange -ay
    REMEMBER the name of the volume group, as you will need it for step 7.
    6. Create a mount point:
    Code:
    sudo mkdir /volume
    7. mount the encrypted volume to the mountpoint you just created. (replace paulb-desktop with the name of the volume group found in step 5.)
    Code:
    sudo mount /dev/paulb-desktop/root /volume
    8. The volume is mounted, now you can chroot or whatever else you need to do. If you would like to open the gnome file manager for writing to it issue the following command:
    Code:
    sudo nautilus /volume
    9. Happy Crypting.
    "If you are savvy and smart about the choices you make in life, The sky is not the limit!" - Mark Shuttleworth
    This message has been rot 26 encrypted for security reasons.

  2. #2
    Join Date
    Dec 2007
    Beans
    28

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    thanks for very good howto

    when I try to execute step No# 7 I face the following problem :

    mount: you must specify the filesystem type
    I use ubuntu studio , what should I do ?

    thanks in advance

  3. #3
    Join Date
    Dec 2007
    Beans
    28

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    Quote Originally Posted by secure bit View Post
    thanks for very good howto

    when I try to execute step No# 7 I face the following problem :



    I use ubuntu studio , what should I do ?

    thanks in advance
    I have tried the same steps with gutsy, same result :

    mount /dev/bit-desktop/root /volume/
    mount: you must specify the filesystem type

  4. #4
    Join Date
    Dec 2007
    Beans
    28

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    up up up !

  5. #5
    Join Date
    Dec 2007
    Beans
    28

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    now what todo ??

  6. #6
    Join Date
    Jun 2005
    Location
    Sweden
    Beans
    109

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    EDIT: Erased
    Last edited by johannes; December 18th, 2007 at 12:27 PM. Reason: nevermind

  7. #7
    Join Date
    Dec 2007
    Beans
    28

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    thanks !

    so you don't have a solution mister ?

  8. #8
    Join Date
    Dec 2007
    Beans
    28

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    Quote Originally Posted by johannes View Post
    EDIT: Erased
    step 7 not working

    mount: you must specify the filesystem type

  9. #9
    Join Date
    Dec 2007
    Beans
    1

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    to get rid of the "mount: you must specify the filesystem type" message

    try:
    Code:
    mount -t ext3 /dev/{yourdevice} /mnt/{your mount point}
    if this does not work too try

    Code:
    mount -t ext2 /dev/{yourdevice} /mnt/{your mount point}
    peanut butter: thanks for your nice little howto

  10. #10
    Join Date
    May 2005
    Location
    Seattle, WA
    Beans
    250
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: Rescue an encrypted LUKS LVM volume

    Sorry for the very late response, ive had a lot on my plate lately... School really gets in the way. Yeah. That must have been a typo on step 7 or something.
    "If you are savvy and smart about the choices you make in life, The sky is not the limit!" - Mark Shuttleworth
    This message has been rot 26 encrypted for security reasons.

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
  •