Going to single user, (was: how to boot single-user)
On Thu, 27 Mar 1997, joost witteveen wrote:
> > At 08:02 AM 27/03/97 -0800, Ken Gaugler wrote:
> > >A while back someone told me how to boot in single-user mode. I can't
> > >seem to find that email, and there is no man page for boot or single.
> > >
> > >Could someone please refresh my memory?
> > >
> > >And I wonder why commands like 'shutdown -s' do not result in a
> > >single user boot?
With System V, shutdown -s would take you to single user mode,
not do a reboot at all.
To go to single user from multiuser, I use
telinit 1
takes me to single user with whatever runstate one is in. This kills
most everything. See /etc/rc1.d, /etc/init.d/README. It does leave
file systems mounted, so if you need to do things to the file systems,
(fsck and such) you will need to umount filesystem, or remount ro
filesystem:
umount device-for-filesystem
mount -n -o remount,ro /
The mount command wants to write fstab, whether remounting ro or
remounting rw. The -n allows you to actually remount the filesystem
without writing on fstab. I missed this myself, and had problems until
it was kindly pointed out to me.
I have not used it, but telinit 2 should take you back to
multiuser.
David
-------------------------------------------------------------------------
LINUX: the FREE 32 bit OS for [345]86 PC's available NOW!
David B Teague | User interface copyrights & software patents make
teague@wcu.edu | programing a dangerous business. Ask me about this.
spy counter-intelligence wild porno sex gold bullion Soviet Bosnia clipper
Reply to: