[http://cdemu.sourceforge.net/ CDemu] enables you to use disc images that contain more than a standard ISO-9660 filesystem, like .bin/.cue, .nrg, or .ccd images. It's needed only because <tt>mount</tt> can only directly handle .iso disc images, which can only contain a single filesystem, but many CDs have multiple sessions, mixed data/audio tracks, etc. In short you can mount nearly any kind of image file with ease using cdemu.

+

[http://cdemu.sourceforge.net/ CDemu] is a software suite designed to emulate an optical drive and disc (including CD-ROMs and DVD-ROMs). It enables you to use other disk image formats that contain more than just the standard ISO-9660 filesystem, for instance .bin/.cue, .nrg, or .ccd images. {{Ic|mount}} can directly handle only .iso disc images (which contain a single filesystem), but many images contain multiple sessions, mixed data/audio tracks… In short, cdemu enables you to mount nearly any kind of image file with ease.

==Installation==

==Installation==

+

CDemu can be [[pacman|installed]] with the package {{Pkg|cdemu-client}}, available in the [[official repositories]].

+

To enable the daemon in systemd run:

+

# systemctl enable cdemu-daemon.service

−

# pacman -S cdemu-client

+

===GUI===

+

There are several GUIs available in the [[AUR]].

−

This will install the dependencies as well.

+

* GTK/Gnome: {{AUR|gcdemu}} is the official GTK version, which also provides a GNOME panel applet.

+

* KDE: {{AUR|kde-cdemu-manager}} is the KDE equivalent which also integrates with Dolphin's Actions menu when right clicking an image file.

−

==Configuration==

+

==Examples==

+

Loading a single image to first device:

+

# cdemu load 0 ~/image.mds

−

To configure CDemu, edit {{Filename|/etc/conf.d/cdemud}}. You can change the number of drives to emulate, the control device, and which audio backend to use.

+

Loading multiple-file image to first device:

+

# cdemu load 0 ~/session1.toc ~/session2.toc ~/session3.toc

−

===Configure to run at boot===

+

Loading a text-based image in non-ASCII/non-Unicode encoding:

+

# cdemu load 0 ~/image.cue --encoding=windows-1250

−

If you want start cdemu at boot add vhba to the modules and cdemud to the daemons section in {{Filename|/etc/rc.conf}}.

+

Loading an encrypted image with password provided as an argument:

+

# cdemu load 0 ~/image.daa --password=seeninplain

−

=To Run=

+

Unloading first device:

+

# cdemu unload 0

−

First we need to check if the vhba module is present and working.

+

Displaying device status:

+

# cdemu status

−

# modprobe vhba

+

Displaying device mapping information:

+

# cdemu device-mapping

−

We also need to start the cdemu daemon:

+

Setting daemon debug mask for the first device:

+

# cdemu daemon-debug-mask 0 0x01

−

# /etc/rc.d/cdemud start

+

Obtaining library debug mask for the first device:

+

# cdemu library-debug-mask 0

−

==Commands and Usage==

+

Disabling DPM emulation on all devices:

−

[From man]

+

# cdemu dpm-emulation all 0

−

Loading a single image to first device:

+

Enabling transfer rate emulation on first device:

−

cdemu load 0 ~/image.mds

+

# cdemu tr-emulation 0 1

−

Loading multiple-file image to first device:

+

Changing device ID of first device:

−

cdemu load 0 ~/session1.toc ~/session2.toc ~/session3.toc

+

# cdemu device-id 0 "MyVendor" "MyProduct" "1.0.0" "Test device ID"

−

Loading a text-based image in non-ASCII/non-Unicode encoding:

+

Enumerating supported parsers:

−

cdemu load 0 ~/image.cue --encoding=windows-1250

+

# cdemu enum-supported-parsers

−

Loading an encrypted image with password provided as an argument:

+

Enumerating supported fragments:

−

cdemu load 0 ~/image.daa --password=seeninplain

+

# cdemu enum-supported-fragments

−

Unloading first device:

+

Enumerating supported daemon debug masks:

−

cdemu unload 0

+

# cdemu enum-daemon-debug-masks

−

Displaying device status:

+

Enumerating supported library debug masks:

−

cdemu status

+

# cdemu enum-library-debug-masks

−

Displaying device mapping information:

+

Displaying daemon and library version:

−

cdemu device-mapping

+

# cdemu version

−

+

−

Setting daemon debug mask for the first device:

+

−

cdemu daemon-debug-mask 0 0x01

+

−

+

−

Obtaining library debug mask for the first device:

+

−

cdemu library-debug-mask 0

+

−

+

−

Disabling DPM emulation on all devices:

+

−

cdemu dpm-emulation all 0

+

−

+

−

Enabling transfer rate emulation on first device:

+

−

cdemu tr-emulation 0 1

+

−

+

−

Changing device ID of first device:

+

−

cdemu device-id 0 "MyVendor" "MyProduct" "1.0.0" "Test device ID"

+

−

+

−

Enumerating supported parsers:

+

−

cdemu enum-supported-parsers

+

−

+

−

Enumerating supported fragments:

+

−

cdemu enum-supported-fragments

+

−

+

−

Enumerating supported daemon debug masks:

+

−

cdemu enum-daemon-debug-masks

+

−

+

−

Enumerating supported library debug masks:

+

−

cdemu enum-library-debug-masks

+

−

+

−

Displaying daemon and library version:

+

−

cdemu version

+

Revision as of 10:48, 8 February 2013

CDemu is a software suite designed to emulate an optical drive and disc (including CD-ROMs and DVD-ROMs). It enables you to use other disk image formats that contain more than just the standard ISO-9660 filesystem, for instance .bin/.cue, .nrg, or .ccd images. mount can directly handle only .iso disc images (which contain a single filesystem), but many images contain multiple sessions, mixed data/audio tracks… In short, cdemu enables you to mount nearly any kind of image file with ease.