kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: mr.zoltan.gyarmati@gmail.com (Zoltan Gyarmati)
To: kernelnewbies@lists.kernelnewbies.org
Subject: open image file
Date: Mon, 04 Feb 2013 15:24:26 +0100	[thread overview]
Message-ID: <510FC49A.6060705@gmail.com> (raw)
In-Reply-To: <283ab658-1a16-49a3-ad9b-b04200dd47c4@email.android.com>

On 02/04/2013 03:03 PM, Greg Freemyer wrote:
>
> Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com> wrote:
>
>
>> 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
> I think you meant an image of a drive with no partitions:
>
> Ie.
>   mkfs /dev/sdb. Create a filesystem on the entire disk, there is no offset and no partitions (the entire disk is the filesystem, no mbr or gpt).
>
>   mkfs /dev/sdb1.  Create a filesystem on the first partition, there is an offset even if it is the only partition.  You examine the mbr or gpt to determine the offset.
>
> Or possibly you meant an image of a partition:
>
> dd if=/dev/sdb1 of=image_file.  Create the image of a partition, no offset needed for loopback mount.
>
> Greg
>
Indeed!
I was not accurate enough, thx for the comment.

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

  reply	other threads:[~2013-02-04 14:24 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
2013-02-04 14:03     ` Greg Freemyer
2013-02-04 14:24       ` Zoltan Gyarmati [this message]
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=510FC49A.6060705@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).