From mboxrd@z Thu Jan 1 00:00:00 1970 From: mr.zoltan.gyarmati@gmail.com (Zoltan Gyarmati) Date: Sun, 03 Feb 2013 15:17:53 +0100 Subject: open image file In-Reply-To: References: <20130203020300.GA2454@debian.localdomain> Message-ID: <510E7191.1050103@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 02/03/2013 03:12 PM, Anuz Pratap Singh Tomar wrote: > > > On Sun, Feb 3, 2013 at 2:03 AM, horseriver > 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 > > 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