From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqO2w-0004Bp-Fb for qemu-devel@nongnu.org; Sun, 16 Jan 2005 22:59:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqO2k-00044g-E1 for qemu-devel@nongnu.org; Sun, 16 Jan 2005 22:59:06 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqO2h-00041o-U8 for qemu-devel@nongnu.org; Sun, 16 Jan 2005 22:59:03 -0500 Received: from [131.111.8.134] (helo=ppsw-4.csi.cam.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CqNjW-0004cT-1V for qemu-devel@nongnu.org; Sun, 16 Jan 2005 22:39:14 -0500 From: Mark Williamson Subject: Re: [Qemu-devel] Mounting qemu virtual disk images from host linux os Date: Mon, 17 Jan 2005 03:31:22 +0000 References: <41EAF9E2.9030108@gsinet.net> <41EB1A04.4060605@gsinet.net> In-Reply-To: <41EB1A04.4060605@gsinet.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501170331.22395.maw48@cl.cam.ac.uk> Sender: maw48@hermes.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 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 On Monday 17 January 2005 01:51, Tom Sandholm wrote: > Oh yes, it is multi-partitioned. Any suggestions on how I can select a > specific partition? > > Thanks > Tom > > Magnus Damm wrote: > >On Sun, 16 Jan 2005 18:33:54 -0500, Tom Sandholm wrote: > >>I found the lomount program that is supposed to mount your qemu > >>virtual-disk-images; but it isn't working for me. > >> > >>I've installed debian "sarge" onto the virtual image, using ext3 > >>filesystems as default, with /dev/hda1 as the primary bootable linux > >>partition (root). > >> > >>When I execute the lomount program, here's what I get. > >>============================================================ > >>nixsys:/qemu# ./lomount -t ext3 -diskimage debian02_sarge_hda.img /mnt > >>mount: wrong fs type, bad option, bad superblock on /dev/loop0, > >> or too many mounted file systems > >>nixsys:/qemu# > >>=========================================================== > >> > >>What am I doing wrong? > > > >I don't know about lomount, but are you sure your .img-file is a > > partition? Maybe the file represents a virtual disk with partition table > > and partitions? > > > >/ magnus > > > > > >_______________________________________________ > >Qemu-devel mailing list > >Qemu-devel@nongnu.org > >http://lists.nongnu.org/mailman/listinfo/qemu-devel