quarta-feira, setembro 30, 2009

How to convert from img to iso file format

Today I needed to convert a file from .img file format to .iso file format.

The following are the steps to do so:
  • create a directory.
    mkdir ~/mydir.d

  • mount .img file into the created directory. You must perform this task as root.
    sudo mount -o loop myimage.img mydir.d

  • In order to generate the iso, issue the command:
    genisoimage -o myimage.iso mydir.d/
That is all. Now you have your file in iso file format (myimage.iso).

Nenhum comentário: