7

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:

Unrecognized sector mode (0) at sector 0!

I ensured that the img file is not corrupted.

9

I suggest you to use iat (”Iso9660 Analyzer Tool“):

First install the package

sudo apt install iat

You can convert the image using the command

iat file.img file.iso

In my case, the tool ran for about half a minute (~3GiB image file). The output looked like this:

Iso9660 Analyzer Tool v0.1.3 by Salvatore Santagati
Licensed under GPL v2 or later

Detect Signature ISO9660 START at 32768
Detect Signature ISO9660 END at 36864

 Image offset start at 0
 Sector header 0 bit
 Sector ECC 0 bit
 Block 2048
Done

According to the man page, the supported formats are (at least) BIN, MDF, PDI, CDI, NRG, B5I, and, of course, ISO-9660.

additional info

Iso9660 Analyzer Tool is not maintained anymore. It had been published to BerliOS, which is not online anymore. However, here are some working links:

1

You can install cdemu like that:

  • First you add the repository:

    sudo add-apt-repository ppa:cdemu/ppa

  • Update your repo. list:

    sudo apt-get update

  • Install cdemu:

    sudo apt-get install gcdemu

For ddrescue, there is no package existing. You can download it there: http://sourceforge.net/projects/ddrescueview/

0

Mount the .img with CDemu (https://launchpad.net/~cdemu/+archive/ppa), and then use ddrescue (which should be in the repositories) to copy the contents of the mounted device to an .iso. Don't know if that will preserve autoboot features, though.

  • This answer would be a lot better if you could include, how to install cdemu and ddrescue, as well as an example command the OP would need to run. If you update it leave me a comment @markkirby I will give it a +1 – Mark Kirby Mar 22 '16 at 8:35
  • 2
    This answer is copied-and-pasted verbatim from qyot27's reply here – Nonny Moose May 24 '17 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.