Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2003 14:40:38 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Charles Howse <chowse@charter.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to shut down
Message-ID:  <20030917134038.GA85377@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <002701c37d1e$5fa781d0$04fea8c0@moe>
References:  <01ab01c37d1d$d671ed60$6400a8c0@NCSXP> <002701c37d1e$5fa781d0$04fea8c0@moe>

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

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

On Wed, Sep 17, 2003 at 08:19:49AM -0500, Charles Howse wrote:
> > I am a new user learning about Unix.
> >=20
> > I found the shutdown command and have been using "shutdown=20
> > now" to shut down
> > before powering off.
> >=20
> > When the pc boots up it complains that it was incorrectly shut down.
> >=20
> > Am I following an incorrect procedure?
>=20
> 'shutdown now' will take you to single user mode.
> This is not what you want if you're ready to power off.
> Use 'shutdown -h now' and wait for the 'press any key to reboot' prompt
> before you power off.
> To reboot, use 'shutdown -r now'.

If you do forget the flags to shutdown, and end up in single user
mode, then you can just type 'halt' to take the machine all the way
down to a state where you can hit the power button. 'halt -p' will
attempt to power down the machine as well, but that depends on what
sort of motherboard you have and whether you've compiled appropriate
support into your kernel.

The error you see is due to the filesystems not being correctly
dismounted.  Since you're taking the system down to single user mode
before pulling the power, you've vastly reduced the probability of
filesystem damage, but still, better safe than sorry.

	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

--2oS5YaxWCcQjTEyO
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQE/aGRWdtESqEQa7a0RAgxdAKCEb6oJZ3RRIqeNvuwbTT9E2eBquACdE70J
eSt6dvPUEuCD2wuQokQTJIM=
=Hrna
-----END PGP SIGNATURE-----

--2oS5YaxWCcQjTEyO--



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