How to Convert an IMG File to ISO File in Linux
In Linux, you will frequently come across a file in the .ISO format. Most Linux distributions provide their LiveCD downloads in ISO format, as it is easier to work with in Linux. However, there are times when you come across an IMG file and have no idea how to deal with it. In this article we will show you how you can easily convert an IMG file to ISO format.
What Is IMG Format?
An IMG file can be many things, but usually, the format refers to image copies of CDs and DVDs. Even then, the format has (at least) two different variants (that we know of): the “generic” IMG type of CD and DVD copies and the CloneCD version, which is usually accompanied by two more files with extra info about the optical disc.
Converting IMG to ISO
The primary tool for converting both those types of CD images to ISO format is ccd2iso. Although it’s a command-line tool, it’s pretty straightforward to use. To install ccd2iso on any Ubuntu-based distribution, use:
Afterward, to convert any IMG file to ISO format, use:
Yes, it is as simple as that.
After a short time, you will find the converted ISO file next to your original IMG file.
A GUI Tool to Convert IMG to ISO
If you prefer a GUI, you should try acetoneiso. Install it with:
Continue by launching it and accepting the suggested settings. Don’t try to convert your IMG file to an ISO with it yet – it won’t work, and the program will suggest you visit PowerISO‘s site and Download the “PowerISO Command Line Utility for Linux.”
We downloaded the file to our default Downloads folder. If you save it elsewhere, remember to swap the path.
Open a terminal and move to the acetoneiso folder with:
Extract PowerISO from the file you downloaded with your equivalent of:
Return to AcetoneISO and from the “Image Conversion” menu, select “Convert Image to ISO.” Choose your original IMG file, enter a path and name for the converted file in the next step, and, after a short wait, your ISO will be available.
Different Tool, Same Process
A newer and more versatile tool, iat , can read IMG files and many more CD image formats and either convert them to ISO files or directly “burn” them to disk.
We left it for last, though, because it failed in one case while testing it.
To initiate a conversion, use the following command:
Finally, if everything we saw here failed, maybe you should consider the possibility of your IMG file not being a CD or DVD image. As we said at the very beginning, “an IMG file can be many things,” such as a hard disk and partition backups.
A good hint you’re dealing with “that type of IMG file” would be its size: if it’s much larger than 4.5GBs, it’s probably not an optical disc backup. Dual-layer DVDs that can hold double the amount of data of a standard DVD remains relatively rare for the whole optical media era. Hence, files close to or over that size are probably partition backups. And those are a wholly different story.
OK’s real life started at around 10, when he got his first computer – a Commodore 128. Since then, he’s been melting keycaps by typing 24/7, trying to spread The Word Of Tech to anyone interested enough to listen. Or, rather, read.
How can I convert an .img file to .iso?
I have a file.img file that I want to convert to file.iso .
The tool ccd2iso does not seem to work for this task:
I ensured that the img file is not corrupted.
3 Answers 3
I suggest you to use iat (”Iso9660 Analyzer Tool“):
First install the package
You can convert the image using the command
In my case, the tool ran for about half a minute (
3GiB image file). The output looked like this:
According to the man page, the supported formats are (at least) BIN, MDF, PDI, CDI, NRG, B5I, and, of course, ISO-9660.
Iso9660 Analyzer Tool is not maintained anymore. It had been published to BerliOS, which is not online anymore. However, here are some working links:
a list of ”reference sites“:
some links which might be interesting for you if iat is not what you need:
How to Convert img to iso Linux Step by Step Guide
by ARK · Published June 1, 2017 · Updated August 19, 2017
ccd2iso is Utility/Tool which converts File.img to ISO format and writes the result to File1.iso. No Arguments are required for ccd2iso tool while trying to convert img to iso Linux
IMG files are raw-data copies of optical media, generated primarily by the Windows application CloneCD, and are primarily used to store CDs with odd properties, such as sectors which need to have read errors when read. Conversion to ISO format removes this information, as ISO format does not support this.
IMG files almost always include a SUB file, which contains additional data for the disc format, and a CCD file, which is a plain text configuration file describing the disc layout. ccd2iso does not make use of these files, but the applications which generate them expect them to have the same FOO prefix as the IMG file.
How to Convert img to ISO Linux ccd2iso Tool
Using ccd2iso convert command
Sometimes you may get below error but ignore
Another Way to convert img to ISO file
mount the img file to mount point and convert the same data to iso
make an ISO of the directories itself
works like a charm!
arch linux convert img to iso, conversion img iso linux, convert .img to .iso linux, convert img file to iso linux, convert img to bootable iso linux, convert img to iso in linux, convert img to iso linux, convert img to iso linux mint, convert img to iso linux ubuntu, convert img to iso on linux, how to convert .iso to .img linux, how to convert img to iso linux, linux convert iso to usb img, linux convert udf img to iso
Thanks for your wonderful Support and Encouragement
Convert img to iso linux
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.