From: mccauleyba@vms1.bham.ac.uk (Brian McCauley) Subject: Re: e2fsck problems Date: 1 Aug 1993 21:23:07 GMT
In article <1993Jul31.185854.27418@bnr.ca>, yavuz@bnr.ca (Yavuz Onder) writes:
> I have read many posts, and posted once myself on this thread (may be
> before the thread even started) but my problem still persists, and I
> want to consult to net once more...
Fair enough.
>
> I have installed bootutils-0.1, on top of my 99p10 kernel, I have an
> ext2 FS on my root (actually only) partition. I have installed
> all the pieces in the bootutils package.
>
> Now, what I expect is that when I "shut down", it (whoever "it" is)
> should mark the fs "clean", and (if all was well) on the next (re)boot
> the e2fsck should not run, and I won't get that "unchecked fs"
> warning.
I'm not sure but I think that once a fs is marked dirty simply mouning and
unmounting it is not enough to mark it clean. However I suspect if
you have got /etc/rc* fsck'ing your / before remounting it rw this is
probably not your problem.
> I tried "shutting down" by sync, umount, shutdown, and many
> combinations of them. Lately I always manually do "sync; sleep 5;
> umount -a; shutdown -h now" which may well be an overkill.
> Unfortunately none of these worked. I mean on the next boot I stil get
> the warning, and have to wait out for a long fs check to complete.
>
I trust your / is listed in your /etc/fstab - if not umount -a may not
try to unmount it. More likely you have the problem I was having in that
umount -a is failing because daemons still have files open. I got around
this by getting a new sysvinit as it seemed the old one I had was not killing
processes started by /etc/rc.
Now when I drop down to single user mode init will ``umount -a''. Redundant
perhaps but it made testing the bootutils a lot easier.
> Let me add the following for gurus: during the shut down (or maybe
> reboot I am not sure I get a line "e2fsck 0.2d 930330 for ext2 FS
> 0.3a".
It may not matter but I'd certainly recomend you get the latest e2fsck.
--
\\ ( ) No Bullshit! | Email: B.A.McCauley@bham.ac.uk
. _\\__[oo from | Voice: +44 21 471 3789 (home)
.__/ \\ /\@ /~) /~[ /\/[ | +44 21 627 2171 (work)
. l___\\ /~~) /~~[ / [ | Fax: +44 21 627 2175 (work)
# ll l\\ ~~~~ ~ ~ ~ ~ | Snail: 197 Harborne Lane, B29 6SS, UK
###LL LL\\ (Brian McCauley) | ICBM: 52.5N 1.9W