From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E5grJ-0005Qg-CX for garchives@archives.gentoo.org; Thu, 18 Aug 2005 09:38:49 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7I9av2w011868; Thu, 18 Aug 2005 09:36:57 GMT Received: from lmfilto02.st1.spray.net (lmfilto02.st1.spray.net [212.78.202.66]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7I9WDbs021245 for ; Thu, 18 Aug 2005 09:32:13 GMT Received: from localhost (localhost [127.0.0.1]) by lmfilto02.st1.spray.net (Postfix) with ESMTP id 96876186100 for ; Thu, 18 Aug 2005 09:33:13 +0000 (GMT) Received: from lmcodec04.st1.spray.net ([212.78.202.209]) by localhost (lmfilto02.st1.spray.net [212.78.202.32]) (amavisd-new, port 10024) with ESMTP id 11687-09 for ; Thu, 18 Aug 2005 09:33:13 +0000 (GMT) Received: from lmcodec04.st1.spray.net (localhost [127.0.0.1]) by lmcodec04.st1.spray.net (Postfix) with SMTP id 5AC1BCF901 for ; Thu, 18 Aug 2005 09:33:13 +0000 (GMT) Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=lycos.co.uk; h=From:Subject; b=gAKothOOaTcKRcbp+PsVPeyV86BMvK8kcZpP95fhbxychNU4v4JtQx72Gs0zh6m3xztsvhCNYsIq678eAvhAJirkQ883fGOrPNuO9x1iDlt4U/t+MFETphi1fxbsx4qPDl4FhpcSN06e9PxU0i6M2/Ln16KL2Hez3UfV25TS8Cs=; From: "Michael Kintzios" To: Subject: RE: [gentoo-user] Re: OT: Recovering partitions from an imaged drive Date: Thu, 18 Aug 2005 10:33:09 +0100 Message-ID: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Virus-Scanned: by amavisd-new at spray.net X-Archives-Salt: 7e7a3923-d1cf-479e-b78b-9f9302c56d4d X-Archives-Hash: 179d1f3f3b8fe683d66d3c1e2743c583 > -----Original Message----- > From: news [mailto:news@sea.gmane.org] On Behalf Of Tom Eastman > Sent: 18 August 2005 05:19 > To: gentoo-user@lists.gentoo.org > Subject: [gentoo-user] Re: OT: Recovering partitions from an > imaged drive > > > Etaoin Shrdlu wrote: > > > Tom Eastman wrote: > > I'm not sure, but mounting the whole hda as loopback could > work (seem > > to remember a thread about this some time ago on the list, > search the > > archives). > > In case it does not, try this. Since the real partitions > usually start > > at the second sector (the first being the MBR that holds the > > bootloader and the partition table), I guess (iff the hard disk had > > only one partition taking all the space) you can extract only the > > hda1 partition by dd'ing the file onto another one but this time > > skipping the first sector, ie something like > > > > dd if=hda.img of=hda1.img bs=512 skip=1 > > > > or so. > > > > Hope this works. > > Thanks, I managed to solve it a different way in the end :-) > I loaded up my > own physical NTFS partition in a hex viewer, and looked at what byte > sequence was right at the start of the partition, then I > opened the disk > image and searched for that same byte sequence in the file :-) > > Having found it (at the 32,256th byte) I was able to use > 'losetup -o 32256' > to offset the loopback device, and the partition loaded up > without a hitch! Probably I need more coffee, but since I haven't ever used loopback and just in case I am being dense, would you mind detailing your steps above when you get a minute? -- Regards, Mick -- gentoo-user@gentoo.org mailing list