Previous Table of Contents Next


Using a Local CD-ROM Drive (Solaris 2.0 or 2.1 System Software)

Follow these procedures to mount a CD-ROM from a command line.

1.  Become superuser.
2.  Insert the CD-ROM into the caddy and insert the caddy into the CD-ROM drive.
3.  Type mkdir /cdrom and press Return. You have created a mount point directory named /cdrom.
4.  Type mount -F file-system-type -o ro /dev/dsk/c0t6d0s2 /cdrom and press Return. For UNIX file system type, use -F ufs; for High Sierra file system type, use -F hsfs. The files are mounted on the /cdrom mount point.

If you want to simplify the mount process, you can add an entry to the /etc/vfstab file, as shown in the following steps:

1.  Become superuser.
2.  Edit the /etc/vfstab file and add the following entry. If the file-system-type is UNIX, use ufs; if the file-system-type is High Sierra, use hsfs.)
/dev/dsk/cØt6dØs2  -  /cdrom   file-system-type  -  no  ro

Alternatively, you can specify:
/dev/dsk/cØt6dØs2  -  /cdrom-hsfs hsfs -  no  ro
/dev/dsk/cØt6dØs2  -  /cdrom-ufs  ufs  -  no  ro
3.  Insert the CD-ROM into the caddy and insert the caddy into the CD-ROM drive.
4.  Type mount /cdrom and press Return. The CD-ROM files are mounted. If you use the alternative /etc/vfstab file format, you would type mount /cdrom-hsfs, or mount /cdrom-ufs, and then press Return.

Accessing Files from a Remote CD-ROM

These sections tell you how to set up a Solaris 2.x system with a remote CD-ROM drive to share files. The following procedure for sharing files works for Solaris 2.2 releases or greater.

How to Share CD Files from a Remote CD-ROM Drive

Before you can share CD-ROM files from a command line, the mountd daemon must be running. To find out if the mountd daemon is running, and to start it, you must do the following:

1.  On the system that has the CD-ROM drive attached, type ps -ef | grep mountd and press Return. If the mountd daemon is running, other systems can access shared files. However, if the mountd daemon is not running, you will need to stop NFS services and restart them. Be sure to notify any users of the system that NFS services will momentarily be interrupted.
2.  Become superuser.
3.  Type /etc/rc3.d/S15nfs.server stop and press Return. The NFS services come to a halt.
4.  Type /etc/rc3.d/S15nfs.server start and press Return. The NFS services restart and the CD files are exported.

Use the following steps to share CD files from a remote CD-ROM drive:

1.  Insert the CD-ROM into the caddy and insert the caddy into the drive. The CD-ROM is mounted.
2.  Become superuser on the Solaris 2.2 system with the CD-ROM drive attached.
3.  Type share -F nfs -o ro /cdrom/cdrom0 and press Return.


CAUTION! Volume management does not recognize entries in the /etc/dfs/dfstab file. With Solaris 2.3 and later volume management, you can set up remote CD-ROM mounts by editing the /etc/rmmount.conf file. Refer to the rmmount.conf manual page for more information.
oak% ps -ef | grep mountd
  root  4571  4473  5 12:53:51 pts/3    Ø:ØØ grep mountd
oak% su
Password:
# /etc/rc3.d/S15nfs.server stop
# /etc/rc3.d/S15nfs.server start
# share -F nfs -o ro /cdrom/cdromØ
# ps -ef | grep mountd
  root  4655  4473  6 12:56:Ø5 pts/3    Ø:ØØ grep mountd
  root  4649   1 47 12:55:25 ?        Ø:ØØ /usr/lib/nfs/mountd

How to Access Shared CD-ROM Files

You can use the /mnt directory as the mount point for the CD-ROM files, or you can create another directory.


NOTE:  Do not use the /cdrom mount point to mount local files. Volume management may interfere with accessing files on the volume management /cdrom mount point.

Once the CD-ROM is in the remote drive and the files are shared, follow these steps to access the shared files on a local system:

1.  On the local system, become superuser.
2.  Type mount remote-system-name: /cdrom/cdrom0 /mount-point and press Return. The files from the remote system directory /cdrom/cdrom0 are mounted on the /mount-point directory. The cdrom0 subdirectory is symbolically linked to the actual name of the CD-ROM, which has a name assigned by the application vendor.

In the following example, the files from the remote system castle are mounted on the /mnt mount point.

oak% su
Password:
# mount castle:/cdrom/cdromØ /mnt
# cd /mnt
# ls
SUNWssser  SUNWsssra  SUNWsssrb  SUNWsssrc  SUNWsssrd  SUNWssstr
#

How to Unmount Shared CD-ROM Files

When you are through using the CD-ROM files, use the following steps to unmount the remote CD-ROM:

1.  On the local system, become superuser.
2.  Type cd and press Return.
3.  Type umount /mount-point and press Return. The files from the remote system directory /cdrom/cdrom0 are unmounted.


Previous Table of Contents Next