LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-23-2010, 10:02 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 51
How to mount as loop an image of a VFAT made with dd?


Hello,

I made a disk image of a vfat fat16 using:
Code:
dd if=/dev/sda of=image_drive.img
I would like to mount it to /mnt/vfat using mount and loop. Is it possible to be mounted?
 
Old 02-23-2010, 10:19 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,271

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
That's an image of a drive not a partition. Use losetup with an offset to skip the first cylinder then you may be able to mount it.
Search LQ for losetup and offset.
 
Old 02-24-2010, 06:33 AM   #3
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,438

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
'mount -t vfat -o loop,offset=32256,ro image_drive.img /mnt/vfat'
assuming that the first cylinder contains 63 sectors of 512 bytes each.
 
Old 02-27-2010, 02:26 AM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by allend View Post
'mount -t vfat -o loop,offset=32256,ro image_drive.img /mnt/vfat'
assuming that the first cylinder contains 63 sectors of 512 bytes each.
Thank you !! this trick worked flawlessly !
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to resize vfat disk image made with dd lindylex Linux - Software 4 03-05-2009 10:25 PM
Loop-mount image of harddrive addy86 Linux - General 6 06-14-2005 06:06 AM
Cannot mount more than 8 iso image files as loop device marsim Debian 4 11-09-2004 04:05 AM
How do I mount a windows (vfat) disk image under Linux? brownb2 Linux - Software 2 06-19-2004 02:47 PM
What does "loop-mount the disk image" mean ? karans Linux - Distributions 1 10-29-2003 08:21 AM


All times are GMT -5. The time now is 01:04 PM.

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