Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-19-2004, 10:53 AM   #1
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15
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!
Old 06-19-2004, 01:35 PM   #2
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 13
Posts: 288

Rep: Reputation: 32
try it without the -o switch
Old 06-19-2004, 02:47 PM   #3
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount an image as virtual disk KnottyBoy Linux - Software 1 10-19-2005 04:24 AM
Can I burn disk image to a cd using my ibook and use it on a windows/linux machine? markhod Linux - General 1 03-15-2005 06:23 AM
Users cannot mount or access mounted windows vfat partitions (Distro: Gentoo Linux) kamel Linux - Software 6 05-15-2004 06:08 PM
windows boot disk image nef Linux - Software 2 09-29-2003 12:47 AM
How do i mount Vfat file in Linux Linux - Newbie 3 05-21-2001 11:06 PM

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration