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!
Advertisements
works like a charm!