• Top Members
    Reps
    Posts
  • 834 Replies
    2585 Replies
  • 716 Replies
    2026 Replies
  • 331 Replies
    1928 Replies

Converting IMG to ISO

User avatar
mikethedj4
VIP - Site Partner
Posts: 2593

Converting IMG to ISO

Fri Jul 29, 2011 2:01 am

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.
Image

User avatar
Agust1337
Coding God
Posts: 2454

Re: Converting IMG to ISO

Fri Jul 29, 2011 2:37 am

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
Posts: 2593

Re: Converting IMG to ISO

Fri Jul 29, 2011 3:09 am

a .img is a virtual floppy image/disk just like a .iso is a virtual cd/dvd disk.
Image

User avatar
mandai
Coding God
Posts: 2585

Re: Converting IMG to ISO

Fri Jul 29, 2011 11:46 am

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
Posts: 2454

Re: Converting IMG to ISO

Fri Jul 29, 2011 2:33 pm

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

Post Reply

Return to “Software”