Subject: Re: Root login refused on TTY!
To: Brian D Chase <bdc@world.std.com>
From: Anders Magnusson <ragge@ludd.luth.se>
List: port-vax
Date: 05/24/1998 22:16:53
> 
> >From here I would probably be inclined to rebuild my /dev.  Boot to single
> user mode...  Er, hmm... I'm not sure if there's a way to do this from the
> boot prompt. (?)  
> 
It can't, but...

> To port-vax: Anyone know how to put a system in single user mode when
>    you can't explicitly edit the /etc/rc.conf or by sending a TERM signal
>    to pid 1 from the multi-user state?  Basically, is there a bootflag to
>    do this?
> 
>>> B/2 
Will boot into single-user. See the file sys/reboot.h for all possible
flags that can be given to the kernel from the boot prompt.

> Once you get it in single user mode, cd to /dev and run a `./MAKEDEV all'.
> If that doesn't clear things up, you may need to remove the existing
> devices first and then re-run `./MAKEDEV all'.
> 
Nja, do instead:
# cd /
# mkdir newdev
# cd newdev
# cp ../dev/MAKEDEV .
# sh MAKEDEV all
# cd /
# mv dev olddev; mv newdev dev
# rm -r olddev

so that you don't run into trouble with a lost /dev.

-- Ragge