From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqZBg-0002cv-TW for qemu-devel@nongnu.org; Mon, 17 Jan 2005 10:53:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqZ9v-0001oM-5a for qemu-devel@nongnu.org; Mon, 17 Jan 2005 10:51:17 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqZ9r-0001bd-L6 for qemu-devel@nongnu.org; Mon, 17 Jan 2005 10:51:11 -0500 Received: from [38.113.3.71] (helo=smtp-out.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CqYmt-000704-Op for qemu-devel@nongnu.org; Mon, 17 Jan 2005 10:27:28 -0500 Received: from phreaker.net (kubrick.hotpop.com [38.113.3.103]) by smtp-out.hotpop.com (Postfix) with SMTP id 31A9E134F2E6 for ; Mon, 17 Jan 2005 15:27:24 +0000 (UTC) Received: from jbrown.mylinuxbox.org (pcp03144805pcs.midval01.tn.comcast.net [68.59.228.236]) by smtp-3.hotpop.com (Postfix) with ESMTP id C2F70134F2C5 for ; Mon, 17 Jan 2005 15:27:23 +0000 (UTC) Date: Mon, 17 Jan 2005 10:26:15 -0500 From: "Jim C. Brown" Subject: Re: [Qemu-devel] Mounting qemu virtual disk images from host linux os Message-ID: <20050117152615.GB5897@jbrown.mylinuxbox.org> References: <41EAF9E2.9030108@gsinet.net> <41EB1A04.4060605@gsinet.net> <200501170331.22395.maw48@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200501170331.22395.maw48@cl.cam.ac.uk> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Jan 17, 2005 at 03:31:22AM +0000, Mark Williamson wrote: > I've not used lomount before so maybe you can pass flags to lomount directly. > I can tell you how to do it using losetup / mount separately: > > You can use losetup to bind a partition of the disk file to a /dev/loop device > and then mount that. Use the -o option to specify the offset into the file > where the partition is to be found. Use the -s option to specify the size of > the partition. > > You can probably fdisk the file (or, if that doesn't work, a loop device bound > to the whole file) to figure out where the partition boundaries are. > > HTH, > Mark lomount does all of this internally. You can't pass it an offset into the file, only which partition you wish to mount. It calculates the offset by looking it up in the partition table. I'm wondering if he is trying to mount a COW image or some fancy-but-qemu-supported disk image. lomount has only been tested with raw images and sparse images, and is unlikely to work w/ anything else. -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.