Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Convert an IMG File to ISO on Linux

Identify the IMG format first, then use the appropriate optical-image converter or build a new ISO from files without assuming bootability will be preserved.

Table of Contents

There is no universal IMG-to-ISO conversion command. An .img file may already contain an ISO filesystem, raw optical-disc sectors, a single filesystem, or a complete disk with partitions. Identify it before choosing a tool.

Keep the original image and its companion files. Use a different output filename, ensure enough free space, and work only with images from a source you trust.

1. Identify what the IMG file contains

file "image.img"

If the result identifies an ISO 9660 filesystem, the file may already be an ISO image with a different extension. You can create a separately named copy:

cp -i -- "image.img" "image.iso"

This copies the bytes; it does not convert the format. A generic “data” result is inconclusive. A partition table or DOS/MBR description points toward a disk image, but some bootable ISO images also contain hybrid structures. Consult the source of the image and look for companion .cue, .ccd, or .sub files.

Image typeApproach
Already ISO-compatibleUse it directly, or copy it with an .iso extension
Supported CloneCD optical imageConsider ccd2iso
Optical image supported by iatUse iat's ISO output mode
Raw optical image with a matching CUE sheetUse bchunk with both files
Filesystem or partitioned disk imageKeep the original for restoration; create a separate data ISO only if you need its files

2. Convert a supported CloneCD image with ccd2iso

On Debian or Ubuntu, if the package is available in your enabled repositories:

sudo apt install ccd2iso

How to Convert IMG File to ISO File in Linux Picture 1

ccd2iso "source.img" "destination.iso"

How to Convert IMG File to ISO File in Linux Picture 2

The ccd2iso manual describes its optical-image purpose. It is not a converter for arbitrary hard-drive images. Conversion can discard disc-specific information that a standard ISO cannot represent, so retain the original companion files.

How to Convert IMG File to ISO File in Linux Picture 3

3. Try iat for supported optical-image formats

sudo apt install iat

How to Convert IMG File to ISO File in Linux Picture 4

The explicit ISO-output syntax documented by iat is:

iat --iso --input="source.img" -o "destination.iso"

How to Convert IMG File to ISO File in Linux Picture 5

Check the installed version's help if its options differ. Support for several optical formats does not imply support for every file ending in .img. If detection fails, identify the source format rather than repeatedly trying converters.

4. Use bchunk when you have a matching CUE file

A CUE sheet describes track types and offsets. Do not omit it or replace it with a guessed filename.

sudo apt install bchunk
bchunk -v "disc.img" "disc.cue" "converted"

The third argument is an output basename, not a single ISO filename. Depending on the tracks, bchunk creates numbered outputs such as converted01.iso and may create audio-track files. See the bchunk manual for format limits and options.

A command such as bchunk *.img output.iso is not a valid general batch-conversion method. Pair each image with its correct CUE sheet. If your source is a compressed emulator image, TipsMake's CHD file explanation covers that separate format.

5. Create a new data ISO from extracted files

If your goal is to package accessible files, extract them into a directory and build a new ISO. This differs from preserving a disk image's partitions and boot structure.

sudo apt install genisoimage
genisoimage -o "data.iso" -R -J "/path/to/files"

-R adds Rock Ridge information, while -J adds Joliet directory records. The genisoimage manual describes the supported extensions.

For a trusted image containing a single mountable filesystem, you can mount it read-only before using its files:

sudo mkdir -p /mnt/img_contents
sudo mount -o loop,ro "/path/to/image.img" /mnt/img_contents
genisoimage -o "/path/to/data.iso" -R -J /mnt/img_contents
sudo umount /mnt/img_contents

Run these as separate commands. A whole-disk image with partitions requires identifying the intended partition first; do not assume the direct mount command applies. Rebuilding files this way does not automatically preserve bootability, filesystem features, or all metadata.

Graphical tools and final checks

How to Convert IMG File to ISO File in Linux Picture 6

Graphical front ends such as AcetoneISO have offered image-conversion functions, sometimes through additional utilities. Availability and dependencies vary. Check the supported input format and current project instructions rather than installing an old bundled converter solely because a screenshot shows it.

After conversion, inspect the result with file and, for a trusted mountable ISO, mount it read-only to check representative files. Successful mounting verifies readability, not that an installer or recovery image will boot. Test bootable media in an appropriate disposable environment before depending on it.

If your goal is simply to write a supported image to USB, conversion may be unnecessary. TipsMake's USB boot-tool overview describes tools with different supported formats. File size alone cannot tell you whether an IMG is an optical or hard-drive image.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.