All of lore.kernel.org
 help / color / mirror / Atom feed
From: mr.zoltan.gyarmati@gmail.com (Zoltan Gyarmati)
To: kernelnewbies@lists.kernelnewbies.org
Subject: open image file
Date: Sun, 03 Feb 2013 15:17:53 +0100	[thread overview]
Message-ID: <510E7191.1050103@gmail.com> (raw)
In-Reply-To: <CAJnfX5uYGthYNPtKC631qRLQe-8zH_0rfaao_nObCLCdp_qRGw@mail.gmail.com>

On 02/03/2013 03:12 PM, Anuz Pratap Singh Tomar wrote:
>
>
> On Sun, Feb 3, 2013 at 2:03 AM, horseriver <horserivers@gmail.com 
> <mailto:horserivers@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@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

  reply	other threads:[~2013-02-03 14:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-03  2:03 open image file horseriver
2013-02-03 14:12 ` Anuz Pratap Singh Tomar
2013-02-03 14:17   ` Zoltan Gyarmati [this message]
2013-02-04 14:03     ` Greg Freemyer
2013-02-04 14:24       ` Zoltan Gyarmati
2013-02-04 19:16       ` horseriver
2013-02-05  6:15         ` Vineet Agarwal
2013-02-04 20:59           ` horseriver
2013-02-05 17:03             ` Valdis.Kletnieks at vt.edu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=510E7191.1050103@gmail.com \
    --to=mr.zoltan.gyarmati@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.