Subject: Re: How to bypass the rc scripts in boot process
To: None <Asrivastava7@aol.com>
From: Robert Elz <kre@munnari.OZ.AU>
List: netbsd-help
Date: 10/16/2001 17:35:46
Date: Tue, 16 Oct 2001 03:43:46 EDT
From: Asrivastava7@aol.com
Message-ID: <f6.10ca5448.28fd3f32@aol.com>
| If ctrl-c the loop it goes in a
| single-user mode and i can't modify anything in /etc directory.
Get into single user mode (that way is a little unclean, but does have
the advantage that fsck will already have been run if needed)
mount -u -o rw /
mv /etc/rc.d/inetd /etc/BAD_INETD
reboot
and you'll be back in multi-user mode (without inetd running, but that's
OK). Fix whatever needs fixing, put (the fixed) BAD_INETD file back in
/etc/rc.d/inetd and run
/etc/rc.d/inetd start
(as root of course).
The relevant step is the mount, to make root read-write. After that
there are lots of ways to fix things, this is just one (one which avoids
needing to mount /usr in single user mode to get all the normal tools).
kre