Difference between revisions of "CDemu"

From ArchWiki
Jump to: navigation, search
m (fixed headers and formatting, increased readability, content is mostly the same)
Line 1: Line 1:
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]
 
[[Category:Utilities (English)]]
 
[[Category:Utilities (English)]]
 
'''About'''
 
  
 
[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] 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.
  
'''Installing CDemu:'''
+
=Installation=
  
$ pacman -S cdemu-client
+
# pacman -S cdemu-client
  
 
This will install the dependencies as well.
 
This will install the dependencies as well.
  
$ modprobe vhba
+
=Configuration=
  
edit /etc/conf.d/cdemud
+
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.
  
$ /etc/rc.d/cdemud start
+
==Configure to run at boot==
  
 
If you want start cdemu at boot add vhba to the modules and cdemud to the daemons section in /etc/rc.conf.
 
If you want start cdemu at boot add vhba to the modules and cdemud to the daemons section in /etc/rc.conf.
  
'''Using CDemu:'''
+
=To Run=
 +
 
 +
First we need to check if the vhba module is present and working.
 +
 
 +
# modprobe vhba
 +
 
 +
We also need to start the cdemu daemon:
 +
 
 +
# /etc/rc.d/cdemud start
 +
 
 +
=Commands and Usage=
 
[From man]
 
[From man]
  
Line 73: Line 81:
 
       Displaying daemon and library version:
 
       Displaying daemon and library version:
 
               cdemu version
 
               cdemu version
--[[User:Blo|Blo]] 16:24, 2 October 2009 (EDT)
 

Revision as of 14:30, 26 April 2010


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 mount 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.

Installation

# pacman -S cdemu-client

This will install the dependencies as well.

Configuration

To configure CDemu, edit Template:Filename. You can change the number of drives to emulate, the control device, and which audio backend to use.

Configure to run at boot

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

To Run

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

# modprobe vhba

We also need to start the cdemu daemon:

# /etc/rc.d/cdemud start

Commands and Usage

[From man]

             Loading a single image to first device:
             cdemu load 0 ~/image.mds
      Loading multiple-file image to first device:
             cdemu load 0 ~/session1.toc ~/session2.toc ~/session3.toc
      Loading a text-based image in non-ASCII/non-Unicode encoding:
              cdemu load 0 ~/image.cue --encoding=windows-1250
      Loading an encrypted image with password provided as an argument:
              cdemu load 0 ~/image.daa --password=seeninplain
      Unloading first device:
             cdemu unload 0
      Displaying device status:
             cdemu status
      Displaying device mapping information:
             cdemu device-mapping
      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