LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I mount a windows (vfat) disk image under Linux? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-mount-a-windows-vfat-disk-image-under-linux-195342/)

brownb2 06-19-2004 10:53 AM

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

I've tried

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! :)

czarherr 06-19-2004 01:35 PM

try it without the -o switch

brownb2 06-19-2004 02:47 PM

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 05:42 PM.