On Thu, Sep 23, 1999 at 06:55:09PM -0700, Seth R Arnold wrote:
> :) But, does anyone know a way to umount / and so forth before powering off?
I would assume this is not pssible since at least one process always
uses / or a directory below.
If you look at your /etc/init.d/umountfs script, you can see that / is
_not_ unmounted, but mounted readonly.
here's a part of script from my slink system:
<...>
# Write a reboot record to /var/log/wtmp before unmounting
halt -w
echo -n "Deactivating swap... "
swapoff -a
echo "done."
echo -n "Unmounting file systems... "
umount -a -r
echo "done."
mount -n -o remount,ro /
-eof-
After unmounting/mounting ro, the raid devices are shut down and then
either "halt -d -f -i -p" or "reboot -d -f -i" is executed.
man halt/reboot/poweroff:
<...>
-d Don't write the wtmp record. The -n flag implies
-d.
-f Force halt or reboot, don't call shutdown(8).
-i Shut down all network interfaces just before halt
or reboot.
-p When halting the system, do a poweroff. This is the
default when halt is called as poweroff.
<...>
HTH
--
Weasel http://www.cosy.sbg.ac.at/~ppalfrad/
PGP encrypted messages prefered. See my site or finger -l ppalfrad
-------------------------------------------------------------------
A friend is someone who knows the song in your heart and
can sing it back to you when you have forgotten the words.
Attachment:
pgp097lqggxTQ.pgp
Description: PGP signature