1 |
On Sun, 6 Apr 2008 18:18:57 -0400, Andrey Falko wrote |
2 |
> On Sun, Apr 6, 2008 at 6:07 PM, Alan McKinnon |
3 |
> <alan.mckinnon@×××××.com> wrote: |
4 |
> > On Sunday 06 April 2008, pat wrote: |
5 |
> > > On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote |
6 |
> > > |
7 |
> > > > On Sunday 06 April 2008, pat wrote: |
8 |
> > > > > Hello, |
9 |
> > > > > |
10 |
> > > > > I have a question about mounting disk image as the disk. I have |
11 |
> > > > > disk image which was created using: |
12 |
> > > > > dd if=/dev/sda of=./file.iso |
13 |
> > > > > and the sda contained two partitions sda1 and sda2. I know, that |
14 |
> > > > > if I have only image of the sda1 I can mount it using loop device |
15 |
> > > > > like #losetup /dev/loop0 file.iso |
16 |
> > > > > #mount -t ... /dev/loop0 /mnt/tmp |
17 |
> > > > > |
18 |
> > > > > But, how to do it if the file structure is: sda -> sda1, sda2? I |
19 |
> > > > > need to get data from sda1 and sda2 :-| |
20 |
> > > > |
21 |
> > > > losetup -o <offset_value> /dev/loop<something> |
22 |
> > > > |
23 |
> > > > see man losetup |
24 |
> > > |
25 |
> > |
26 |
> > > Thanks. How to count the offset? And where can I get the partitions |
27 |
> > > offsets? |
28 |
> > |
29 |
> > Is the original disk still intact? Then fdisk would tell you the offset |
30 |
> > |
31 |
> > |
32 |
> > |
33 |
> I'm pretty sure you can fdisk -l test.iso....maybe not, but worth a |
34 |
> try if you don't have the original disk :). |
35 |
> > |
36 |
> > -- |
37 |
> > Alan McKinnon |
38 |
> > alan dot mckinnon at gmail dot com |
39 |
> > |
40 |
> > -- |
41 |
> > gentoo-user@l.g.o mailing list |
42 |
> > |
43 |
> > |
44 |
> -- |
45 |
> gentoo-user@l.g.o mailing list |
46 |
|
47 |
Well, I'm not the low level guru :-) This is the first time I playing with |
48 |
data/partitions recovery :-\ |
49 |
|
50 |
The fdisk gives me: |
51 |
Partition 1 has different physical/logical endings: |
52 |
phys=(1023, 254, 63) logical=(19456, 254, 63) |
53 |
/mnt/tmp/recovery.dd.2.iso5 16612 19457 22860463+ c W95 |
54 |
FAT32 (LBA) |
55 |
|
56 |
Which number should I use? |
57 |
|
58 |
Pat |
59 |
|
60 |
-- |
61 |
gentoo-user@l.g.o mailing list |