Friday, July 29, 2011

Convert IMG to ISO in Ubuntu

Convert IMG to ISO in Ubuntu

I downloaded the other day that it is on. The ISO, but it turned into. Img file instead, I could not find any program that has been accepted it. I was about to delete the file when I came across some instructions that can be converted to IMG, NRG and MDF ISO format for easy burning. 

First thing I did was to install the commands.

sudo aptitude install nrg2iso ccd2iso mdf2iso

Then you can use the following simple commands for converting to iso. Make sure you are in the same directory as the file you're converting,

For img to iso:
ccd2iso file.img file.iso

For mdf to iso:
mdf2iso file.mdf file.iso

For nrg to iso:
nrg2iso file.nrg file.iso

Once you have converted your file you can easily create an image disk using K3b or GnomeBaker.

Converting IMG files to Virtual Box VDI format

To avoid the installation of the VM itself, I've posted a file from a colleague of VM CentOS that post, I again did not convert it before you form that is compatible VDI of VirtualBox in the past ... after a little research, I have been very easy. Now we know that it is a process that you want the same thing with people who are willing to share ....

. Img file is that when you are running the following from the command line only.
Img files only work when you have the following from the command line.

Once you have the. Img file just run the following from command line:.

VBoxManage convertfromraw -format VDI [filename].img [filename].vdi

Depending on the size of .img file it might take a little while as for my desktop machine it took like around 5 minutes for converting a 4GB img file to vdi format. Once its all done just add the VDI file as another disk, attach it to a VM in VirtualBox… start the VM and you just got it all working