Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2004 13:54:19 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        hugle <hugle@vkt.lt>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: turn off FreeBSD 5.1 machine? completely?
Message-ID:  <20040110135419.GA1190@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <71190286567.20040110152304@vkt.lt>
References:  <71190286567.20040110152304@vkt.lt>

next in thread | previous in thread | raw e-mail | index | archive | help

--oyUTqETQ0mS9luUI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 10, 2004 at 03:23:04PM +0200, hugle wrote:

> How can I turn off machine completely?
> cause it waits for CTRL+D of root pass..

=46rom multiuser state (ie. the normal operating state) become superuser
and use the command:

    # shutdown -h now

then wait until the "system is down" announcement, when you can hit the
power button without fear of damaging the filesystems.

Alternatively, and only if you have support for apm or acpi in your
kernel and a compatible motherboard, you can type:

    # shutdown -p now

which does exactly the same as 'shutdown -h' but goes on to power down
the system automatically.  This is safe to use if your system doesn't
have the appropriate support -- it just halts the system but fails to
either power down or (I think) tell you that the system is down.

As it is, your system is waiting for the root password before it goes
into single user mode -- you would get to that state either by typing
plain 'shutdown' without, or by hitting the power button while the
system was running, being unlucky enough to cause filesystem damage
bad enough that the system can't automatically fix it, and then
attempting to power on again and reboot.

That it asks for a password then is due to changing the console entry
in /etc/ttys from 'secure' to 'insecure'.  Your choices are either to
give the root password, which gets you into single user mode, or to
hit Ctrl-D, which will cause the system to boot back into multiuser.

Either way, once you've got to a shell prompt, then use the shutdown
command as above to bring the system down cleanly.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--oyUTqETQ0mS9luUI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAAAQLdtESqEQa7a0RAsvaAJ9k+5RWZUw06dYJcHG2nV9Tsxkl3QCeKBEp
iAEsjAJZJMoV2N5XX5h780U=
=px3Z
-----END PGP SIGNATURE-----

--oyUTqETQ0mS9luUI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040110135419.GA1190>