Mounting encrypted .img file on x86_64 Linux

  • Thread starter Thread starter jhae2.718
  • Start date Start date
  • Tags Tags
    File Linux
AI Thread Summary
The user experienced a system failure after experimenting with the fglrx driver for AMD graphics cards, leading to a complete reinstall of the operating system from a live CD. The /home partition was encrypted, and the reinstall did not recover it due to a corrupted backup. The user has an .img file containing the encrypted contents of the /home directory and the corresponding .key file but is unable to mount the image. The issue likely stems from the system attempting to use a new key generated during the reinstall instead of the original key. The user seeks a method to instruct the mount command to utilize the existing .key file for decryption. They plan to format the drive and perform a clean reinstall of the OS after school. Additionally, they mention finding relevant information through a Google search and express the intention to seek further assistance on the distribution's forums.
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.
 
Computer science news on Phys.org
You'll be delighted to know that your post is the first result when I Googled for encrypted img linux! :-p

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
 
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.
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
Back
Top