Announcement

Collapse
No announcement yet.

HOWTO Convert various CDROM/DVDROM image types to .iso <A command line tutorial>

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HOWTO Convert various CDROM/DVDROM image types to .iso <A command line tutorial>

    After a recent bout of downloading, I found myself with several different types of CD/DVD images created on windblows machines. I prefer .iso files because it's much easer to mount, edit, extract and burn them IMO.

    Here's how you convert these other types to .iso:

    Types I have encountered, installing their required utilities, and the CLI entries to make them work:

    MDF/MDS
    sudo apt-get install mdf2iso
    mdf2iso filename.mdf filename.iso

    CUE/BIN
    sudo apt-get install bchunk
    bchunk filename.bin filename.cue filename.iso

    NRG
    sudo apt-get install nrg2iso
    nrg2iso filename.nrg filename.iso

    IMG
    sudo apt-get install ccd2iso
    ccd2iso filename.img filename.iso

    DAA
    wget http://poweriso.com/poweriso-1.3.tar.gz
    tar -zxvf poweriso.tar.gz
    ./poweriso convert filename.daa -o filename.iso -ot iso

    BONUS:
    Install isomaster to view, extract, or add files to an iso.
    To mount an iso and access it like a cd: sudo mount -o loop disk1.iso /mnt/disk

    Please Read Me

    #2
    The Nrg (Nero image) format

    About the particular Nrg (Nero image) format:

    What nrg2iso 0.4 does is basically this:

    Code:
    dd if=/path/to/image.nrg of=/path/to/image.iso bs=1024 skip=300
    That is to say, nrg2iso 0.4 basically strips the first 300 kilobytes. If we see its source code, we can see:

    Code:
          [...]
          nrgFile=fopen(argv[1],"rb");
          fseek (nrgFile, 307200, SEEK_SET);
          
          isoFile=fopen(argv[2],"wb+");
          
          while((i=  fread( buffer, 1, sizeof(buffer), nrgFile ))>0){
            fwrite(buffer,i,1,isoFile);
            [...]
    and so, some problems can happen.

    However, iat, "Iso9660 Analyzer Tool", takes more things into account.

    In very strange cases, if you have problems with iat to convert strange files from .nrg to .iso: you can use Nero Linux.
    Last edited by Ganton; Nov 23, 2012, 12:30 PM.

    Comment

    Working...
    X