I’ve read several threads about bin/cue files whilst trying to find out how to mount bin/cue files in linux – like daemon tools does in Windows. I found out how…
But first – why do so many people think bin files are so many different things!?? I’ve seen numerous times people just saying “use ‘mount -t iso9660 some.bin /some/dir'” – this is crap! (in most circumstances…). So i’d like to set the record straight: bin/cue files are paired.
– The bin file is a raw image of a cd. A cd is composed of sectors (approx. 333,000 on a 74min cd) of 2352 bytes each. Different types of cd use different amounts of space in the sectors for actual data. A normal PC cd will use 2048 bytes per sector – the rest of each sector is given over to error correction. PSX/VCD cds use 2336 bytes, Audio cds use the full 2352 bytes with no error correction. Since bin files are raw data images, they are larger than iso files. The bin image can contain of any type of cd.
– The cue file is necessary, it specifies the mode that a cd image is written in (see elsewhere for description of mode) and the number of bytes that have been read into the image per sector (normally 2352). Also index is specified. A typical cue file looks like:

FILE “image-name.BIN” BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00
The linux mount command will not mount a bin file. If you can mount a particular bin file then its an .iso file with a .bin extension.
To mount a .cue/.bin you can use cdemu. This is a kernel module that creates virtual cd drives, just like daemon tools. A userspace program allows you to link a bin/cue file pair to a virtual cd device, and then simply use the linux mount command to mount the virtual cd!! So, now you CAN mount .bin files!!!!
Skip this and install using the method below!
CdEmu Client:

Download the CdEmu client from http://cdemu.sourceforge.net.
Fire up terminal and navigate to the download:
cd ~/cdemu/package/
mkdir build && cd build
Get Cmake ready:
sudo apt-get install cmake-curses-gui
sudo apt-get install intltool
ccmake ..
Press ‘C’ to bring up the configuration screen. Here you can change any settings that you want. When you are ready press ‘C’ once and then ‘G’.

Now you are ready to compile and install:
make
sudo make install

CdEmu Daemon:

Next you need to install the daemon:

Mounting:

You are now ready to mount the image:
cdemu load 0 file.cue
Just do this:
sudo apt-get remove –purge cdemu*
sudo add-apt-repository ppa:cdemu/ppa
sudo apt-get update
sudo apt-get install cdemu-daemon cdemu-client gcdemu
You can then right click the .cue file to mount it!
Alternate method using Fuseiso (NOT TESTED):
Install fuseiso (sudo apt-get install fuseiso)
Run fuseiso -p image_file.bin /path/to/mount, and you should see the mount point fill up with files. This can be run as a normal user, and the directory doesn’t have to exist.
When finished, run fusermount -u /path/to/mount to unmount and remove the directory fuseiso created.
References:
Advertisements