Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: Disabled

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

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.

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
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,309

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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 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
Open Source Consulting | Domain Registration