|[ Team LiB ]|
File System Administrative Commands
This section lists the file system administrative commands and describes the syntax.
Most file system administrative commands have a generic and a file system-specific component. Use the generic commands, which use the file system-specific component. Table 46 lists the generic file system administrative commands, which are located in the /usr/sbin directory. Most of these commands also have file system-specific counterparts.
CAUTION. Do not use the file-system–specific commands directly. If you specify an operation on a file system that does not support it, the generic command displays the error message command: Operation not applicable for FSType type.
Syntax of Generic Commands
Most of the generic file system commands use the following syntax.
command [-F FStype] [-V][generic-options][-o specific-options] [special|mount-point] [operands]
The options and arguments to the generic commands are shown in Table 47.
Manual Pages for Generic and Specific Commands
Both the generic and specific commands have manual pages. The specific manual page is a continuation of the generic manual page. To look at a specific manual page, append an underscore and the file system type abbreviation to the generic command name. For example, to see the specific manual page for mounting an HSFS file system, type man mount_hsfs and press Return. LOFS, PCFS, and PROCFS do not have specific manual pages for the mount command.
How File System Commands Determine File System Type
The generic file system commands determine the file system type with the following sequence.
Types of File Systems
If you want to determine the type of a file system, you can obtain the information from the same files that the generic commands use.
To find a file system's type in the /etc/vfstab file, type grep mount-point /etc/vfstab and press Return. Information for the mount point is displayed, as shown in the following example.
drusilla% grep /tmp /etc/vfstab swap - /tmp tmpfs - yes - drusilla%
If vfstab does not have an entry for a file system, use one of the following procedures to determine the file system's type.
To identify a mounted file system's type, type grep mount-point /etc/mnttab and press Return. Information on the mount point is displayed, as shown in the following example.
drusilla% grep /home /etc/mnttab drusilla:(pid129) /home nfs ro,ignore,map=/etc/auto_home,indirect,dev=21c0004 693606637 bigriver:/export/home/bigriver /tmp_mnt/home/bigriver nfs rw,dev=21c0005 695409833 drusilla%
NOTE. Starting with the Solaris 8 release, the /etc/mnttab file is no longer a text file, but you can still use the grep command to search it for specific entries.
Or, type mount and press Return. A list of the mounted file systems is displayed, as shown in the following example.
drusilla% mount / on /dev/dsk/c0t3d0s0 read/write on Tue Dec 24 12:29:22 1999 /usr on /dev/dsk/c0t1d0s6 read/write on Tue Dec 24 12:29:22 1999 /proc on /proc read/write on Tue Dec 24 12:29:22 1999 /usr/man on swsvr4-50:/export/svr4/man read/write/remote on Mon Dec 30 12:49:11 1999 /usr/openwin on swsvr4-50:/export/svr4/openwinV3 read/write/remote on Mon Dec 30 13:50:54 1999 /tmp on swap o on Wed Jan 8 13:38:45 1992 /mnt on swsvr4-50:/export/svr4 read/write/remote on Fri Jan 10 15:51:23 1992 /tmp_mnt/home on bigriver:/export/home read/write/remote on Tue Jan 14 09:23:53 1992 drusilla%
Or, use the following steps.
drusilla% devnm /usr /dev/dsk/c0t1d0s6 /usr drusilla% su Password: # fstyp /dev/rdsk/c0t3d0s0 ufs #
|[ Team LiB ]|