LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Mounting encrypted disk (https://www.linuxquestions.org/questions/linux-desktop-74/mounting-encrypted-disk-814655/)

Blue_Ice 06-17-2010 02:54 AM

Mounting encrypted disk
 
Hi all,

Is it possible to mount an encrypted disk? I have the password and it is encrypted with crypto_luks. The filesystem that is encrypted is ext4. BackTrack 4 is available through PXE boot.

I hope anyone knows how to do this.

Blue_Ice 06-17-2010 07:09 AM

Will mount.crypt do the job?

Blue_Ice 06-18-2010 02:46 AM

Ok, I figured it out myself.
If you are not using LVM then installing pam_mount is required and you will be able to mount the disk with:
Code:

# mount.crypt -o cipher=aes /dev/sda2 /mnt
In case you are using LVM, you might need to install LVM2 (Not sure if you need pam_mount installed too, as I already had it installed). After this run the following commands:
Code:

# modprobe dm-mod
# vgscan --mknodes
# vgchange -ay <VolGroup>
# lvs
# mount /dev/<VolGroup>/<Vol_root> /mnt



All times are GMT -5. The time now is 10:24 AM.