Tag Archives: cdrom

IBM VIOS CDROM – DVDROM (Virtual Optical Device)

CDROM – DVDROM (Virtual Optical Device):

Any optical device equipped on the Virtual I/O Server partition (either CD-ROM, DVD-ROM, or DVD-RAM) can be virtualized and assigned at any logical partition, one at a time, using the same virtual SCSI adapter provided to virtual disks. Virtual optical devices can be used to install the operating system and, if DVD-RAM, to make backups.

Creating Virtual Optical Device:

1. On VIO Server create SCSI Server Adapter. This adapter is set to Any client partition can connect.
This dedicated adapter for the virtual optical device helps to make things easier from a system management point of view.

2. On client LPAR: create SCSI client adapter, mapping the id with the server adapter (above)

3. cfgdev (on vio) will bring up a new vhostX
cfgmgr (on client) will bring up a new vscsiX

4. On VIO Server create optical device:

-for using physical CDs and DVDs, create an optical device
$ mkvdev -vdev cd0 -vadapter vhost4 -dev vcd
vcd Available

$ lsdev -virtual

vcd             Available  Virtual Target Device – Optical Media

for file backed (iso images) optical device
$ mkvdev -fbo -vadapter vhost1
vtopt0 Available

$lsdev -virtual

vtopt0           Available   Virtual Target Device – File-backed Optical

(copy the iso image to /var/vio/VMLibrary, ‘lsrep’ will show media repository content)
(lssp -> mkrep -sp rootvg -size 4G    <–this will create media repository)
(creating an iso image: mkvopt -name <filename>.iso -dev cd0 -ro)

load the image into the vtopt0 device: loadopt -vtd vtopt0 -disk dvd.1022A4_OBETA_710.iso
(lsmap -all will show it)

or you can check it:
padmin@vios1 : /home/padmin # lsvopt
VTD             Media                                   Size(mb)
vtopt0          AIX_7100-00-01_DVD_1_of_2_102010.iso        3206

if later another disk is needed, you can unload an image with this command: unloadopt -vtd vtopt0
if we don’t need the image anymore at all we can remove it from the repository: rmvopt -name AIX_7100-00-01.iso

5. On client LPAR cfgmgr and create CDROM filesystem
In the AIX client partition run the cfgmgr command to assign the virtual optical drive to it. If the drive is already assigned to another partition you will get an error message and you will have to release the drive from the partition holding it.

create mount point: mkdir /cdrom

create cdrom filesystem: smitty fs -> add cdrom filesystems:
device name: cd0
mount point: /cdrom
mount automatically

mount the filesystem: mount -v cdrfs -r /dev/cd0 /cdrom

Solaris: Mounting a CD-ROM

In the Solaris operating system, a layer of software manages CD-ROM and other media.
This is the volume manager, which automates the interaction between you and your CDROMs.
Do not use this volume manager to mount CD-ROMs needed for the installation, as
the manager does not use the nomaplcase option. Without this option, some files on CDs can
not be found. Mount CD-ROMs for the installation manually as described in the following


For more information on configuring the volume management, see the SunOS Routine
System Administration Guide.
1. Log on as user root.


2. Check if vold (volume daemon) is running:
ps -ef | grep vold
3. Kill vold if it is running.
4. Insert the CD-ROM into your disk drive.
5. Create a mountpoint:
mkdir /sapcd
6. Mount the CD-ROM:
mount -F hsfs -o nomaplcase,ro /dev/dsk/c0t6d0s2 /sapcd
After the installation, you can start vold with the command /usr/sbin/vold.


Linux: How to Mounting a CD-ROM / DVD

1. Log on as user root.
2. Create a mount point for the CD-ROM with the command:
mkdir <CD-mountdir> (for example, <CD-mountdir> is /sapcd)
3. Mount the first CD-ROM device with the command:
mount -t iso9660 -r <device> <CD-mountdir>
where <device> is /dev/cdrom for non-SCSI CD-ROM devices and
/dev/scd<n> for SCSI drives with the device number <n>.
If the file names on the mounted CD-ROM are written in lowercase letters, remount the
CD-ROM with the following commands:
umount <device>
mount -t iso9660 -r -omap=off <device> <CD-mountdir>



HP-UX: Mounting a CD-ROM


Mounting a CD-ROM Manually:

  1. Log on as user root.
  2. Create a mount point for CD-ROM with the command:

mkdir <CD-mountdir>
(usually <CD-mountdir> is /sapcd).

3.      Make sure that the driver is part of the kernel (skip this step if the CD drive is already working):

grep cdfs /stand/system

If the driver is not configured, you have to add the string cdfs to the file /stand/system and rebuild the kernel.  Reboot the system after rebuilding the kernel.

4.      Mount the CD-ROM with the command:

mount -r -F cdfs /dev/dsk/<diskdevice> <CD-mountdir>
<diskdevice> is c0t4d0, a CD drive with hardware address 4.

Mounting a CD-ROM Using SAM:

1.      Enter the command


2.      Select:

Disks and Filesystems ? Disk Devices ? Actions ? Mount

3.      Enter the mount directory

(for example, <CD-mountdir> is /sapcd).

4.      Perform task.

5.      Exit SAM.