LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-07-2012, 04:13 PM   #16
Terminal_Cowboy
Member
 
Registered: Jun 2012
Distribution: Gentoo (Host), Arch (Guest), FreeBSD9, Android 2.3.6
Posts: 32

Rep: Reputation: Disabled

Quote:
Originally Posted by iamharpreet View Post
mount -o loop file.img /mnt/somewhere
To mount img files, you need to know the offset value. Once you know the offset value, you just need to add a minor change to the code above

Code:
mount -o loop,offset=value file.img /mnt/somewhere
Watch this youtube video. This person shows how to mount an img file. I tried this when I had trouble mounting an img file in the past and it works.

http://www.youtube.com/watch?v=vAtiqS_7lm8

The topic of this video is chrooting into an img file, but you just need to watch up to 6 minutes to see how he gets the offset value for the img file. The remaining minutes of the video is chrooting the img file which you do not need.

Last edited by Terminal_Cowboy; 07-07-2012 at 04:23 PM.
 
Old 07-07-2012, 05:11 PM   #17
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
can you please run file file.img so we know what type of file it is.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a .img file? RoaCh Of DisCor Linux - Newbie 2 07-12-2005 03:49 PM
Mounting IMG file on suse 9.3 fireedo Linux - General 3 05-23-2005 04:05 AM
mounting a .img file... username-inuse Linux - Software 3 05-01-2005 03:46 PM
mounting a img file kudos Slackware 2 04-30-2003 03:54 PM
Mounting and unmount of lnx4win.img mauritzv Linux - Newbie 0 01-17-2002 12:23 AM


All times are GMT -5. The time now is 09:09 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration