[Gloucs] How to rescue data from a encrypted filesystem

Nick gloslug at njw.me.uk
Wed Sep 26 10:44:33 BST 2007


> Just of curiousness: I have a encrypted partition now running which is
> password protected. In case the PC does not start I could rescue the
> data of a non encrypted partition with a Live CD. This is not possible
> obviously for a encrypted partition. Is there a similar solution eg.
> to mount the encrypted partition from a Live CD and after giving the
> correct password to have fully access to it and to rescue the data?

How's it encrypted? If it's LUKS, then so long as the livecd has
support for the cipher you chose, the kernel has dm-crypt support, and
there's a copy of cryptsetup-luks in easy reach, you should be able
to mount it without problem with something like:

cryptsetup luksOpen /dev/hda2 rescue
<enter password>
mount /dev/mapper/rescue /mnt/rescue

Of course, if the partition was damaged in some way, then I don't
expect you could get anything from it at all.

-- 
GPG Key : www.njw.me.uk/nick.gpg.asc     GPG Key ID: 04E4653F
  GPG Fingerprint: 9732 D7C7 A441 D79E FDF0 94F6 1F48 5674 04E4 653F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mailman.lug.org.uk/pipermail/gloucs/attachments/20070926/c407de2d/attachment.bin


More information about the gloucs mailing list