October 25, 2008 · General ·

Sponsored Link
An ISO image is an archive file (a.k.a. disk image) of an optical disc using a conventional ISO (International Organization for Standardization ) format that is supported by many software vendors. ISO image files typically have a file extension of .ISO. Occasionally, you might come across a disc image in the BIN format. While there are ways to use BIN/CUE’s in Linux, it is much easier to convert them to the standard ISO format.

bchunk (BinChunker)

CD image format conversion from bin/cue to iso/cdrThe bchunk package contains a UNIX/C rewrite of the BinChunker program. BinChunker converts a CD image in a .bin/.cue format (sometimes .raw/.cue) into a set of .iso and .cdr/.wav tracks. The .bin/.cue format is used by some non-UNIX CD-writing software, but is not supported on most other CD-writing programs.

Install bchunk using the following command

sudo aptitude install bchunk

This will complete the installation.

Using bchunk

bchunk syntax

bchunk [-v] [-p] [-r] [-w] [-s] <image.bin> <image.cue> <basename>

Available options

-v -- Makes binchunker print some more unnecessary messages, which should not be of interest for anyone.

-w -- Makes binchunker write audio tracks in WAV format.

-s -- Makes binchunker swap byte order in the samples of audio tracks.

-p -- Makes binchunker go into PSX mode and truncate MODE2/2352 tracks to 2336 bytes at offset 0 instead of normal 2048 bytes at offset 24.

-r -- Makes binchunker output MODE2/2352 tracks in raw format, from offset 0 for 2352 bytes. Good for MPEG/VCD.

Bchunk Example

bchunk IMAGE.bin IMAGE.cue IMAGE.iso

Using CDemu

You can also use CDemu to do this and the ubuntu ppa as follows

deb http://ppa.launchpad.net/cdemu/ubuntu hardy main
deb-src http://ppa.launchpad.net/cdemu/ubuntu hardy main

Packages available

cdemu-client
cdemu-daemon
gcdemu
libmirage
mirage-image-analyzer
vhba-module

Mount ISO Files in Ubuntu

If you want to mount iso use this or this or this tutorial.

Sponsored Link

17 Comments to “How to Convert .BIN/.CUE Files to .ISO in Ubuntu”

  1. told says:

    this is very useful for me.
    but i wanna know the difference between aptitude and apt-get.

  2. Swapnil Jain says:

    apt-get moo
    aptitude moo
    aptitude moo -v
    aptitude moo -vv

    aptitude moo -vvvvvv

    you’ll find the difference

  3. Swapnil Jain says:

    this one is nice. there are tools available in ubuntu repo. like ISO Master. This is a graphical CD image(.iso) editor. You can use isomaster to:

    – add files to an image
    – extract files from an image
    – delete files from an image

  4. Peppino says:

    You can also use this buc:
    http://linux.billera.eu/?p=405
    and mount iso image

  5. Paul says:

    Is there a similar way to do this with .IMG files? For example ISO > IMG or BIN/CUE > IMG

  6. design says:

    This is an example of just how powerful the terminal is in Linux.

  7. BharatBSahni says:

    Simply;
    1.Select the file of which format is to be changed
    2.Press F2
    3.Change the format .cue/.bin to .mpg/.mpeg

    Play it on Movie Player

    Enjoy

  8. DiGitalX says:

    nice and slow 😀
    works for me

  9. tsomogyi says:

    bchunk doesn’t create IMAGE.iso, but a couple of cdr files:
    IMAGE.iso01.cdr
    IMAGE.iso02.cdr

    IMAGE.iso0N.cdr where N=number of tracks.
    So yet again I ended up with another set of strange files instead of iso…

  10. NxGTR says:

    bchunk works perfect!, just tested on Kubuntu 42 AMD64

    nxgtr@ssdmonster:~$ bchunk sr-wrmrd.bin sr-wrmrd.cue wormsreloaded.iso

  11. Sulaiman says:

    SUPER. Thanks

  12. joe says:

    Thanks!

    That really helped me.
    🙂

  13. ace says:

    Thanks a lot for the tutorial. Worked fine!

  14. John Luke says:

    Too bad bchunk doesn’t actually work, or at least it doesn’t on Precise Pangolin; just spits out empty CDR and ISO files no matter what I do.

    I’m officially tired of leaving my media trapped in cue sheets and bin files. I will resort to fixing this in a Windows program if I have to, because no open-source program so far actually does jack ****. It’s like trying to beat down a brick wall with a broom.

  15. BASTA! says:

    UNFORTUNATELY if the .bin contains both a data track and some audio tracks, this utility will not produce a single burnable/mountable ISO file. Instead it will save the tracks into separate files.

  16. Aaron says:

    Used this on Raring Ringtail for PSX games, had to use the -r flag but works perfectly.

Leave a Reply

  • Recent comments