LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mounting encrypted LVM - Device /dev/.../lv_home is not a valid LUKS device. (http://www.linuxquestions.org/questions/linux-hardware-18/mounting-encrypted-lvm-device-dev-lv_home-is-not-a-valid-luks-device-862500/)

recarv 02-13-2011 10:42 PM

Mounting encrypted LVM - Device /dev/.../lv_home is not a valid LUKS device.
 
Hello,

First off - let me say, I'm not sure if this is a hardware problem as far as topics go or software, so I apologize if it seems a bit off-topic.

I recently had one of my computers motherboard die and so I moved the hard drive to another linux machine so I could access the data.

The hard drive is installed correctly and I've mounted several logical volumes on the drive ok, but I'm having trouble with the two volumes which were encrypted.

The LVM Gui in Fedora is ignorant to any encrypted LVMs so I looked around to see if others have solved this problem and found the following command

# cryptsetup luksOpen /dev/vg_delldesk/lv_home luks-fedora

My Logical volume container is vg_delldesk and the encrypted volume is lv_home - when I execute this command I get the following error:

Device /dev/vg_delldesk/lv_home is not a valid LUKS device.

I started to read more on the matter and quickly got into some articles that are quite a bit over my head. Since I'm dealing with potential data loss if I accidentally overwrite the volume, I was hoping to get some help in particular from you guys.

Any help would be appreciated -please let me know if I should post any specifics. Also - if it helps, I have access to the root partition from the old box so the config files are there to reference the old setup if needed.

My current box is Fedora 14 x_64, I have dm_crypt mod installed in the kernel as well.

THanks in advance,

recarv

corp769 02-14-2011 05:08 PM

Maybe this might help:

http://www.ubuntugeek.com/rescue-an-...vm-volume.html

I'm at work so I don't have access to my linux box. Hopefully that has some pointers to help you.

recarv 02-15-2011 01:41 PM

Thanks for the reply - I read through that document and it looks like it assmues the /dev/sda5 is an encrypted volume group, however my issue is a bit different because the volume group itself isn't encrypted, just 2 of the volumes within the group.

Does anyone know of a good document showing how to deal with this situation?

THanks,
R

corp769 02-15-2011 03:38 PM

Maybe something like this one?

http://www.brandonhutchinson.com/Mou...VM_volume.html


All times are GMT -5. The time now is 02:37 AM.