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 1Jicoc-0006WA-VA for garchives@archives.gentoo.org; Sun, 06 Apr 2008 21:54:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5AD7CE04ED; Sun, 6 Apr 2008 21:54:17 +0000 (UTC) Received: from mail.pipni.cz (mail.pipni.cz [193.86.238.3]) by pigeon.gentoo.org (Postfix) with ESMTP id 303BEE04ED for ; Sun, 6 Apr 2008 21:54:17 +0000 (UTC) Received: from mail.pipni.cz ([193.86.238.3] helo=xvalheru.org) id 1Jicoa-0000VH-Sy for gentoo-user@lists.gentoo.org; Sun, 06 Apr 2008 23:54:16 +0200 From: "pat" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] mounting disk image Date: Sun, 6 Apr 2008 23:54:16 +0200 Message-Id: <20080406215300.M13525@xvalheru.org> In-Reply-To: <200804062316.54834.alan.mckinnon@gmail.com> References: <20080406205726.M53986@xvalheru.org> <200804062316.54834.alan.mckinnon@gmail.com> X-Mailer: OpenWebMail 2.52 20061019 X-OriginatingIP: 62.245.88.216 (pat@xvalheru.org) 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=iso-8859-1 X-Archives-Salt: 18de4ad7-be6a-4425-a48d-ebc7a6e536a5 X-Archives-Hash: b8b0ba6e3d440b9799a55e28e9cf9ee1 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 > > -- > Alan McKinnon > alan dot mckinnon at gmail dot com > > -- > gentoo-user@lists.gentoo.org mailing list Thanks. How to count the offset? And where can I get the partitions offsets? Pat -- gentoo-user@lists.gentoo.org mailing list