HOWTO: .img to .iso in Linux Ubuntu
Friday, February 1, 2008 | Labels: Ubuntu | |I just got a CD image from a friend and it comes in the format of .IMG. After some googling (shows how big Google has got :P), I found out that this sort of CD Image is usable by CloneCD; a Windows software.
But I do not want to burn it into a CD or anything, I just want to convert it into an ISO image and be able to mount it. A little more googling and there is a Windows software to convert IMG into ISO; MagicISO. It's a shareware, so I was only able to use this for a trial period; but it was enough to convert IMG to ISO.
So, it's WINE time!!!
1. Installing Wine. It's best to use the latest version. Follow these instructions from Wine website. This should be easy enough :)
Adding the WineHQ APT Repository:
First, open a terminal window. Then add the repository's key to your system's list of trusted APT keys by copy and pasting the following:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
Next, add the repository to your system's list of APT sources:
For Ubuntu Gutsy (7.10):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list
For Ubuntu Feisty (7.04):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list
For Ubuntu Edgy (6.10): *64-bit packages not available*
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/edgy.list -O /etc/apt/sources.list.d/winehq.list
For Ubuntu Dapper (6.06): *64-bit packages not available*
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/dapper.list -O /etc/apt/sources.list.d/winehq.list
For Debian Etch (4.0):
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/etch.list -O /etc/apt/sources.list.d/winehq.list
Then, you can install Wine from WineHQ like it were any other package, such as by using the Synaptic Package Manager under System->Administration. Alternatively, you can install from the terminal by running 'sudo apt-get update' to update APT's package information and then 'sudo apt-get install wine'.
2. After that is done. Get the shareware version of MagicISO from here.
3. Installing MagicISO. Browse to where you downloaded the Windows installer. Mine's in my Home.
cd ~
4. Change the permission to executable.
chmod +x Setup_MagicISO.exe
5. Give it some Wine goodness so that it gets a little drunk :P
wine Setup_MagicISO.exe
6. Finish up the installation
7. Launching MagicISO!
cd ~/.wine/drive_c/Program Files/MagicISO
wine MagicISO.exe
wine MagicISO.exe
8. Once MagicISO is launched, go to Tools > Convert to start converting IMG to ISO; or any type of CD image to ISO!
Of course you can always create a shortcut on your Desktop so that its easy for you to launch it next time :)
Good luck! :D
Note: There is a Linux program to convert IMG to ISO called KISO. It's a KDE program; and since I am running Gnome, I had to download TONNES of packages. Good news for KUbuntu users though :)
