Gentoo Archives: gentoo-user

From: pat <pat@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mounting disk image
Date: Sun, 06 Apr 2008 21:54:19
Message-Id: 20080406215300.M13525@xvalheru.org
In Reply to: Re: [gentoo-user] mounting disk image by Alan McKinnon
1 On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote
2 > On Sunday 06 April 2008, pat wrote:
3 > > Hello,
4 > >
5 > > I have a question about mounting disk image as the disk. I have disk
6 > > image which was created using:
7 > > dd if=/dev/sda of=./file.iso
8 > > and the sda contained two partitions sda1 and sda2. I know, that if I
9 > > have only image of the sda1 I can mount it using loop device like
10 > > #losetup /dev/loop0 file.iso
11 > > #mount -t ... /dev/loop0 /mnt/tmp
12 > >
13 > > But, how to do it if the file structure is: sda -> sda1, sda2? I need
14 > > to get data from sda1 and sda2 :-|
15 >
16 > losetup -o <offset_value> /dev/loop<something>
17 >
18 > see man losetup
19 >
20 > --
21 > Alan McKinnon
22 > alan dot mckinnon at gmail dot com
23 >
24 > --
25 > gentoo-user@l.g.o mailing list
26
27 Thanks. How to count the offset? And where can I get the partitions offsets?
28
29 Pat
30 --
31 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] mounting disk image Alan McKinnon <alan.mckinnon@×××××.com>