Centos 6/RHEL convert and mount Bin/Cue to Iso with BinChunker


Sometimes, you have media which is in bin/cue format such as the test_archive.bin/cue which I have backed up.

The majority of programs for manipulating them are Windows only and there doesn't seem to be a way of dealing with them directly on the Linux command line.

Well, you can actually access the individual files within a bin/cue archive using BinChunker and a few commands.

First we need to install bchunk from the Rpmforge repo.


$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

$ sudo vi /etc/yum.repos.d/rpmforge.repo

See vi and vim commands.

Disable it by default set enabled to '0'

Now install BinChunker.

$ sudo yum -y --enablerepo=rpmforge install bchunk



BinChunker

BinChunker can do other things like write audio files to wav but for now we just want the iso conversion

Test already mounted volumes

You can test what is mounted by using one of below as root

# df -H

Filesystem             Size   Used  Avail Use% Mounted on
/dev/mapper/vg_centos-lv_root
                        53G   5.5G    45G  11% /
tmpfs                  3.2G      0   3.2G   0% /dev/shm
/dev/sdb2              508M    33M   450M   7% /boot
/dev/mapper/vg_centos-lv_home
                       224G   9.0G   204G   5% /home


# mount

/dev/mapper/vg_centos-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sdb2 on /boot type ext4 (rw)
/dev/mapper/vg_centos-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)


Mount and access the bin/cue files 

Now after moving to the directory containing the test_archive.bin & cue files, issue the command

$ bchunk test_archive.bin test_archive.cue test_archive    

This converts the bin/cue files to an iso file extension which can now be mounted, example terminal output below.

$ ls

test_archive01.iso
test_archive.bin  
test_archive.cue

So first make a directory to mount it

$ sudo mkdir /mnt/iso

Now mount it, remembering the 'what to where' rule

$ sudo mount -o loop /home/anton/test_archive01.iso /mnt/iso

Now its mounted you can view the contents with ls

[anton@Centos iso]$ ls /mnt/iso
01. Introduction                             08. User Interfaces & Desktops
02. System Architecture                      09. Administrative Tasks
03. Linux Installation & Package Management  10. Essential System Services
04. GNU & Unix Commands                      11. Networking Fundamentals
05. More GNU & Unix Commands                 12. Security
06. The Filesystem in a Hierarchy            13. Conclusion
07. ShellsScripting & Data Management        14. Credits

Which in this case shows folders containing videos about Linux.

Or in another example shows the contents of a Salix OS disk


[anton@Centos ~]$ ls /mnt/iso
[BOOT]         isolinux  PACKAGELIST   PACKAGES.TXT.gz
CHECKSUMS.md5  kernels   PACKAGES.TXT  salix

These can now be viewed in a video player or copied elswhere using cp or file manager if in GUI

For another program which can manipulate isos and complements BinChunker check out Isomaster

Labels: , , , ,