


FSCK(8)							FSCK(8)


NNAAMMEE
       fsck - check and repair a Linux file system

SSYYNNOOPPSSIISS
       ffsscckk [ --AA ] [ --VV ] [ --tt _f_s_t_y_p_e ] [ ffss--ooppttiioonnss ] _f_i_l_e_s_y_s

DDEESSCCRRIIPPTTIIOONN
       ffsscckk  is	used to check and optionally repair a Linux file
       system.	_f_i_l_e_s_y_s  is  either  the   device   name   (e.g.
       /dev/hda1,  /dev/sdb2)  or  the mount point (e.g. /, /usr,
       /home) for the file system.

       The exit code returned by ffsscckk is the sum of the following
       conditions:
	    0	- No errors
	    1	- File system errors corrected
	    2	- File system errors corrected, system should
		   be rebooted if file system was mounted
	    4	- File system errors left uncorrected
	    8	- Operational error
	    16	- Usage or syntax error
	    128	- Shared library error
       The  exit  code returned when all file systems are checked
       using the --AA option is the bit-wise OR of the  exit  codes
       for each file system that is checked.

       In  actuality,  ffsscckk is simply a front-end for the various
       file system checkers (ffsscckk._f_s_t_y_p_e) available under  Linux.
       The  file system-specific checker is searched for in /bin.
       Please see the file system-specific checker  manual  pages
       for further details.

OOPPTTIIOONNSS
       --AA     Walk  through  the _/_e_t_c_/_f_s_t_a_b file and try to check
	      all file systems in one run.  This option is  typi-
	      cally  used  from	the _/_e_t_c_/_r_c system initalization
	      file, instead of multiple commands for  checking	a
	      single  file  system.  Note, that with this option,
	      you cannot give the _f_i_l_e_s_y_s argument as well.

       --VV     Produce verbose output, including all file  system-
	      specific	commands  that	are executed.  Specifying
	      this option more than once  inhibits  execution  of
	      any  file system-specific commands.  This is really
	      only useful for testing.

       --tt _f_s_t_y_p_e
	      Specifies the type of file system	to  be	checked.
	      If  not specified, the type is deduced by searching
	      for _f_i_l_e_s_y_s in _/_e_t_c_/_f_s_t_a_b and using the correspond-
	      ing  entry.   If	the  type can not be deduced, the
	      default file system type (currently ext2) is  used.





Version 1.7		  May 1993				1





FSCK(8)							FSCK(8)


       ffss--ooppttiioonnss
	      File  system-specific  options  to be passed to the
	      real file system checker.	Although not guaranteed,
	      the  following  options  are supported by most file
	      system checkers.

       _-_a     Automatically repair the file  system  without  any
	      questions (use this option with caution).

       _-_l     List all the file names in the file system.

       _-_r     Interactively  repair the file system (ask for con-
	      firmations).

       _-_s     List the super block before checking the file  sys-
	      tem.

       _-_v     Produce verbose output.

BBUUGGSS
       All  generic options must precede and not be combined with
       file system-specific options.  Some  file  system-specific
       programs	do  not  support  the	_-_v  (verbose) option, nor
       return meaningful exit codes.

AAUUTTHHOORRSS
       David Engel (david@ods.com)
       Fred N. van Kempen (waltje@uwalt.nl.mugnet.org)
       The manual page was shamelessly adapted from  Remy  Card's
       version for the ext2 file system.

SSEEEE AALLSSOO
       mmkkffss(8),	ffsscckk..mmiinniixx(8),    ffsscckk..eexxtt(8),   ffsscckk..eexxtt22(8),
       ffsscckk..xxiiaaffss(8).























Version 1.7		  May 1993				2


