Convert IMG image to ISO on Linux

Unfortunately, IMG images cannot be burnt directly, so we convert them to ISO. There is a nice tool called ccd2iso to accomplish this task.

$ ccd2iso <IMG input file> <ISO output file>

Sometimes the above attempt results in an error message, such as

Unrecognized sector mode (0) at sector 0!

When viewing the img file with VLC or SMPlayer, it seems to be fine, however.

I apply the following ‘trick’: mount the img as virtual drive

$ mount -o loop <img file> <mountpoint>

make an ISO of the directories itself

$ mkisofs --dvd-video -o <iso output file>  <mountpoint>

works like a charm!

1 Comment

  1. works like a charm!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: