Subject: Re: NoobQ: single user mode fubar
To: None <netbsd-help@netbsd.org>
From: Keith Mastin <kmastin@beechtree.ca>
List: netbsd-help
Date: 08/18/2002 16:46:13
>On Sun, Aug 18, 2002 at 04:19:11PM -0400, Keith Mastin wrote:
<snip>
>> After reboot, sysinit message: "WARNING: $rc_configured is not set
>> properly /etc/rc.conf is not configured. Multiuser mode aborted."
>
>That's not sysinit, but rc(8) starting via the rc.d(8) mechanism.
>
>Yeah, and it leaves you without fsck'd / and /usr.
>
>> I tried to "vi /etc/rc.conf": "vi not found".
>
>/usr is not mounted ... hard to find vi then :)
>
That explains that... simple then to just do a mount now that I know..
almost no commands I know work here... vi, locate, find, ls...
>> Then I tried to "set -E" so I could edit files on the command line. "No
>> entry for terminal type "dumb"; using dumb terminal settings. Then when I
>> try to vi, "vi not found".
>>
>> Then I tried to "TERM=-vt220 ; export TERM", then tried "TERM=vt100 ;
>> export TERM"... "No entry for terminal type "vt220" (or vt100); using dumb
>> terminal settings."
>
>Hmm. TERM=vt100 ; export TERM *should* really work *scratch*
>
So how do I set the terminal settings?
<snip>
>
>Oh, it's enough to do "echo rc_configured=YES" >> /etc/rc.conf after doing
>fsck /
>mount /
>(and if you want to, fsck /usr, mount /usr)
>
>An editor which is there for the non-/usr case still is "ed" (it's in /bin),
>but dunno if you feel brave enough to use that one :)
...can it be much worse than ae?
>
>After you added rc_configured=YES to your rc.conf, exit the shell, multi-user
>boot will continue. Then you can login, and happily work in a sane environment.
>
>Hth,
>
It did. Thanx :)
--
Keith Mastin BeechTree Information Technology Services Inc.
137 Laird Drive Toronto M4G 3V5 http://www.beechtree.ca
(416)696-6070 Fax(416)696-6072 kmastin@beechtree.ca