1

I just installed Ubuntu 12.04 with the encrypting option. Soon after I found that I have lost my Windows Vista and all my previous partitions as the in the new Ubuntu only one hard drive with summation of all previous partitions appears.

As I needed my data I tried to recover the partitions. I was successful except for the Windows drive (dev/sda1) and that is because it is encrypted. Now, I cannot even run Windows with Windows Vista recovery CD. Any help please.

Peachy
  • 7,235
  • 10
  • 40
  • 47
Jeo
  • 11

2 Answers2

0

To access a drive encrypted with LUKS or dmcrypt:

First, open a terminal window and become root. Type blkid to learn the device name of the partition you want. (In your case you have already done this ;-)

Now for the magic bit: Run

cryptsetup luksOpen <device file> <device-mapper name>

and type your password. For example, you might do something like cryptsetup luksOpen /dev/sda1 mydrivethatineed. With this command, the decrypted device would appear at /dev/mapper/mydrivethatineed.

Now you can go ahead and

mount /dev/mapper/<device-mapper name> /mnt

and your filesystem should appear under /mnt.

One last thing: don't forget to unmount a crypto drive when you're done; otherwise, what's the point of crypto? (Do note that the kernel unmounts everything and forgets all passphrases on shutdown.) Unmount it with:

cryptsetup luksClose <device-mapper name>

and you should be set!

0

Actually, I think you used the guided install and used the entire partition. There is no "real" support for Full Drive Encryption in windows so its highly unlikely that your windows drive is still there.

There is a little hope though, some portion of your data may remain where the drive was not written to. Data recovery may be possible.

Cain
  • 124