qemu-devel
[Top][All Lists]
Advanced

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

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


From: Gianni Tedesco
Subject: Re: [Qemu-devel] Mounting a disk image under Linux
Date: Sat, 19 Jun 2004 17:40:08 +0100

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

-- 
// 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

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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