public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "pat" <pat@xvalheru.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mounting disk image
Date: Sun, 6 Apr 2008 23:54:16 +0200	[thread overview]
Message-ID: <20080406215300.M13525@xvalheru.org> (raw)
In-Reply-To: <200804062316.54834.alan.mckinnon@gmail.com>

On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote
> On Sunday 06 April 2008, pat wrote:
> > Hello,
> >
> > I have a question about mounting disk image as the disk. I have disk
> > image which was created using:
> > dd if=/dev/sda of=./file.iso
> > and the sda contained two partitions sda1 and sda2. I know, that if I
> > have only image of the sda1 I can mount it using loop device like
> > #losetup /dev/loop0 file.iso
> > #mount -t ... /dev/loop0 /mnt/tmp
> >
> > But, how to do it if the file structure is: sda -> sda1, sda2? I need
> > to get data from sda1 and sda2 :-|
> 
> losetup -o <offset_value> /dev/loop<something>
> 
> see man losetup
> 
> -- 
> Alan McKinnon
> alan dot mckinnon at gmail dot com
> 
> -- 
> gentoo-user@lists.gentoo.org mailing list

Thanks. How to count the offset? And where can I get the partitions offsets?

     Pat
-- 
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-04-06 21:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-06 21:03 [gentoo-user] mounting disk image pat
2008-04-06 21:16 ` Alan McKinnon
2008-04-06 21:54   ` pat [this message]
2008-04-06 22:07     ` Alan McKinnon
2008-04-06 22:17       ` pat
2008-04-06 22:24         ` Alan McKinnon
2008-04-06 22:30           ` pat
2008-04-06 22:18       ` Andrey Falko
2008-04-06 22:25         ` pat
2008-04-06 21:19 ` Andrey Falko
2008-04-06 21:52   ` pat
2008-04-07  4:38 ` Stroller
2008-04-07 11:10   ` David Relson

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=20080406215300.M13525@xvalheru.org \
    --to=pat@xvalheru.org \
    --cc=gentoo-user@lists.gentoo.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