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
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityYou 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 prefer PowerISO over bin2iso
, as bin2iso
is fairly non-updated.
bin2iso <cuefile>
You could also do the conversion using 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.
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).
First use imgburner software which will make two different ISOs of bin and cue files. Then extract both the ISOs in one folder using Winrar.
Then one bin file will be created merged with cue file and after all convert the bin to ISO using the tool bin2iso.
cdmage loads in multi track files and saves them to 1 cue+bin file. Just tested it on psx Lucky Luke with 21 tracks and game runs smooth on my emulator after.
Find it!
diskfile1.iso
diskfile2.iso
to merge to result.iso
cat diskfile1.iso > result.iso
cat diskfile2.iso >> result.iso
done.