What's the point of the shell choice in single user mode?
freebsd001 at freeode.co.uk
Sun Dec 2 17:53:15 PST 2007
On Sun, 02 Dec 2007 18:48:33 +0100
Jorn Argelo <jorn at wcborstel.com> wrote:
> John Murphy wrote:
> > [after pressing 4 at the Beasty menu]
> > Trying to mount root from ufs:/dev/ad4s2a
> > Enter full path name of shell or RETURN for /bin/sh:
> > /bin/tcsh
> > sh: Cannot open /etc/termcap
> > sh: using dumb terminal settings
> > %fsck -p
> > fsck: Command not found
> > %mount -u /
> > mount: Command not found
> > %reboot
> > reboot: Command not found
> > %exit
> > logout ... continues to a Login prompt.
> You simply don't have the commands in your PATH. Type /sbin/mount,
> /sbin/fsck, /sbin/reboot and so on, and it does work. Never tried using
> an setenv PATH /bin:/sbin:usr/bin:/usr/sbin(etc) in single user mode,
> but I reckon it works.
Thanks. Useful to know that those tools are all in /sbin
I can confirm that setenv PATH .... works too.
> Also note that vi doesn't work by default as it needs to write to /tmp.
> So mount /tmp or re-mount / to RW permissions.
More information about the freebsd-questions