From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BbivZ-00012K-7Q for qemu-devel@nongnu.org; Sat, 19 Jun 2004 12:42:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BbivX-00011Z-3p for qemu-devel@nongnu.org; Sat, 19 Jun 2004 12:42:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BbivX-00011I-01 for qemu-devel@nongnu.org; Sat, 19 Jun 2004 12:42:47 -0400 Received: from [213.146.130.142] (helo=trantor.org.uk) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Bbitr-0001jW-Tk for qemu-devel@nongnu.org; Sat, 19 Jun 2004 12:41:04 -0400 Subject: Re: [Qemu-devel] Mounting a disk image under Linux From: Gianni Tedesco In-Reply-To: <40D46B1B.9070704@silentsoftware.co.uk> 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> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-VpoH/6Z1V9a6mXcS8yK7" Date: Sat, 19 Jun 2004 17:40:08 +0100 Message-Id: <1087663208.3375.239.camel@sherbert> Mime-Version: 1.0 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 --=-VpoH/6Z1V9a6mXcS8yK7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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: >=20 > mount -o loop /opt/qemu/tempImage /mnt/tempImage >=20 > This failed and asked me for the filesystem type so I specified: >=20 > mount -o loop -t vfat /opt/qemu/tempImage /mnt/tempImage >=20 > This also failed with the error: >=20 > 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?) >=20 > 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). --=20 // Gianni Tedesco (gianni at scaramanga dot co dot uk) lynx --source www.scaramanga.co.uk/scaramanga.asc | gpg --import 8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D --=-VpoH/6Z1V9a6mXcS8yK7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBA1GxnkbV2aYZGvn0RAujWAJ4gapFOtIjfkKad39yJMyFgnJ96MACfZc8u pU8c3hJIHEV1H9GMI+1ZXPg= =+NuI -----END PGP SIGNATURE----- --=-VpoH/6Z1V9a6mXcS8yK7--