Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] mounting disk image pat <pat@××××××××.org>
Re: [gentoo-user] mounting disk image Andrey Falko <ma3oxuct@×××××.com>