LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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 03:23 PM.
 
Old 07-07-2012, 04:11 PM   #17
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

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


Reply



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 02:49 PM
Mounting IMG file on suse 9.3 fireedo Linux - General 3 05-23-2005 03:05 AM
mounting a .img file... username-inuse Linux - Software 3 05-01-2005 02:46 PM
mounting a img file kudos Slackware 2 04-30-2003 02:54 PM
Mounting and unmount of lnx4win.img mauritzv Linux - Newbie 0 01-16-2002 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:34 PM.

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
Open Source Consulting | Domain Registration