DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Solving filesystem problems

Checking s5 filesystems

The following is the s5-specific format of the fsck(1M) command:

fsck [-F s5] [generic_options] [special . . .]

fsck [-F s5] [generic_options] [-y][-n][-p][-sX][-SX][-tfile] \
[-l][-q][-D][-f] [special . . . ]

(The second command line is shown on two lines for readability.)

The options are as follows:


generic options
options supported by the generic fsck(1M) command.

-y
Specifies a yes response for all questions. This is the normal choice when the command is being run as part of a shell procedure. It generally causes fsck to correct all errors.

-n
Specifies a no response for all questions. fsck will not write the filesystem.

-p
Corrects inconsistencies that can be fixed automatically, that is, inconsistencies that are deemed harmless and can be fixed without confirmation by the administrator. Examples of such inconsistencies are unreferenced inodes, incorrect counts in the superblocks, and missing blocks in the free list.

-sX
Specifies an unconditional reconstruction of the free list. The X argument specifies the number of blocks-per-cylinder and the number of blocks to skip (rotational gap). The default values are those specified when the filesystem was created. (See ``Using mkfs to create an s5 filesystem'' for more information.)

The format of X is cylinder_size:gap_size. If you do not specify X, the values used when the filesystem was created are used.


-SX
Specifies a conditional reconstruction of the free list to be done only if corruption is detected. The format of the X argument is the same as described previously for the -s option.

-tfile
Specifies a scratch file for use in case the filesystem check requires additional memory. If this option is not specified, the process asks for a filename when more memory is needed.

-l
Causes damaged files to be identified by their logical names in addition to the inode numbers.

-q
Specifies a ``quiet'' filesystem check. Output messages from the process are suppressed.

-D
Checks directories for bad blocks; checks filesystems for damage after a system crash.

-f
Specifies that a fast filesystem check be done. Only Phase 1 (Check Blocks and Sizes) and Phase 5 (check free list) are executed for a fast check. Phase 6 (Reconstruct Free List) is run only if necessary.

special
Names the special device file associated with a filesystem. If no device name is specified, fsck checks all filesystems named in /etc/vfstab with a numeric entry in the ``fsckpass'' field.

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004