|Previous||Table of Contents||Next|
You may want to disable volume management for some users. To do so, use the following steps:
You can disable part of volume management and leave other parts functional. You may, for example, want to automatically mount CD-ROMs, but use the Solaris 2.0 method for accessing files on a diskette. You can do so by commenting out the lines for diskettes in the /etc/vold.conf file, as shown:
# @(#)vold.conf 1.21 96/05/10 SMI # # Volume Daemon Configuration file # # Database to use (must be first) db db_mem.so # Labels supported label dos label_dos.so floppy rmscsi pcmem label cdrom label_cdrom.so cdrom label sun label_sun.so floppy rmscsi pcmem # Devices to use use cdrom drive /dev/rdsk/c*s2 dev_cdrom.so cdrom%d # use floppy drive /dev/rdiskette[0-9] dev_floppy.so floppy%d use pcmem drive /dev/rdsk/c*s2 dev_pcmem.so pcmem%d forceload=true # use rmscsi drive /dev/rdsk/c*s2 dev_rmscsi.so rmscsi%d # Actions insert dev/diskette[0-9]/* user=root /usr/sbin/rmmount insert dev/dsk/* user=root /usr/sbin/rmmount eject dev/diskette[0-9]/* user=root /usr/sbin/rmmount eject dev/dsk/* user=root /usr/sbin/rmmount notify rdsk/* group=tty user=root /usr/lib/vold/volmissing -p # List of file system types unsafe to eject unsafe ufs hsfs pcfs
Use double-sided (DS), high-density (HD) 3.5-inch diskettes. Before you can copy ufs files or file systems to diskette, you must format the diskette. Use the tar command to copy ufs files to a single formatted diskette. Use cpio if you need to copy ufs files to multiple formatted diskettes. The cpio command recognizes end of media and prompts you to insert the next volume.
You also can make a DOS-file system on a diskette. To use a DOS-formatted diskette, you mount the diskette as a pcfs file system and use basic OS commands such as cp and mv to archive and retrieve files from the diskette.
The device name for the diskette drive has changed with the SunOS 5.x system software. The device name for the diskette drive is /dev/diskette. The raw device file for a diskette is /dev/rdiskette.
The following sections describe how to format diskettes for use with ufs file systems, and describe how to copy files using the tar and cpio commands. They also describe how to retrieve files that were created using the SunOS 4.x bar command.
Follow these steps to format a diskette for use with SunOS 5.x ufs file systems:
CAUTION! Reformatting destroys any files already on the diskette.
oak% fdformat Press return to start formatting floppy. .................................................................... oak%
Use the eject command to remove a diskette from the disk drive. You can also use the eject command to remove a CD-ROM disc from a CD-ROM drive. The default for the eject command is /dev/diskette when you type it with no arguments. To remove a diskette from the diskette drive, type eject and press Return. The diskette is ejected.
NOTE: If the drive jams, you can eject a diskette manually by sticking a straightened wire paper clip into the pinhole under the diskette slot.
To eject a CD-ROM disc from a CD-ROM drive, type eject cdrom and press Return.
This section provides steps for using the tar command to copy files to a single formatted diskette. Note that the tar command does not require the raw device name, /dev/rdiskette. You can use either the /dev/rdiskette or /dev/diskette device name. The examples in this book use the raw device name.
Use the following steps to copy ufs files to a single formatted diskette:
CAUTION! Copying files to a formatted diskette using the c option destroys any files already on the diskette. If you want to preserve the files already on the diskette, use the r option described in "Appending Files to a Formatted Diskette (tar)" later.
NOTE: You can use metacharacters (? and *) as part of the file names you specify. For example, to copy all documents with a .doc suffix, type *.doc as the file name argument.
In this example, two files are copied to a diskette:
oak% cd /home/winsor oak% ls evaluation* evaluation.doc evaluation.doc.backup oak% tar cvf /dev/rdiskette evaluation* a evaluation.doc 86 blocks a evaluation.doc.backup 84 blocks oak% eject oak%
|Previous||Table of Contents||Next|