coLinux
Advertisement

Howto access a CD/DVD drive of the host Windows system[]

First of all, make sure that you don't use the drive from within windows, e.g. inside an explorer window.

Add the drive to the colinux xml configuration file[]

Add a line to your config.xml file (see Configuration XML format), similar to the following one:

<block_device index="2" path="\Device\Cdrom0" enabled="true"/>

You may add more than one of these lines, if you have more than one CD/DVD drive. Make sure that the index value is unique for all block_device entries in your xml file.

Mount the drive while running the coLinux system[]

Now you should (re-)boot your coLinux system and then type the following:

mount -t iso9660 /dev/cobd2 /cdrom

The number in /dev/cobd2 should match the index number from the xml file above.

This will try to mount the device /dev/cobd2 to the /cdrom directory using the filesystem type iso9660 (the CD/DVD filesystem type).

Beware that the possibly upcoming error messages can be misleading. For example, if you are already using the drive from within windows, or you don't have a CD in the drive, you might get a message like: "mount: /dev/cobd2: unknown device"

However, a warning like: "Unable to load NLS charset iso8859-1" can usually be ignored.

Unmount the drive while running the coLinux system[]

If you no longer need the cdrom, you may unmount it typing:

umount /cdrom

You will get an error like: "umount: /cdrom: device is busy" if the drive is still in use.

Add an entry to /etc/fstab[]

After you've successfully mounted your drive, you may want to add it to your common filesystems using the file /etc/fstab.

For Debian:

Edit the text file /etc/fstab (the filesystem table):

editor /etc/fstab

and add the following line:

/dev/cobd2 /cdrom iso9660 defaults,noauto

This makes your drives settings permanent. The drive will not be mounted at boot time "noauto" (which is usually not desired for CD/DVD drive).

After these changes, you can simply mount your drive (without worrying about the detailed settings) using:

mount /cdrom

or unmount it accordingly:

umount /cdrom

Add a debian CD/DVD to use as an apt source[]

While slightly out of topic, added here as no better place available.

You might have a look at: http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html#s-cdrom


MassTranslated on Sun Apr 23 17:35:39 UTC 2006

Advertisement