I edited the /etc/init.d/umountfs as follows:
This produced no error messages on shutdown and the file systems were clean on 
next bootup.

#! /bin/sh
#
# umountfs      Turn off swap and unmount all local file systems.
#
# Version:      @(#)umountfs  2.78  05-Jun-2000  [EMAIL PROTECTED]
#               my edits to solve syncing problem on shutdown:
#               1. execute a sync
#               2. use "lazy dismount" and then wait#

PATH=/sbin:/bin:/usr/sbin:/usr/bin

case "`uname -r`" in
  1.*|2.[01].*) FORCE=""   ;;
  *)            FORCE="-f" ;;
esac

# sync all disks
echo -n "syncing disks..."
sync
sleep 1

echo -n "Deactivating swap... "
swapoff -a
echo "done."

echo -n "Unmounting local filesystems... "
echo -n "Please wait... "
umount $FORCE -a -r -l
sleep 5
echo "done."


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to