From the fsck man page:

Currently, standardized file system-specific options are somewhat in flux.
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).  Note that e2fsck(8) supports -a for
           backwards compat­ibility only.  This option is mapped to e2fsck's
           -p option which is safe to use, unlike the -a option that most
           file system checkers support.

_END_

      Woody


faisal gillani wrote:

> hello there
> 
>  can any one help me in making a small script all i
> want is that my system
> runs itself in single user mode , then run fsck on / ,
> then return to normal
> mode...
> 
> i know the commands
> 
> 1,  init 1
> 2,  fsck /
> 3,  init 6
> 
> i am stuck in how can i give the answers to the
> command automatically ... is
> it possible ?
> 
> thanks
> Faisal
> 



-- 

---------------------------------------------------------------
Gatewood Green         Web Developer
http://www.linux.org/  The first stop for Linux info on the Net
Email:                 [EMAIL PROTECTED]
---------------------------------------------------------------
All opinions expressed by me are my own and not necessarily
endorsed by Linux Online, Inc. or Linux Headquarters, Inc.



Reply via email to