Thursday, December 17, 2009

How to mount a CD ROM in Solaris

Determine the name of the device by entering the following command:

   ls -al /dev/sr* |awk '{print "/" $11}'

This command returns the name of the CD-ROM device. In this example, the command returns the string /dev/dsk/c0t6d0s2.

Enter the following commands to mount the CD-ROM:

   mkdir -p /cdrom/unnamed_cdrom
   mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom/unnamed_cdrom

where /dev/dsk/c0t6d0s2 represents the name of the device that was returned in the preceding step and /cdrom/unnamed_cdrom represents the CD-ROM 3 mount directory.

No comments: