Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have encrypted an Ubuntu partition with the standard partition password encryption ubuntu offers (LUKS, As far as I remember).

I have dd-dumped this partition to another computer, and want to mount the dd dump file.

Any ideas how mount the encrypted volume dump?

Adam

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Finally, I found an article from G-Loaded Journal. In short, we need to make mount treat the file as a block device. First, we check which one is free:

losetup -f

Afterwards, we set it as a block device:

losetup /dev/loop0 /path/to/container1

Other instructions are pretty straightforward.

Note: make sure you're not using mkfs or similar commands on an existing encrypted volume! The instructions might be confusing on that point.

Note 2: It is always a good idea to back up a dumpfile before messing with it. Just cp your file to someplace else before messing with it!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.