|Previous||Table of Contents||Next|
Most of the generic commands use this syntax:
command [-F type] [-V] [generic-options] [-o specific-options] [special|mount-point] [operands]
The options and arguments to the generic commands are shown in Table 4-4.
|-F type||Specifies the type of file system. If you do not use this option, the command looks for an entry that matches special, raw device, or mount point in the /etc/vfstab file. Otherwise, the default is taken from the file /etc/default/fs for local file systems and from the file /etc/dfs/fstypes for remote file systems.|
|-V||Echoes the completed command line. The echoed line may include additional information derived from /etc/vfstab. Use this option to verify and validate the command line. It does not execute the command.|
|generic-options||Options common to different types of file systems.|
|-o specific-options||A list of options specific to the type of file system. The list must have the following format: -o followed by a space, followed by a series of keyword [=value] pairs separated by commas with no intervening spaces.|
|special | mount-point||Identifies the file system. Name either the mount point or the special device file for the slice holding the file system. For some commands, the special file must be the raw (character) device, and for other commands it must be the block device. See Chapter 3, "Administering Devices," for more information about disk device names. In some cases, this argument is used as a key to search the file /etc/vfstab for a matching entry from which to obtain other information. In most cases, this argument is required and must come immediately after specific-options. However, it is not required when you want a command to act on all the file systems (optionally limited by type) listed in the /etc/vfstab file.|
|Operands||Arguments specific to a type of file system. See the specific manual page of the command (for example, mkfs_ufs) for a detailed description.|
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.
The generic file system commands determine the file system type by following this sequence:
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:
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:
drusilla% grep /home /etc/mnttab drusilla:(pid129) /home nfs ro,ignore,map=/etc/auto_home,indirect, dev=21cØØØ4 6936Ø6637 bigriver:/export/home/bigriver /tmp_mnt/home/bigriver nfs rw, dev=21cØØØ5 6954Ø9833 drusilla%
Or type mount and press Return. A list of the mounted file systems is displayed:
drusilla% mount / on /dev/dsk/cØt3dØsØ read/write on Tue Dec 24 12:29:22 1991 /usr on /dev/dsk/cØt1dØs6 read/write on Tue Dec 24 12:29:22 1991 /proc on /proc read/write on Tue Dec 24 12:29:22 1991 /usr/man on swsvr4-5Ø:/export/svr4/man read/write/remote on Mon Dec 3Ø 12:49:11 1991 /usr/openwin on swsvr4-5Ø:/export/svr4/openwinV3 read/write/remote on Mon Dec 3Ø 13:5Ø:54 1991 /tmp on swap o on Wed Jan 8 13:38:45 1992 /mnt on swsvr4-5Ø:/export/svr4 read/write/remote on Fri Jan 1Ø 15:51:23 1992 /tmp_mnt/home on bigriver:/export/home read/write/remote on Tue Jan 14 Ø9:23:53 1992 drusilla%
Or follow these steps:
drusilla% devnm /usr /dev/dsk/cØt1dØs6 /usr drusilla% su Password: # fstyp /dev/rdsk/cØt3dØsØ ufs #
|Previous||Table of Contents||Next|