From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BbjTE-0001bz-KA for qemu-devel@nongnu.org; Sat, 19 Jun 2004 13:17:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BbjTC-0001bN-QM for qemu-devel@nongnu.org; Sat, 19 Jun 2004 13:17:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BbjTC-0001bK-MA for qemu-devel@nongnu.org; Sat, 19 Jun 2004 13:17:34 -0400 Received: from [66.111.4.26] (helo=out2.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BbjRs-0001x5-0o for qemu-devel@nongnu.org; Sat, 19 Jun 2004 13:16:12 -0400 Received: from silentsoftware.co.uk (gw.ubs-manc.victoriahall.com [217.12.147.6]) by mail.messagingengine.com (Postfix) with ESMTP id 951FFC0C79A for ; Sat, 19 Jun 2004 13:16:06 -0400 (EDT) Message-ID: <40D474DF.3010704@silentsoftware.co.uk> Date: Sat, 19 Jun 2004 18:16:15 +0100 From: Benjamin Brown MIME-Version: 1.0 Subject: Re: [Qemu-devel] Mounting a disk image under Linux 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> <1087663208.3375.239.camel@sherbert> In-Reply-To: <1087663208.3375.239.camel@sherbert> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Thanks. I did an sfdisk on the file and added -o loop,32256 to the mount command. I know nothing of low level stuff so thats quite an achievement for me, I learn something new everyday ;) Benjamin Gianni Tedesco wrote: >On Sat, 2004-06-19 at 17:34 +0100, 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? >> >> > >*bzzzt* it's partitioned ;) > >You need to do losetup manually and specify an offset (`expr 512 \* 63` >usually). > > > >------------------------------------------------------------------------ > >_______________________________________________ >Qemu-devel mailing list >Qemu-devel@nongnu.org >http://lists.nongnu.org/mailman/listinfo/qemu-devel > >