manpages.info - online man pages   

SunOS man pages : fsck_s5fs (1)

Maintenance Commands                                fsck_s5fs(1M)

NAME

fsck_s5fs - file system consistency check and interactive repair

SYNOPSIS

fsck -F s5fs [ generic_options ] [ special ... ] fsck -F s5fs [ generic_options ] [ -o specific-options ] [ special ... ]

DESCRIPTION

fsck audits and interactively repairs inconsistent condi- tions on file systems. A file system to be checked may be specified by giving the name of the block or character spe- cial device or by giving the name of its mount point if a matching entry exists in /etc/vfstab. If no special device is specified, all s5 file systems specified in the vfstab with a fsckdev entry will be checked. In the case of correcting serious inconsistencies, by default, fsck asks for confirmation before making a repair and waits for the operator to respond either yes or no. If the operator does not have write permission on the file sys- tem, fsck will default to a -n (no corrections) action. See fsck(1M). Repairing some file system inconsistencies may result in loss of data. The amount and severity of data loss may be determined from the diagnostic output. fsck automatically corrects innocuous inconsistencies such as unreferenced inodes, missing blocks in the free list, blocks appearing in the free list and also in files, or incorrect counts in the superblock automatically. It displays a message for each inconsistency corrected that identifies the nature of the correction on which the file system took place. After successfully correcting a file system, fsck prints the number of files on that file system and the number of used and free blocks. Inconsistencies checked are as follows: o Blocks claimed by more than one inode or the free list. o Blocks claimed by an inode or the free list outside the range of the file system. o Incorrect link counts. o Incorrect directory sizes. SunOS 5.8 Last change: 19 Oct 1993 1 Maintenance Commands fsck_s5fs(1M) o Bad inode format. o Blocks not accounted for anywhere. o Directory checks, file pointing to unallocated inode, inode number out of range, absence of `.' and `..' entries in any directory. o Superblock checks: more blocks for inodes than there are in the file system. o Bad free block list format. o Total free block and/or free inode count incorrect. Orphaned files and directories (allocated but unreferenced) are, with the operator's concurrence, reconnected by placing them in the lost+found directory. The name assigned is the inode number. If the lost+found directory does not exist, it is created.

OPTIONS

See generic fsck(1M) for generic_options and details for specifying special. -o Specify s5 file system specific options. These options can be any combination of the following separated by commas (with no intervening spaces): f or F Fast check; duplicate blocks and free list check only. l After all other output is done, print i- number/pathname correspondences for damaged files. t scratchfile If there is insufficient memory and a temporary file is necessary to complete file system check- ing, use scratchfile as the temporary file. T scratchfile Same as above. s cyl:skip If it is necessary to rewrite (salvage) the free block list to correct an inconsistency, inter- leave the blocks such that, to the extent possi- ble within each group of cyl consecutive free blocks, the interval between blocks is skip. For example, with an interleave of 8:3, in each SunOS 5.8 Last change: 19 Oct 1993 2 Maintenance Commands fsck_s5fs(1M) group of eight consecutive free blocks, the order on the free list would be 1 4 7 2 5 8 3 6. If no cyl:skip is given, the value is either taken from the superblock, or, if unspecified (either has a value of 0), 400:7 is used. For obscure historical reasons, interleave specifi- cation of ``3'' and ``4'' (without colons) are taken to mean 200:5 and 418:7, respectively. S cyl:skip Same as above, except rewrite the free block list unconditionally. q Quiet; produce less verbose output. D Perform more extensive directory checking than normal. p (``preen'') Check and fix the file system non- interactively. Exit immediately if there is a problem requiring intervention. ? Print usage message.

FILES

/etc/vfstab list of default parameters for each file system

ATTRIBUTES

See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Architecture | IA | |_____________________________|_____________________________| | Availability | SUNWs53 | |_____________________________|_____________________________|

SEE ALSO

fsck(1M), attributes(5)

NOTES

It is usually faster to check the character special device than the block special device. SunOS 5.8 Last change: 19 Oct 1993 3