I have a raw disk image (created with dd) of a disk that had full disk encryption enabled with VeraCrypt. This image a a backup of the disk and the disk is broken. I am trying to access the encrypted data by mounting it in an Ubuntu machine, but with little luck.
What I have done is mount the image on loop0 via losetup and then use VeraCrypt to mount /dev/loop0, but the only response I get is “Error: Partition device required”.
In order to figure out what is going on, I encrypted another disk with full disk encryption and made another dd image. Now when I connect this disk I can mount it using the veracrypt command perfectly, but the image gives the same problem. I also checked the /dev/sdb1 (the disk) and the /dev/loop0 (the image) contents and they are exactly the same. So why is the latter giving this error about a partition device?
Last edit: Frapvi Verron 2017-02-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did solve it for Windows. You may use the Arsenal Image mounter (OSFmount did not work). Mount the image with at temp file for write access (so you do not destroy original data, windows may need to give new id to disk if you mount an older image of the same drive) and go "online". Free version of Arsenal did the trick as of today. Than you may mount the main partition. Arsenal can emulate a full physical disk from a raw file. Impressive :)
Havnt found a solution for Linux so far. One possible idea would be to create a qemu machine where you mount a raw image (I think, see ref below) and then boot into it or into an iso linux with veracraypt and than mount the according partition from there. You may use virtualbox, I did that sucessfully, but you will have to convert raw to vdmk or vdi or so first. See vbox reference online for how to convert.
I have a raw disk image (created with dd) of a disk that had full disk encryption enabled with VeraCrypt. This image a a backup of the disk and the disk is broken. I am trying to access the encrypted data by mounting it in an Ubuntu machine, but with little luck.
What I have done is mount the image on loop0 via losetup and then use VeraCrypt to mount /dev/loop0, but the only response I get is “Error: Partition device required”.
In order to figure out what is going on, I encrypted another disk with full disk encryption and made another dd image. Now when I connect this disk I can mount it using the veracrypt command perfectly, but the image gives the same problem. I also checked the /dev/sdb1 (the disk) and the /dev/loop0 (the image) contents and they are exactly the same. So why is the latter giving this error about a partition device?
Last edit: Frapvi Verron 2017-02-04
Hey, have you managed to solve this? Got the same question. What if you dd back the image onto the livd drive - would it work?
I did solve it for Windows. You may use the Arsenal Image mounter (OSFmount did not work). Mount the image with at temp file for write access (so you do not destroy original data, windows may need to give new id to disk if you mount an older image of the same drive) and go "online". Free version of Arsenal did the trick as of today. Than you may mount the main partition. Arsenal can emulate a full physical disk from a raw file. Impressive :)
Havnt found a solution for Linux so far. One possible idea would be to create a qemu machine where you mount a raw image (I think, see ref below) and then boot into it or into an iso linux with veracraypt and than mount the according partition from there. You may use virtualbox, I did that sucessfully, but you will have to convert raw to vdmk or vdi or so first. See vbox reference online for how to convert.
To use kvm/qemu possibly this might help: https://blog.heckel.io/2018/08/06/booting-image-files-and-isos-with-kvm-qemu-efi-and-bios/