FSCK.1
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:2k
源码类别:
操作系统开发
开发平台:
C/C++
- .TH FSCK 1
- .SH NAME
- fsck, fsck1 - perform file system consistency check
- .SH SYNOPSIS
- fBfsckfR [fB-aclmrsfR]fR [fIdevicefR] ...fR
- .br
- .de FL
- .TP
- \fB\$1\fR
- \$2
- ..
- .de EX
- .TP 20
- \fB\$1\fR
- # \$2
- ..
- .SH OPTIONS
- .FL "-a" "Automatically repair inconsistencies"
- .FL "-c" "Check and list only the specified i-nodes
- .FL "-l" "List the files and directories in the filesytem
- .FL "-r" "Prompt user for repairs if inconsistencies are found
- .FL "-s" "List the superblock of the file system"
- .SH EXAMPLES
- .EX "fsck /dev/hd4" "Check file system on fI/dev/hd4fR"
- .EX "fsck -a /dev/at0" "Automatically fix errors on fI/dev/at0fR"
- .EX "fsck -l /dev/fd0" "List the contents of fI/dev/fd0fR"
- .EX "fsck -c 2 3 /dev/hd3" "Check and list fI/dev/hd3fR i-nodes 2 & 3"
- .SH DESCRIPTION
- .PP
- fIFsckfR performs consistency checks on the file systems which reside
- on the specified devices.
- fIFsck1fR is an alternate version for use on obsolete V1 file systems.
- When either the fB-afR or fB-rfR flags are given, the file system
- will be repaired if errors are found.
- Before running fIfsckfR on a mounted file system, it must first be unmounted.
- Trying to repair a mounted file system is dangerous and should not be
- attempted.
- .PP
- 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 fBrootfR, type fIsyncfR to force any buffered changes to disk,
- run fIfsckfR on the root file system and immediately reboot the
- computer by typing fIrebootfR.
- .PP
- It is necessary to kill all processes before repairing the root file system
- to prevent them from modifying any disk blocks while fIfsckfR is running.
- This is only necessary for the root file system, any other file system can
- simply be unmounted before it is checked.
- .SH "SEE ALSO"
- .BR mkfs (1),
- .BR mount (1).