FSCK.1
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 2k
Category:

OS Develop

Development Platform:

WINDOWS

  1. .TH FSCK 1
  2. .SH NAME
  3. fsck, fsck1 - perform file system consistency check
  4. .SH SYNOPSIS
  5. fBfsckfR [fB-aclmrsfR]fR [fIdevicefR] ...fR
  6. .br
  7. .de FL
  8. .TP
  9. \fB\$1\fR
  10. \$2
  11. ..
  12. .de EX
  13. .TP 20
  14. \fB\$1\fR
  15. # \$2
  16. ..
  17. .SH OPTIONS
  18. .FL "-a" "Automatically repair inconsistencies"
  19. .FL "-c" "Check and list only the specified i-nodes
  20. .FL "-l" "List the files and directories in the filesytem
  21. .FL "-r" "Prompt user for repairs if inconsistencies are found
  22. .FL "-s" "List the superblock of the file system"
  23. .SH EXAMPLES
  24. .EX "fsck /dev/hd4" "Check file system on fI/dev/hd4fR"
  25. .EX "fsck -a /dev/at0" "Automatically fix errors on fI/dev/at0fR"
  26. .EX "fsck -l /dev/fd0" "List the contents of fI/dev/fd0fR"
  27. .EX "fsck -c 2 3 /dev/hd3" "Check and list fI/dev/hd3fR i-nodes 2 & 3"
  28. .SH DESCRIPTION
  29. .PP
  30. fIFsckfR performs consistency checks on the file systems which reside 
  31. on the specified devices.
  32. fIFsck1fR is an alternate version for use on obsolete V1 file systems.
  33. When either the fB-afR or fB-rfR flags are given, the file system
  34. will be repaired if errors are found.
  35. Before running fIfsckfR on a mounted file system, it must first be unmounted.
  36. Trying to repair a mounted file system is dangerous and should not be 
  37. attempted.
  38. .PP
  39. To repair the root file system (which cannot be unmounted), first 
  40. type CTRL-F9 at the console to kill any and all processes.  Log back in
  41. as fBrootfR, type fIsyncfR to force any buffered changes to disk,
  42. run fIfsckfR on the root file system and immediately reboot the
  43. computer by typing fIrebootfR.
  44. .PP
  45. It is necessary to kill all processes before repairing the root file system
  46. to prevent them from modifying any disk blocks while fIfsckfR is running.
  47. This is only necessary for the root file system, any other file system can
  48. simply be unmounted before it is checked.
  49. .SH "SEE ALSO"
  50. .BR mkfs (1),
  51. .BR mount (1).