I have a
file.img file that I want to convert to
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.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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.
Iso9660 Analyzer Tool is not maintained anymore. It had been published to BerliOS, which is not online anymore. However, here are some working links:
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
sudo apt-get install gcdemu
For ddrescue, there is no package existing. You can download it there: http://sourceforge.net/projects/ddrescueview/
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.