check and repair s5 filesystems
fsck [-F s5]
[generic_options] [special . . .]
fsck -F s5
[-y] [-n] [-p]
[-tfile] [-l] [-q]
[-D] [-f] [special . . .]
are options supported by the generic fsck command.
Specify the s5 FSType. If -F s5
is not specified heuristics similiar to those used
are used to determine the file
This command executes faster if it is not required
to autodetect file system types. If possible, specify
the -F s5.
Assume a yes response to all questions asked by
Assume a no response to all questions asked by
do not open the filesystem for writing.
Correct 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 i-nodes,
incorrect counts in the superblocks, and missing blocks
in the free list.
Ignore the actual free list and (unconditionally) reconstruct a new
one by rewriting the super-block of the filesystem.
The filesystem should be unmounted while this is done; if this
is not possible, care should be taken that the system is quiescent
and that it is rebooted immediately afterwards.
This precaution is necessary so that the old, bad, in-core copy
of the superblock does not continue to be used, or is written back to
suboption allows for creating an optimal free-list organization.
is not given,
the values used when the filesystem was created
The format of X is cylinder size:gap size.
Conditionally reconstruct the free list. This suboption
above except that the free list is rebuilt only
if there were no discrepancies discovered in the
forces a no response to all questions asked
This is useful for forcing free list reorganization
on uncontaminated filesystems.
cannot obtain enough memory to keep its tables,
it uses a scratch file. If the -t option is
specified, the file named
is used as the scratch file, if needed.
prompts for the name of the
scratch file. The file chosen should not be on the
filesystem being checked, and if it is not
a special file or did not already exist, it is
Identify damaged files by their logical names.
Unreferenced fifos will silently be removed.
requires it, counts in the superblock are automatically
fixed and the free list salvaged.
Directories are checked for bad blocks.
Useful after system crashes.
Check block and sizes and check the free list.
The free list is reconstructed if it is necessary.
Inconsistencies checked are as follows:
Orphaned files and directories (allocated but unreferenced) are,
with the user's concurrence, reconnected by
placing them in the lost+found directory, if the files are nonempty.
The user is notified if the file or directory is empty or not.
Empty files or directories are removed, as long as the
-n suboption is not specified.
fsck forces the reconnection of nonempty directories.
The name assigned is the i-node number.
Blocks claimed by more than one i-node or the free list.
Blocks claimed by an i-node or the free list
outside the range of the file system.
Incorrect link counts.
Incorrect number of blocks.
Directory size not 16-byte aligned.
Bad i-node format.
Blocks not accounted for anywhere.
File pointing to unallocated i-node.
I-node number out of range.
Super Block checks:
More than 65536 i-nodes.
More blocks for i-nodes than there are in the filesystem.
Bad free block list format.
Total free block and/or free i-node count incorrect.
Checking the raw device is almost always faster.
I-node numbers for ``.'' and ``..''
in each directory are not checked for validity.
When fsck detects an incorrect file size, it prompts
you to choose whether you want the file truncated or
expanded to match the number of blocks allocated.
Increasing the file size may produce unwanted data at the
end of your file; truncating the file may destroy data
in the last few blocks.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004