I’ve created an .img file using ddrescue. I am a complete Ubuntu Noob, and having lots of issues mounting my img file so I can get data off of it.
If I try this command:
sudo mount -o loop,ro partition.img mountpoint
I get an error as follows:
wrong fs type, bad option, bad superblock on /dev/loop8, missing codepage or helper program, or other error
running it through parted, I’ve found that the file system is ext4. So I tried the command:
sudo mount -t ext4 -o loop,ro partition.img mountpoint
and I get the same error.
I know that I only copied one partition with ddrescue (not the entire drive).
The partition.img file is 49.8GB. The drive that has the file on it is 80GB. I’m trying to mount it to a folder called ‘mountpoint’ which exists on the same physical drive as my .img file, which I don’t know if that’s O.K. or not. Do I need 49.8GB of free space to mount an img file that is 49.8GB?
I’ve run fdisk on the .img file, and although I don’t really know what I’m looking at, it seems to run just fine, which implies to me that the .img file is not corrupted.
Anyway, I’m really looking for some help here! What am I missing? Why can’t I mount this .img file?
And just to help my case that the .img file is actually only one partition when I run parted I get this output:
Number Start End Size File System Flags
1 0B 49781997567B 49781997568B ext4