How can I convert a .cue / .bin ( with cdr tracks) image into a single .iso file?

46,024

Solution 1

You should look at bchunk, which is specifically meant for this type of conversion. You should be able to install it with sudo yum install bchunk, but I'm only 95% sure it's in the standard repo. bchunk will create an ISO from any data tracks, and CDR for any CD audio. If you want everything in one ISO bchunk is not appropriate.

The syntax is like this,

bchunk IMAGE.bin IMAGE.cue IMAGE.iso

To create a single ISO with all the tracks in one take a look at bin2iso. bin2iso is most likely not included in your standard repo. Although RPMs do exist unofficially online. I would recommend using PowerISO over bin2iso, as bin2iso is fairly non-updated.

bin2iso <cuefile>

You also would be able to the conversion PowerISO. It is commercial software, but the linux version is freeware. Sometimes if I have problems with the Free Software for different image conversions, I give PowerISO a go.

Solution 2

If the BIN file contains CD-Audio tracks you cannot convert it to an ISO image! The reason for this is that, unlike e.g. a CD-ROM, the data structure of an audio CD is fundamentally incompatible with an ISO 9660 file system. See the link below for a paper that gives a good explanation of this:

http://journal.code4lib.org/articles/9581

However, you could use bchunk (as suggested above) with the -w option, which generates output in WAV format. Command line would be something like this:

bchunk -s -w IMAGE.bin IMAGE.cue IMAGE

This will create WAV files for each audio track, e.g.:

IMAGE001.wav
IMAGE002.wav

Etcetera. The -s switch does a byte swap on the audio samples. If you omit it, the Endianness of the WAVs will be wrong, and they will play as static noise (a least that's what happened when I last tried).

Share:
46,024

Related videos on Youtube

Rafael
Author by

Rafael

My main role as IT proffessional is Web Developer.

Updated on September 18, 2022

Comments

  • Rafael
    Rafael almost 2 years

    How can I convert a .cue / .bin (cdr track) image into a single .iso file?

    I have Fedora 16 (x86-64)

    Linux 3.1.9-1.fc16.x86_64 #1 SMP Fri Jan 13 16:37:42 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
    
  • J. M. Becker
    J. M. Becker over 12 years
    That .cdr is a CD Audio file, which would make that BIN/CUE a multitrack Audio/Data disc. Which i'm guessing is why it was simpler to go BIN/CUE. I'm looking for an answer if this is posible. Is this for use in an Emu?
  • J. M. Becker
    J. M. Becker over 12 years
    really this might be time to attempt this with PowerISO, It seems to handle everything so clean. Its a shame our CD opensource tools are so deficient.
  • J. M. Becker
    J. M. Becker over 12 years
    I updated my answer, your not going to get much more complete than this.
  • Rafael
    Rafael over 12 years
    yeah i'm trying to use the iso in a old system emulator
  • Avindra Goolcharan
    Avindra Goolcharan over 3 years
    Woah, nice to see PowerISO is available on linux, and free. That was one of the essential apps for Windows.