Gentoo Archives: gentoo-user

From: Tom Eastman <tom@×××××××××××.nz>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: OT: Recovering partitions from an imaged drive
Date: Thu, 18 Aug 2005 04:28:14
Message-Id: de128b$tpg$1@sea.gmane.org
In Reply to: Re: [gentoo-user] OT: Recovering partitions from an imaged drive by Etaoin Shrdlu
1 Etaoin Shrdlu wrote:
2
3 > Tom Eastman wrote:
4 > I'm not sure, but mounting the whole hda as loopback could work (seem
5 > to remember a thread about this some time ago on the list, search the
6 > archives).
7 > In case it does not, try this. Since the real partitions usually start
8 > at the second sector (the first being the MBR that holds the
9 > bootloader and the partition table), I guess (iff the hard disk had
10 > only one partition taking all the space) you can extract only the
11 > hda1 partition by dd'ing the file onto another one but this time
12 > skipping the first sector, ie something like
13 >
14 > dd if=hda.img of=hda1.img bs=512 skip=1
15 >
16 > or so.
17 >
18 > Hope this works.
19
20 Thanks, I managed to solve it a different way in the end :-) I loaded up my
21 own physical NTFS partition in a hex viewer, and looked at what byte
22 sequence was right at the start of the partition, then I opened the disk
23 image and searched for that same byte sequence in the file :-)
24
25 Having found it (at the 32,256th byte) I was able to use 'losetup -o 32256'
26 to offset the loopback device, and the partition loaded up without a hitch!
27
28 Thanks for your help!
29
30 Tom
31
32
33 --
34 gentoo-user@g.o mailing list

Replies

Subject Author
RE: [gentoo-user] Re: OT: Recovering partitions from an imaged drive Michael Kintzios <michaelkintzios@××××××××.uk>