Hylton Conacher (ZR1HPC) wrote:
Carlos E. R. wrote:
The Saturday 2004-10-09 at 21:17 +0200, Hylton Conacher (ZR1HPC) wrote:
fsck does in fact pass options to fsck.ext3
Yes, but does fsck.ext3 check for bad blocks as that is what I am trying to get done here.
Yes. man fsck.ext3 will tell you how.
I can hear Pat saying I should read the fine MANual on how to fish. :) Putting my best eye forward I READ and re-read the man page.
I see that bad blocks are checked with th -c option, but I am confused as to what the file descriptor (|^^|below) for the -C option should be.
I have decided that the command should be: #>e2fsck -pcfv -C fd <device> |^^|
Moving forward, I know I cannot fsck a mounted fs so how do I get the above to run before the fs are mounted. I have read that /etc/init.d/ is a good place but reading the man page, and searching through the directory, I see many text editable script files that I could add the above into.
Which script should I add it into so that it gets processed in the right place on system boot up?
-- The Little Helper ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 Licenced Windows user ========================================================================