Mounting encrypted .img file on x86_64 Linux

  • Thread starter Thread starter jhae2.718
  • Start date Start date
  • Tags Tags
    File Linux
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 4K views
jhae2.718
Gold Member
Messages
1,184
Reaction score
20
While playing around with the fglrx driver for AMD graphic cards I managed to completely destroy my system last night. (Tip: never play with the kernel after 11 pm.)

After reinstalling from a live CD, I have the OS up and running. Unfortunately, my /home partition was encrypted so the reinstall did not recover that. (My backup was corrupted; stupid of me, I know. Anyone have a good Linux backup solution?)

However, I have an .img file of the encrypted contents of my /home directory, and I have the corresponding .key. I can't get it to mount, though.

I suspect that mount is trying to use a new key generated by the reinstall for my user account to decrypt the image, which of course doesn't work. Is there a way I can tell mount to use the .key file I have to decrypt the image?

The OS is OpenSUSE 11.4 x86_64, but that shouldn't matter. The reinstall didn't completely go through, so I'm planning on formatting the drive and reinstalling from scratch once school gets out.

Thanks.
 
Physics news on Phys.org
That's a different sitatuin than what I have, but thanks for looking. I suspect I'll have to post the question on the distro's forums, but I wanted to see if anyone on PF could come up with something first.

Maybe this time I'll learn to make sure my backups worked.