PDA

View Full Version : Access the contents of an *.img file



smhall05
03-29-2008, 12:20 PM
I have tried to use:

mount -o loop -t ext3 /mnt/hdb1/myimage.img /mnt

And got various errors/warning/info over the past few days from use dmesg | tail to badsector to. I recently tried using photo_rec and to my amazement it is able to view my files in a 19GB image. My two problems/issues are:

1) Why can't I use the conventional way of viewing my image by mouting? Any other way?
2) Under photo_rec my file names are in the for F5315317.jpg, is there a way to recover the original filename?

kirol
03-29-2008, 03:00 PM
You probably cannot mount under /mnt when your source file is somewhere thereunder! Try creating a temporary mount-point under /tmp (or say /mnt/xyz if you prefer). Also if you're unsure of the FS type, run "$ file myimage.img" first, or just let mount guess on its own.