124 lines
2.6 KiB
HTML
124 lines
2.6 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>fsck(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>fsck(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
fsck, fsck1 - perform file system consistency check
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>fsck</STRONG> [<STRONG>-aclmrs</STRONG>] [<EM>device</EM>] ...
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-a</STRONG> Automatically repair inconsistencies
|
|
|
|
<STRONG>-c</STRONG> Check and list only the specified i-nodes
|
|
|
|
<STRONG>-l</STRONG> List the files and directories in the filesytem
|
|
|
|
<STRONG>-r</STRONG> Prompt user for repairs if inconsistencies are found
|
|
|
|
<STRONG>-s</STRONG> List the superblock of the file system
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>fsck</STRONG> <STRONG>/dev/hd4</STRONG> # Check file system on /<EM>dev</EM>/<EM>hd4</EM>
|
|
|
|
<STRONG>fsck</STRONG> <STRONG>-a</STRONG> <STRONG>/dev/at0</STRONG> # Automatically fix errors on /<EM>dev</EM>/<EM>at0</EM>
|
|
|
|
<STRONG>fsck</STRONG> <STRONG>-l</STRONG> <STRONG>/dev/fd0</STRONG> # List the contents of /<EM>dev</EM>/<EM>fd0</EM>
|
|
|
|
<STRONG>fsck</STRONG> <STRONG>-c</STRONG> <STRONG>2</STRONG> <STRONG>3</STRONG> <STRONG>/dev/hd3</STRONG>
|
|
# Check and list /<EM>dev</EM>/<EM>hd3</EM> i-nodes 2 & 3
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
<EM>Fsck</EM> performs consistency checks on the file systems which reside on the
|
|
specified devices. <EM>Fsck1</EM> is an alternate version for use on obsolete V1
|
|
file systems. When either the <STRONG>-a</STRONG> or <STRONG>-r</STRONG> flags are given, the file system
|
|
will be repaired if errors are found. Before running <EM>fsck</EM> on a mounted
|
|
file system, it must first be unmounted. Trying to repair a mounted file
|
|
system is dangerous and should not be attempted.
|
|
|
|
To repair the root file system (which cannot be unmounted), first type
|
|
CTRL-F9 at the console to kill any and all processes. Log back in as
|
|
<STRONG>root</STRONG>, type <EM>sync</EM> to force any buffered changes to disk, run <EM>fsck</EM> on the
|
|
root file system and immediately reboot the computer by typing <EM>reboot</EM>.
|
|
|
|
It is necessary to kill all processes before repairing the root file
|
|
system to prevent them from modifying any disk blocks while <EM>fsck</EM> is
|
|
running. This is only necessary for the root file system, any other file
|
|
system can simply be unmounted before it is checked.
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/mkfs.1.html">mkfs(1)</A></STRONG>, <STRONG><A HREF="../man1/mount.1.html">mount(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|