How do I mount a windows (vfat) disk image under Linux?
I've created a new disk image using dd and formatted it to Fat 32 using qemu and a dos boot disk.
I want to mount this disk under /mnt/tempImage so I can add files to the image
mount -o loop -t vfat /opt/qemu/tempImage /mnt/tempImage
but it complains:
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?)
Please help! :)
try it without the -o switch
I found the answer was to offset the mount command because the image was partitioned (i.e. fdisked) and the filesystem further into the image:
mount -o loop,offset=32256 /opt/qemu/tempImage /mnt/tempImage
|All times are GMT -5. The time now is 09:35 PM.|