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 22:17:30
Message-Id: 20080406221244.M23550@xvalheru.org
In Reply to: Re: [gentoo-user] mounting disk image by Alan McKinnon
1 On Mon, 7 Apr 2008 00:07:58 +0200, Alan McKinnon wrote
2 > On Sunday 06 April 2008, pat wrote:
3 > > On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote
4 > >
5 > > > On Sunday 06 April 2008, pat wrote:
6 > > > > Hello,
7 > > > >
8 > > > > I have a question about mounting disk image as the disk. I have
9 > > > > disk image which was created using:
10 > > > > dd if=/dev/sda of=./file.iso
11 > > > > and the sda contained two partitions sda1 and sda2. I know, that
12 > > > > if I have only image of the sda1 I can mount it using loop device
13 > > > > like #losetup /dev/loop0 file.iso
14 > > > > #mount -t ... /dev/loop0 /mnt/tmp
15 > > > >
16 > > > > But, how to do it if the file structure is: sda -> sda1, sda2? I
17 > > > > need to get data from sda1 and sda2 :-|
18 > > >
19 > > > losetup -o <offset_value> /dev/loop<something>
20 > > >
21 > > > see man losetup
22 > >
23 > > Thanks. How to count the offset? And where can I get the partitions
24 > > offsets?
25 >
26 > Is the original disk still intact? Then fdisk would tell you the offset
27 >
28 > --
29 > Alan McKinnon
30 > alan dot mckinnon at gmail dot com
31 >
32 > --
33 > gentoo-user@l.g.o mailing list
34
35 Well, yes and no :-( The partition table of the original table has crashed, so
36 I've created the ISO image of the disk and now playing with it ... but, the
37 original drive is still untouched. So, I should play with hard drive directly
38 instead using the dd copy? To partition table recovery in the ISO image I've
39 used the testdisk utility.
40
41 Any suggestions?
42
43 Thanks a lot.
44
45 Pat
46
47 --
48 gentoo-user@l.g.o mailing list

Replies

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