open image file

Zoltan Gyarmati mr.zoltan.gyarmati at gmail.com
Sun Feb 3 09:17:53 EST 2013


On 02/03/2013 03:12 PM, Anuz Pratap Singh Tomar wrote:
>
>
> On Sun, Feb 3, 2013 at 2:03 AM, horseriver <horserivers at gmail.com 
> <mailto:horserivers at gmail.com>> wrote:
>
>     hi:
>
>       Is there mothod to look into a image file ?
>       How can I know its filesystem?
>
>       I have mounted my fd0 to /mnt with -t tmpfs ,but I find
>       nothing under /mnt.How can I touch the files in image?
>
> I think you need to mount it as loopback device
> http://www.andremiller.net/content/mounting-hard-disk-image-including-partitions-using-linux 
>
>
>
>     thanks!
>
>     _______________________________________________
>     Kernelnewbies mailing list
>     Kernelnewbies at kernelnewbies.org
>     <mailto:Kernelnewbies at kernelnewbies.org>
>     http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
>
> -- 
> Thank you
> Warm Regards
> Anuz
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Hi,

in case of image with multiple partitions, easier to use kpartx, then 
get the offsets with parted:
http://ppadala.net/blog/2010/09/kpartx-to-mount-vm-disk-images/

of course with image with one partition, it doesn't matter

-- 
br,
Zoltan Gyarmati
mail: mr.zoltan.gyarmati at gmail.com
freenode nick: zgyarmati




More information about the Kernelnewbies mailing list