New Reply

Mounting encrypted .img file on x86_64 Linux

 
Share Thread Thread Tools
May7-11, 03:40 PM   #1
 
Blog Entries: 9
Recognitions:
Gold Membership Gold Member

Mounting encrypted .img file on x86_64 Linux


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.
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Hong Kong launches first electric taxis
>> Morocco to harness the wind in energy hunt
>> Galaxy's Ring of Fire
May9-11, 12:28 AM   #2
 
Blog Entries: 1
Recognitions:
Science Advisor Science Advisor
You'll be delighted to know that your post is the first result when I Googled for encrypted img linux!

FWIW, the second result is a forum discussion wherein a poster offers the Nautilus script he wrote to uncompress and mount:
http://ubuntuforums.org/showthread.php?t=920180
 
May9-11, 12:58 PM   #3
 
Blog Entries: 9
Recognitions:
Gold Membership Gold Member
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.
 
New Reply
Thread Tools


Similar Threads for: Mounting encrypted .img file on x86_64 Linux
Thread Forum Replies
Is it possible to backup an entire Linux install by copy/pasting the entire file syst Computers 3
Encrypted Message Help Brain Teasers 3
how can Capture Text form image file and save it as txt file or word file Computers 2
A programme to change name of a file in linux Programming & Comp Sci 6
Music file type converters for linux Computing & Technology 2