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 1E5c0k-00005y-Dp for garchives@archives.gentoo.org; Thu, 18 Aug 2005 04:28:14 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7I4Pt9p010965; Thu, 18 Aug 2005 04:25:55 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7I4KUZQ011413 for ; Thu, 18 Aug 2005 04:20:30 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1E5buB-0005FA-1c for gentoo-user@lists.gentoo.org; Thu, 18 Aug 2005 04:21:27 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1E5bt8-0003ZB-On for gentoo-user@gentoo.org; Thu, 18 Aug 2005 06:20:22 +0200 Received: from 203-118-166-20.adsl.ihug.co.nz ([203.118.166.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Aug 2005 06:20:22 +0200 Received: from tom by 203-118-166-20.adsl.ihug.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Aug 2005 06:20:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Tom Eastman Subject: [gentoo-user] Re: OT: Recovering partitions from an imaged drive Date: Thu, 18 Aug 2005 16:19:22 +1200 Message-ID: References: <200508180045.35273.shrdlu@unlimitedmail.org> 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-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 203-118-166-20.adsl.ihug.co.nz User-Agent: KNode/0.9.1 Sender: news X-Archives-Salt: cf103d94-ac64-48a5-9e8f-118be5b956d6 X-Archives-Hash: 1be8e3f44425fd43321342e2e463aab9 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! Thanks for your help! Tom -- gentoo-user@gentoo.org mailing list