convert CD and DVD image formats – bin cue iso

If you’ve come across a pair of files from the net with the extensions bin and cue, you might find that there’s not a whole lot you can do with it in Ubuntu. To convert it to a more usable format like iso, you can use the binchunker application, which is in the repositories. To install bchunk, type the following command at a terminal window :

sudo apt-get install bchunk

If you have both the bin and cue files, all you have to do is type the following command:

bchunk   sourcefilename.bin  sourcefilename.cue  targetfilename

When the program completes, you will have a file called targetfilename01.iso

If you do not have a cue file and only have the bin file, all is not lost. The cue file is just a text file that contains track layout information, so it is still possible to create one. Assuming your bin file is called sourcefilename.bin, create a text file called sourcefilename.cue, and put the following lines into it:

FILE “sourcefilename.bin”  sourcefilename.cue  targetfilename BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00

You will typically be using MODE1 for the majority of CDs you encounter. The only other mode I have come across so far is MODE2, which is for Sony Playstation CDs.

After that, you can either burn the ISO to a CD or DVD using Brassero, or mount to your system.

sudo mkdir /mnt/iso
sudo mount -t iso9660 targetfilename01.iso /mnt/iso -o loop

Change directory to /mnt/iso, and voila, there’s your ISO file’s contents.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: