From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JFwFG-0003Rj-FH for garchives@archives.gentoo.org; Fri, 18 Jan 2008 18:47:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D1A4E0BAD; Fri, 18 Jan 2008 18:46:39 +0000 (UTC) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.240]) by pigeon.gentoo.org (Postfix) with ESMTP id 85397E0BAA for ; Fri, 18 Jan 2008 18:46:38 +0000 (UTC) Received: by hs-out-2122.google.com with SMTP id 23so1922611hsn.2 for ; Fri, 18 Jan 2008 10:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=2pGOe7TP0xFckys9s/CmjRRh6IbWE3t0VneL79RIm+Q=; b=kgQaK8wy+GdFL9rImjySSwFjHJOU5YbDP8OIkV3jCjsGMtq7uMe3stFqs2q+uaws6NaWtK4KW/dy3SjYyxYw6Fon1F9RkVgR3LT9Lt52XGg2pSiJhurNy9JH02LDqzRTodQJo+s5pFZ7V9B1XPrqE3RkGHjdUZDRnoqXaIQWT9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=Gof8agc5rc4zpVs9Jh+up/QJl4q54mItwZ4XUEnbbF8e2NrU8fb7qUNcEJ+VYtxAhVNIGYYSmNQiqov1c966tzQTqQiIaQiSHTmc+lvtkDv9IgoUrK2gQpJPCqIbZvaen2lkL6yHzEtn8KFO8WXo1oTv3IU+dCj0Y9UPb/K4wT4= Received: by 10.78.170.17 with SMTP id s17mr5288205hue.35.1200681996047; Fri, 18 Jan 2008 10:46:36 -0800 (PST) Received: from yarmook.hjz ( [217.164.214.87]) by mx.google.com with ESMTPS id d23sm1435035nfh.24.2008.01.18.10.46.33 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Jan 2008 10:46:35 -0800 (PST) Date: Fri, 18 Jan 2008 22:47:19 +0400 From: Yahya Mohammad To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] "loopback mount" hard-drive image created with dd? Message-ID: <20080118184719.GB32256@yarmook.hjz> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <6155E8C0-9F4B-446D-BE24-EAC2BCEC82D5@stellar.eclipse.co.uk> <20080118090425.GF11901@chateau.d.lf> <87y7anurgs.fsf@chateau.d.lf> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y7anurgs.fsf@chateau.d.lf> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-Archives-Salt: 6ef87b38-ac64-424d-b1f4-e5758c889745 X-Archives-Hash: 5636ecb36b4a42ab375435971f74ece9 > Another hack you can try is use to use '--offset' option of > 'losetup'. First figure out from which byte, NTFS partition starts in > disk image, and then you create a loopback back device for that image > and the starting offset using 'losetup' and finally 'mount' the > loopback as NTFS partition :) . Here's more detail on how to do that # losetup /dev/loop0 /path/to/diskimage # fdisk -l /dev/loop0 (example) Disk /dev/sdb: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 1044 8385898+ c W95 FAT32 (LBA) /dev/sdb2 1045 19457 147902422+ 83 Linux suppose you want to mount the partition on sdb2, the offset for that would be 8225280 * 1045 = 8595417600. detach the disk image # losetup -d /dev/loop0 and setup the loop for the partiion # losetup -o8595417600 /dev/loop0 /path/to/diskimage and mount it # mount -t fstype /dev/loop0 /path/to/mountdir > Please do post your results, if you're successful :) I second that, I'm curious to know if it works oh, and make a backup just in case :) -- gentoo-user@lists.gentoo.org mailing list