Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bbiu6-0000Hu-5I for qemu-devel@nongnu.org; Sat, 19 Jun 2004 12:41:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bbiu4-0000HZ-Mm for qemu-devel@nongnu.org; Sat, 19 Jun 2004 12:41:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bbiu4-0000HP-KD for qemu-devel@nongnu.org; Sat, 19 Jun 2004 12:41:16 -0400 Received: from [80.72.36.106] (helo=alpha.polcom.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BbisX-0008Gp-Qj for qemu-devel@nongnu.org; Sat, 19 Jun 2004 12:39:42 -0400 Date: Sat, 19 Jun 2004 18:39:35 +0200 (CEST) From: Grzegorz Kulewski Subject: Re: [Qemu-devel] Mounting a disk image under Linux In-Reply-To: <40D46B1B.9070704@silentsoftware.co.uk> Message-ID: References: <1087396951.40d05c57252a0@www.raysa.org> <40D0AD00.7050207@silentsoftware.co.uk> <40D0B569.8070204@bellard.org> <40D0BE89.4070904@silentsoftware.co.uk> <40D46B1B.9070704@silentsoftware.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Brown Cc: qemu-devel@nongnu.org Yuo should mount it with offset (because of partition table). The right offset was posted several times to this list but I do not remember it. When you will find it you should add -o offset=xxxxx to mount command. Grzegorz Kulewski On Sat, 19 Jun 2004, Benjamin Brown wrote: > I created a disk image under (host) Linux using dd and fdisked and > formatted using a (guest)Windows 98 boot disk under QEMU. > I then tried to mount this under linux to add files to it using: > > mount -o loop /opt/qemu/tempImage /mnt/tempImage > > This failed and asked me for the filesystem type so I specified: > > mount -o loop -t vfat /opt/qemu/tempImage /mnt/tempImage > > This also failed with the error: > > mount: wrong fs type, bad option, bad superblock on /dev/loop1, > or too many mounted file systems > (could this be the IDE device where you in fact use > ide-scsi so that sr0 or sda or so is needed?) > > Any ideas why this happens - this should just a straight fat formatted > disk image?