Mount an encrypted drive via LiveCD?

Jason Crain jason at bluetree.ath.cx
Thu Mar 19 02:24:36 UTC 2009


Craig Puchta wrote:
> I have been using Jaunty for about 3 weeks now. Everything has been
> working fine, save for a few minor bugs. Today I turn on my laptop
> with Jaunty and it kind of freezes up just before the point where I
> decrypt the hard drive. So, my question is this, is there a way I can
> decrypt my hard drive with a live cd so I can recover some of the data
> on the encrypted drive?

The live cd is missing some software required to read the encrypted 
volume.  You can install the software and read the volume with the 
following steps.

sudo apt-get install cryptsetup lvm2
sudo modprobe dm_crypt
sudo modprobe sha256_generic
sudo modprobe aes_generic
sudo crypsetup luksOpen /dev/sdXY cryptoroot

The drive will then probably mount itself.  If it doesn't, the device 
will show under /dev/mapper, so you can mount it manually.




More information about the ubuntu-users mailing list