Other How to mount image.dd file

Hi

I have a hard disk on my PC with an 'unknown filesystem' (originally it was an ext2 file system).
I have many files there which I want to keep. I can not access the files on that hard disk (/dev/sdb). No operating system is installed on this drive.....only files.

I installed testdisk on my FreeBSD partition and created an image.dd file of this entire hard disk (250 GB).
How can I mount/open/extract this image.dd file and finally save my dear files there?

Would be glad for help.

Thanks
 
mdconfig your-image-file-name.img
md0 created

gpart show md0

Now you know your filesystem.
Mount something like normal.
If this is an EFI system there will be two partitions. FAT for EFI and UFS2 for your OS. (ZFS possible too)
If you want to recover files off the OS partition the mount location depends on the Disk Scheme. MBR or GPT:

GPT
mount /dev/md0p2 /mnt

MBR (several different disk layouts possible)
mount /dev/md0s1a /mnt
mount /dev/md0s2a /mnt

So as you can see you really need to study the output of gpart show md0.
It contains all the information you will need. ls /dev/md* contains useful output too.

When done dismount your memory disk mounts and close the mdconfig process for the image.

umount /mnt
mdconfig -d -u md0
 
and created an image.dd file
And in case you are wondering the image file name and extension can be anything you like.
dd does not care if your file input/output extension is img or exe.

As you can see from my post I use file.img as a name template.
It is similar to the FreeBSD image name convention.
 
Back
Top