Index: kern_shutdown.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_shutdown.c,v retrieving revision 1.163 diff -u -r1.163 kern_shutdown.c --- kern_shutdown.c 15 Aug 2004 19:17:23 -0000 1.163 +++ kern_shutdown.c 23 Aug 2004 13:45:23 -0000 @@ -285,6 +285,15 @@ waittime = 0; sync(&thread0, NULL); + + /* SOS22: Moved this to before the sync stage so that + ext2 unmounts cleanly when we're shutting down. I + don't know whether this is actually safe, but it + does appear to solve the problem without doing + anything obviously bad. */ + if (panicstr == 0) { + vfs_unmountall(); + } /* * With soft updates, some buffers that are