Mounting encrypted .img file on x86_64 Linux

  • Thread starter Thread starter jhae2.718
  • Start date Start date
  • Tags Tags
    File Linux
Click For Summary
SUMMARY

The discussion focuses on mounting an encrypted .img file on an x86_64 Linux system, specifically OpenSUSE 11.4. The user has an encrypted /home partition and a corresponding .key file but is unable to mount the .img file due to potential key mismatches following a system reinstall. The user seeks a method to specify the .key file for decryption during the mounting process. Recommendations for Linux backup solutions were also requested, highlighting the importance of reliable backups.

PREREQUISITES
  • Understanding of Linux file systems and encryption methods
  • Familiarity with mounting disk images in Linux
  • Knowledge of OpenSUSE 11.4 and its command-line tools
  • Experience with managing encryption keys and .key files
NEXT STEPS
  • Research how to use the 'mount' command with specific key files for encrypted images
  • Learn about LUKS (Linux Unified Key Setup) for managing encrypted partitions
  • Explore reliable Linux backup solutions, such as rsync or Timeshift
  • Investigate community forums for OpenSUSE-specific mounting solutions
USEFUL FOR

Linux users, system administrators, and anyone dealing with encrypted file systems or seeking effective backup strategies.

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.
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 24 ·
Replies
24
Views
11K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 21 ·
Replies
21
Views
3K
Replies
7
Views
3K
Replies
16
Views
4K
  • · Replies 123 ·
5
Replies
123
Views
20K