I used to do a "mount -o remount,ro" during shutdown, but I found that
it just hides the problem. The file system will be marked "clean" but
can still have problems if there were unkillable processes that had
unlinked files held open. To demonstrate this, try something like:
# cp /etc/profile /tmp/junkfile
# mt retension </tmp/junkfile #an unkillable process
# rm /tmp/junkfile
# mount -o remount,ro /tmp #my /tmp is on its own filesystem
# shutdown -r now
On my system (old and crufty 1.2.13) the file system appears clean at
reboot, but "e2fsck -f" reveals minor problems somewhat like what would
have been there without the remount.
-- Bob Nichols rnichols@interaccess.com Finger rnichols@cluster.interaccess.com for PGP public key.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu