Converting IMG to ISO

Post about and submit your favourite software for Linux.
5 posts Page 1 of 1
Contributors
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Converting IMG to ISO
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.
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Converting IMG to ISO
Agust1337
hmm, i didn't know you could convert Image format into a ISO format? :?
You're crazy!
I'm not crazy, my mother had me tested. ~Sheldon Cooper
User avatar
mikethedj4
VIP - Site Partner
VIP - Site Partner
Posts: 2592
Joined: Thu Mar 25, 2010 4:36 am

Re: Converting IMG to ISO
mikethedj4
a .img is a virtual floppy image/disk just like a .iso is a virtual cd/dvd disk.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Converting IMG to ISO
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
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

Re: Converting IMG to ISO
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:
You're crazy!
I'm not crazy, my mother had me tested. ~Sheldon Cooper
5 posts Page 1 of 1
Return to “Software”