Today I needed to create an OEM Microsoft Office 2007 CD and found that I could download the disks directly from the Microsoft site. However, the files that I downloaded were in IMG format. At first I was puzzled, but quickly (via Google) found out that they were essentially ISO files. However, I did not quickly find anything in Ubuntu that would burn an IMG to disk.
Diligent searching finally revealed that while there were not really ways to burn an IMG to disk, or mount an IMG file directly, there is a tool called ccd2iso that converts the IMG to ISO format.
First I had to install the ccd2iso package via Synaptic package manager, or I could have used ‘sudo apt install ccd2iso’.
After installing this I could simply run the following command from terminal:
ccd2iso myfile.img myfile.iso
The same methods can be used for other image type files:
mdf2iso -> myfile.mdf
nrg2iso -> myfile.nrg
Now I have a regular iso file that can be used to serve our purposes by burning to disk or mounting:
sudo mount -o loop myfile.iso mountname or sudo mount -o loop -t iso9660 myfile.iso mountname
The .nrg files can also be mounted in this manner without converting to ISO by using:
sudo mount -o loop,offset=307200 myfile.nrg mountname
NOTE: if this doesn’t work and you get an error like: “Unrecognized sector mode (0) at sector 0!” it may be due to the limitations of the ccd2iso. In my case the MS Office disk had multiple sessions, and I could not convert it to ISO.
Another post I found on Ubuntuforums said to try the following:
growisofs -dvd-compat -Z /dev/dvdrw=dvd.img
Where /dev/dvdrw is your dvd/cd burner.
The IMG file I had from Microsoft was a multi-session disk so I was not able to use the steps above. However, when I simply changed the file extension to ‘.iso’ it worked fine. There seems to be very little difference between IMG and ISO.