Information Technology Reference
In-Depth Information
When the CD-ROM is no longer needed, all the partitions associated with
it can be automatically unmounted and the CD-ROM ejected from the CD-
ROM drive using the eject cdrom command. If more than one CD-ROM is
mounted, you need to specify the mount point such as with the eject cdrom0
command. See the eject(1) manual page for more details.
Using Floppy Disks
Unlike CD-ROMs, disks are not automatically mounted by the vold pro-
gram. Instead, the volcheck (1) command can be used to instruct vold to scan
all floppy disk drives and mount any disks found. The disks are mounted
under the /floppy directory. The first disk is mounted at /floppy/floppy0 ,
the second at /floppy/floppy1 , and so on. Once mounted, the disk can be
used like any (small) read/write disk drive.
When the disk is no longer needed, it can be umounted using the eject com-
mand without any command-line arguments. If more than one disk is
mounted, you need to specify the mount point as a command-line argument,
such as with the eject floppy0 command.
Access to removable media can be restricted using the Role-Based Access Control
(RBAC)or by disabling Volume Management to prevent automatic mounting of exter-
nal media such as CD-ROMs and floppies.
Monitoring File System Usage
Several commands can be used to monitor file system usage. These are the
df(1) , du(1) , and quot(1M) commands.
The df command (without command-line arguments) displays the mount
point, logical block device name, number of free 512-byte blocks, and num-
ber of files that can be created for each file system. (The -k command-line
argument lists sizes in 1024-byte blocks or kilobytes instead of 512-byte
blocks.) The command can also be used to display the disk space used by file
systems. The following listing shows the use of the df command:
# df
/ (/dev/dsk/c0t1d0s0 ): 1554230 blocks 420689 files
/proc (/proc ): 0 blocks 1521 files
/dev/fd (fd ): 0 blocks 0 files
/var/run (swap ): 1195432 blocks 15664 files
/tmp (swap ): 1195432 blocks 15664 files
/home (/dev/dsk/c0t1d0s7 ): 52172 blocks 16988 files
/usr2 (/dev/dsk/c0t2d0s4 ): 577692 blocks 148092 files
#
Search WWH ::




Custom Search