LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-21-2005, 08:09 AM   #1
Rory in Toronto
Member
 
Registered: Mar 2004
Posts: 136

Rep: Reputation: 15
how to convert .img to .iso files


I'm trying to figure out how to play a .img movie file (legal) that I downloaded but I'm stumped.

Xine and Mplayer won't play them from the computer.

I couldn't figure out how to just burn the img file in k3b on to a DVD to play. Just didn't work.

I've been told the only way to do this in Linux is to convert the img file to an iso file and then burn it with K3b. Is this correct?

Any solutions people can share?

I'm using SuSE 9.3.

Thanks,
Rory
 
Old 05-21-2005, 08:43 AM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
You can try to mount it from disk, like # mount file.img -t iso9660 -o loop /mnt

You can also try to rename .img to .iso and burn the .iso with the built-in option of k3b.
 
Old 05-21-2005, 08:50 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
I haven't been able to test this ( no dvd recorder ) but you could try .....
Code:
mkisofs -f -r -udf -o /home/myfiles.iso myfile.img
dvdrecord -v dev=/dev/dvdrw driveropts=burnproof -dao -data myfiles.iso
 
1 members found this post helpful.
Old 05-21-2005, 04:16 PM   #4
Rory in Toronto
Member
 
Registered: Mar 2004
Posts: 136

Original Poster
Rep: Reputation: 15
Hmm... none of this worked. Weird. I'm basically trying to just play an .img file. I would think k3b (which is the best program of its kind I've ever used) would be able to handle this.

Any other suggestions?
 
Old 09-21-2011, 02:43 PM   #5
aasami
LQ Newbie
 
Registered: Apr 2011
Posts: 17

Rep: Reputation: 0
Thumbs up It works!

It workes for me!
I dowloaded .img of MeeGo 1.2 and wanted to try it out in VirtualBox. I was unable to mount it. But homey's suggestion works great! Thank you.
 
Old 09-21-2011, 05:18 PM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
There's also a small utility called iat that will convert various image formats to iso. If it isn't available from your distro's repositories, go here:

http://iat.berlios.de/
 
Old 12-05-2011, 03:38 AM   #7
Linux_420
LQ Newbie
 
Registered: Dec 2011
Distribution: Fedora
Posts: 27

Rep: Reputation: Disabled
the .img is a generic term. it is a binary file and if you don't know the filesystem they can be troublesome to mount. try this command when you are trying to mount an unknown filesystem:

mkdir /tmp/mount/
sudo mount -t debugfs /path/to/file.img /tmp/mount/

if you can get it mounted then list the contents using:

ls /tmp/mount/

after mounting sucessfully you can make a new file, format it with the filesystem you would like to use (cd's and dvd's use iso9660 format) and then copy the contents to it (obviously the files may need to be edited to make a dvd that you can pop in your dvd player)

if you can't get it mounted try opening the file with VLC (video lan client)

i have had success with this command... and even more success from learning how to read manuals (they almost have a 'syntax' of their own)

Last edited by Linux_420; 12-05-2011 at 03:44 AM.
 
1 members found this post helpful.
Old 12-05-2011, 05:02 PM   #8
jefro
Guru
 
Registered: Mar 2008
Posts: 11,516

Rep: Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403Reputation: 1403
I'd agree with Linux 420. The .img file is as you say a copy of some movie in some format. Not an actual image like dd or rawrite.

The image may be an image created by a software of some dvd or blu-ray. Knowing that software would help. I get the feeling .img was an old roxio format?? Is it some apple deal?
 
Old 12-07-2011, 03:57 PM   #9
Linux_420
LQ Newbie
 
Registered: Dec 2011
Distribution: Fedora
Posts: 27

Rep: Reputation: Disabled
Quote:
I get the feeling .img was an old roxio format?? Is it some apple deal?
.img is used as lots for lots of stuff .. read Wikipedia entry on IMG (file format)

Quote:
The IMG file format is one of the following files:

1. A CD or DVD image file, essentially equivalent to an ISO file. On such a file, simply changing the extension from IMG to ISO can make it usable as the latter by most programs.
2. An archive format used for creating a disk image of floppy disks and HDDs. This allows for digital storage, transmission, and replication of floppy disks and HDDs. Files created using this format typically use the ".IMG" file extension. There are different, incompatible image formats which use the .IMG extension.
3. A file in the Macintosh Disk Image format used by Aladdin Systems (now Allume Systems) ShrinkWrap and Apple Disk Copy for Mac OS although they share the same file extension.
4. The IMG file format, also known as GEM IMG, is an image file format used to store bitmap digital images on Graphical Environment Manager.
5. A graphics image format used in various ways by many different graphics software packages.



http://en.wikipedia.org/wiki/IMG_(file_format)
Still, I can put the .img file extension (or no file extension at all) on anything I wish.
People use the terms "image" & "imaging" alot & most of the time it refers to a byte for byte copy of a disk (HDD, HDD partition, CD, DVD, Flash, etc.).
 
Old 11-03-2013, 08:54 AM   #10
juanbox
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
Smile Just renaming the file worked to me ...

Quote:
Originally Posted by Moloko View Post
You can try to mount it from disk, like # mount file.img -t iso9660 -o loop /mnt

You can also try to rename .img to .iso and burn the .iso with the built-in option of k3b.
Just renaming the file / changing the extension of the file worked to me, in my case I was trying to conver the meego image with extension .img to iso and worked like that, so simple.

Hope it works to you too ...

juanbox
 
  


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
How to convert DVD.iso to CD.iso? bigrigdriver Linux - Software 6 02-17-2007 02:13 AM
how to create iso img huno Linux - Software 6 03-20-2006 06:43 AM
IMG and ISO files morneo Linux - Newbie 4 03-26-2005 03:38 AM
.img -> .iso converter RDove Linux - Software 3 07-21-2004 05:31 PM
How to use .img.gz files...... TheDirtyPenguin Linux - General 1 02-11-2004 04:40 AM


All times are GMT -5. The time now is 10:33 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