[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Mounting a disk image under Linux

From: Benjamin Brown
Subject: Re: [Qemu-devel] Mounting a disk image under Linux
Date: Sat, 19 Jun 2004 18:16:15 +0100
User-agent: Mozilla Thunderbird 0.5 (X11/20040229)


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 ;)


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`


Qemu-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]