Re: How errorproof is ext2 fs?

From: Andreas Dilger (adilger@turbolabs.com)
Date: Fri Sep 14 2001 - 16:38:48 EST


On Sep 14, 2001 22:47 +0200, Otto Wyss wrote:
> > there's no reason you can't configure your boot scripts to automatically
> > fix such problems. and by "manually", I hope you meant that "fsck -y"
> > took 15 minutes to run.
> > ...
> What's this "-y" meaning, "man fsck" does not show it. Could this mean answer
> any question with "yes"? The 15 minutes I needed to answer about the first
> hundreds of questions with "y", afterwards I simply pressed "y" until the fsck
> was finished.

Well, the "best" way of running e2fsck is with the "-p" option, so that it
will pick y/n as appropriate. In almost all cases "-p" and "-y" behave
the same, but in a few rare cases they do not.

In general, if you are manually fsck'ing a filesystem, it is better to
run fsck.<fstype> directly (and read its man page) instead of the "fsck"
wrapper program.

In some rare cases, fsck cannot decide what is the right thing to do, so
you need to run it in manual mode, which appears to be what happened to you.

Cheers, Andreas

-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 15 2001 - 21:00:49 EST