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 1JidCY-0000o7-Ui for garchives@archives.gentoo.org; Sun, 06 Apr 2008 22:19:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40C8AE0516; Sun, 6 Apr 2008 22:19:01 +0000 (UTC) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by pigeon.gentoo.org (Postfix) with ESMTP id 10CDCE0516 for ; Sun, 6 Apr 2008 22:19:00 +0000 (UTC) Received: by wf-out-1314.google.com with SMTP id 27so1168528wfd.10 for ; Sun, 06 Apr 2008 15:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=eiQ1NoP5GIMh2eb9MdGQFHDoBfjt9iV2n8Drb99EHdc=; b=mVnq7mqNmGNh8V4+2xgazY214yLNux74jKk83cbEIg4UDmyQZYKoFj3e8UOtDqJ7b+dCJPYed0f7z+ma1VUyLDZLeKET9tH247kS3jYPpRwjdI8opNwWKPriquSf5sN7ZJzY1wVVNknNj6NRZaMu3L5p44oGrJ3LMLVK55xfuKY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DswlZfaLkKfkEePHoSrIvdXysaav6mvTatuL5VrVuaVBWTXmgNSaQjhGiu4W2cO+SL9j0mQCi/DP9li3BaWECoY9hfGYFo709e3tXhN5nd/B9vAlmVjYKNQBVHTo8EzXXQZEki3LIB+gSzPdt1kadmblHBBJZ6J8PkP5Aoys+R8= Received: by 10.142.156.2 with SMTP id d2mr695465wfe.293.1207520339022; Sun, 06 Apr 2008 15:18:59 -0700 (PDT) Received: by 10.142.253.4 with HTTP; Sun, 6 Apr 2008 15:18:57 -0700 (PDT) Message-ID: <350fc7cf0804061518q5d1df6ffsffb1075a3c7d74e3@mail.gmail.com> Date: Sun, 6 Apr 2008 18:18:57 -0400 From: "Andrey Falko" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] mounting disk image In-Reply-To: <200804070007.58617.alan.mckinnon@gmail.com> 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=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080406205726.M53986@xvalheru.org> <200804062316.54834.alan.mckinnon@gmail.com> <20080406215300.M13525@xvalheru.org> <200804070007.58617.alan.mckinnon@gmail.com> X-Archives-Salt: 30e9ac2f-b9c7-455e-85bd-9a0641e90440 X-Archives-Hash: d66e14938bd383b34db6d8cb6685fcd4 On Sun, Apr 6, 2008 at 6:07 PM, Alan McKinnon wrote: > On Sunday 06 April 2008, pat wrote: > > On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote > > > > > On Sunday 06 April 2008, pat wrote: > > > > Hello, > > > > > > > > I have a question about mounting disk image as the disk. I have > > > > disk image which was created using: > > > > dd if=/dev/sda of=./file.iso > > > > and the sda contained two partitions sda1 and sda2. I know, that > > > > if I have only image of the sda1 I can mount it using loop device > > > > like #losetup /dev/loop0 file.iso > > > > #mount -t ... /dev/loop0 /mnt/tmp > > > > > > > > But, how to do it if the file structure is: sda -> sda1, sda2? I > > > > need to get data from sda1 and sda2 :-| > > > > > > losetup -o /dev/loop > > > > > > see man losetup > > > > > Thanks. How to count the offset? And where can I get the partitions > > offsets? > > Is the original disk still intact? Then fdisk would tell you the offset > > > I'm pretty sure you can fdisk -l test.iso....maybe not, but worth a try if you don't have the original disk :). > > -- > Alan McKinnon > alan dot mckinnon at gmail dot com > > -- > gentoo-user@lists.gentoo.org mailing list > > -- gentoo-user@lists.gentoo.org mailing list