Most file system administration commands have a generic and a file system-specific component. Use the generic commands, which call the file system-specific component. Table 26-1 lists the generic file system administrative commands, which are located in the /usr/sbin directory.
Table 26-1 Generic File System Administrative Commands
Command |
Description |
---|---|
Clears inodes |
|
Reports the number of free disk blocks and files |
|
Lists file names and statistics for a file system |
|
Checks the integrity of a file system and repairs any damage found |
|
Debugs the file system |
|
Determines the file system type |
|
Lists or provides labels for file systems when copied to tape (for use by the volcopy command only) |
|
Makes a new file system |
|
Mounts file systems and remote resources |
|
Mounts all file systems specified in a file system table |
|
Generates a list of path names with their i-numbers |
|
Unmounts file systems and remote resources |
|
Unmounts all file systems specified in a file system table |
|
Makes an image copy of a file system |
Most of these commands also have a file system-specific counterpart.
If you specify an operation on a file system that does not support it, the generic command displays this error message: command: Operation not applicable for FSType type
Most of these commands use this syntax:
command [-F type] [-V] [generic-options] [-o specific-options] [special|mount-point] [operands]Table 26-2 Options and Arguments to Generic Commands
The generic file system commands determine the file system type by following this sequence:
From the -F option, if supplied.
By matching a special device with an entry in /etc/vfstab (if special is supplied). For example, fsck first looks for a match against the fsck device field; if no match is found, it then checks against the special device field.
By using the default specified in /etc/default/fs for local file systems and in /etc/dfs/fstypes for remote file systems.
Both the generic and specific commands have manual pages in the man Pages(1M): System Administration Commands. 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(1M).