Mounting a partition from a hard drive image

Some times use after recovering an entire hard drive image, you may want to mount a partition that was on that disk, instead of apply it to another drive. In those times, you can use the following commands:

First, you will want to find out where the partition starts:

sfdisk -l -uS image_file.dd

The -uS flag to sfdisk forces the output to be given in sectors (512 bytes), so the number you see there will need to be multiplied by 512.


mount -oloop,offset=xxxx image.dd /mnt/point

That’s it!