Page 1 of 1

Converting IMG to ISO

Posted: Fri Jul 29, 2011 1:01 am
by mikethedj4
Well when I tried using the virtual floppy disk (.img) file in VirtualBox I kept getting errors, and I tried using ImageWriter to burn the .img file to my micro sd card so I can give MeeGo a try. However I kept getting errors, and then it hit me.

How could I convert an img file to a iso?

Well after searching in Synaptic Package Manager, and a search on Google I foundout how.

First you'll need to install ccd2iso. (code below will vary from distro to distro)
Code: Select all
sudo apt-get install ccd2iso
After that now converting an img file to a iso is as easy as eating chicken (ooooo do I love chicken :mrgreen:)

To convert an img to an iso you'd now put down the following code, after you've navigated to directory in which your img file is located.
Code: Select all
ccd2iso file.img file.iso
NOTE: I came across errors using this with other files so it won't work for every file, but it does work with most.

Re: Converting IMG to ISO

Posted: Fri Jul 29, 2011 1:37 am
by Agust1337
hmm, i didn't know you could convert Image format into a ISO format? :?

Re: Converting IMG to ISO

Posted: Fri Jul 29, 2011 2:09 am
by mikethedj4
a .img is a virtual floppy image/disk just like a .iso is a virtual cd/dvd disk.

Re: Converting IMG to ISO

Posted: Fri Jul 29, 2011 10:46 am
by mandai
You could also mount the img file and use mkisofs to create the ISO image.
Code: Select all
mkdir /mnt/imgfile
mount file.img /mnt/imgfile
mkisofs -o file.iso /mnt/imgfile

Re: Converting IMG to ISO

Posted: Fri Jul 29, 2011 1:33 pm
by Agust1337
mikethedj4 wrote:
a .img is a virtual floppy image/disk just like a .iso is a virtual cd/dvd disk.
Oh right, I knew that... lol :lol: