Previous | Table of Contents | Next |
Use the following procedure to mount a CD-ROM from a local drive:
Figure 3-2 The File Manager CD-ROM window.
Before you can share CD-ROM files from a command line, the mountd daemon must be running. On the system with 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. If the mountd daemon is not running, you need to stop NFS services and restart them. Be sure to notify any users of the system that NFS services will be interrupted momentarily when you use the following procedure.
Use the following steps to start the mountd daemon:
The following example uses the ps command to verify that the mountd daemon is not already running, and as superuser it runs the S15nfs.server script to stop NFS services and restart them again:
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
Use the following steps to share CD files from a remote CD-ROM drive:
NOTE: Volume management does not recognize entries in the /etc/dfs/dfstab file. With Solaris 2.3 volume management, you can set up remote CD-ROM mounts to be automatically shared by editing the /etc/rmmount.conf file. Refer to the rmmount.conf manual page for more information.
The following example shares the files on the /cdrom/cdrom0 mount point as NFS files and uses the ps command to verify that the mountd daemon is running:
oak% su Password: # 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 #
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.
When 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:
In the following example, the files from the remote system castle are mounted on the /mnt mount point:
oak% su Password: # mount castle:/cdrom/cdrom0 /mnt # cd /mnt # ls SUNWssser SUNWsssra SUNWsssrb SUNWsssrc SUNWsssrd SUNWssstr #
When you are through using the CD-ROM files, use the following steps to unmount the remote CD-ROM:
When you insert a diskette into the diskette drive, volume management does not mount the diskette automatically; this prevents excessive reads, which can quickly wear out the diskette drive. You must use a command that checks for the presence of a diskette in the diskette drive.
Previous | Table of Contents | Next |