Thursday, September 22, 2016

fsck options




fsck options



 

y



a



r



n



 


-y     For  some filesystem-specific checkers, the -y option will cause the fs-specific fsck to always

attempt to fix any detected filesystem corruption automatically.  Sometimes an  expert  may  be able  to  do  better driving the fsck manually.  Note that not all filesystem-specific checkers
implement this option.  In particular fsck.minix(8) and fsck.cramfs(8) do not  support  the  -y
option as of this writing.






-a     Automatically repair the filesystem without any questions (use this option with caution).  Note that  e2fsck(8) supports -a for backward compatibility only.  This option is mapped to e2fsck's -p option which is safe to use, unlike the -a option that some filesystem checkers support.








-r     Interactively  repair the filesystem (ask for confirmations).  Note: It is generally a bad idea
to use this option if multiple fsck's are being run  in  parallel.   Also  note  that  this  is
e2fsck's default behavior; it supports this option for backward compatibility reasons only.






-n     For some filesystem-specific checkers, the -n option will cause the fs-specific fsck  to  avoid
attempting  to repair any problems, but simply report such problems to stdout.  This is however not true for all filesystem-specific checkers.  In particular, fsck.reiserfs(8) will not report
any corruption if given this option.  fsck.minix(8) does not support the -n option at all.





No comments:

Post a Comment