|Previous||Table of Contents||Next|
If a diskette contains tar or cpio files, volume management does not mount it. You cannot access files on the diskette from the old /dev/rdiskette device name because volume management provides access to the media, not to the device.
You can access tar and cpio files on a diskette using the symbolic link to the character device for the media that is in floppy drive 0, as:
Use the following steps to copy a file to a formatted diskette using the tar command:
Use the following steps to copy all tar files from a diskette:
Alternatively, with Solaris 2.2 (and later) systems, you can access tar or cpio files using the following device name syntax:
The most common media-name is unlabeled.
With Solaris 2.3, the device name syntax is changed. You access tar or cpio files using the following device name syntax:
The most frequent media-name for media without a file system is unlabeled.
For example, to copy a tar file to a diskette, type tar cvf /vol/dev/rdiskette0/unlabeled filename and press Return. To retrieve all tar files from a diskette, type tar xvf /vol/dev/rdiskette0/unlabeled and press Return.
From time to time, you may encounter problems with mounting diskettes (or, less frequently, a CD-ROM). If you encounter a problem, first check to find out whether volume management knows about the diskette. The best way to check is to look in /vol/dev/rdiskette0 to see if something is there. If the files are not mounted, you may have forgotten to run the volcheck command, or you may have a hardware problem. If references to /vol hang, the /usr/sbin/vold daemon has probably died, and you should restart it.
If you find a name in /vol/dev/rdiskette0 and nothing is mounted in /floppy/ media-name, it is likely that the data on the media is not a recognized file system. It may be a tar, cpio, or Macintosh file system. You can access these media through the block or character devices found in /vol/dev/rdiskette0 or /vol/dev/diskette0 and use your own tools to interpret the data on them.
Many people use the workman program to play music from their CD-ROM drive. workman is not a Sun product, but it is in wide use. To use workman with volume management, add the line shown in bold to the /etc/rmmount.conf file. Be sure the line comes before the cdrom action_filemgr line:
# @(#)rmmount.conf 1.2 92/Ø9/23 SMI # # Removable Media Mounter configuration file. # # File system identification ident hsfs ident_hsfs.so cdrom ident ufs ident_ufs.so cdrom floppy ident pcfs ident_pcfs.so floppy # Actions action cdrom action_workman.so pathname action cdrom action_filemgr.so action floppy action_filemgr.so
A pathname is the name of the path where users access the workman program--for example, /usr/apps/pkgs/exe/workman.
When you have made this change, audio CD-ROMs are automatically detected and the workman program is started when a CD-ROM is inserted into the CD-ROM drive.
NOTE: When you set up workman in the way described here, users should not try to start workman from the application, because volume management may get confused. In addition, with Solaris 2.2 (and later) volume management, if you are using workman, you must eject the CD-ROM from the workman application. If you eject the CD-ROM from a nother window, workman hangs. This problem is fixed in Solaris 2.3 and later system software.
With Solaris 2.2, you cannot automatically export CD-ROM and diskette drives or use the /etc/vfstab file. You must use the share command to export the file system after every reboot.
NOTE: You cannot share a PCFS file system with Solaris 2.2 system software.
With Solaris 2.3 system software, a share cdrom* instruction is provided in the /etc/rmmount.conf file so that a CD-ROM is automatically shared when it is inserted into the CD-ROM drive. You can specify flags in the same way as you do for the share command. You can also use the name of a particular piece of media, if desired. Refer to the rmmount.conf manual page for more details.
With Solaris 2.3, the device names for the physical device have changed to be consistent with /dev. In Solaris 2.2 system software, the device names are /vol/dev/rfd0 and /vol/dev/fd0. With Solaris 2.3 system software, the device names are /vol/dev/rdiskette0 and /vol/dev/diskette0. The symbolic link in /vol/dev/aliases always points to the correct device.
|Previous||Table of Contents||Next|