Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2013 16:13:19 -0700
From:      Michael Sierchio <kudzu@tenebras.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        Joe <fbsd8@a1poweruser.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: enter single user mode from boot menu
Message-ID:  <CAHu1Y71TUwQ5M8K7qi8h5THZ6tb3gJdfX3cVdpWS1A8Wrw2fiA@mail.gmail.com>
In-Reply-To: <20130429010414.3227b624.freebsd@edvax.de>
References:  <517DA65E.8050706@a1poweruser.com> <20130429010414.3227b624.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 28, 2013 at 4:04 PM, Polytropon <freebsd@edvax.de> wrote:


>
> After the BTX loader has started, keep hammering the space
> bar. :-)
>
> At some point, you'll see the
>
>         Ok
>         _
>
> prompt. This is where you enter the command
>
>         boot -s
>
> to go into single-user mode. The kernel will load as you would
> expect, but no further action (rc.d startup) will be taken. Instead
> you have to confirm the shell (/bin/sh by default) by pressing
> enter at the
>
>         When prompted Enter full pathname of shell or RETURN for /bin/sh:
>
> prompt; and then you're left at the
>
>         # _
>
> prompt, which means you're in single user mode. Type "exit" to
> start into multi-user mode as usual.
>
>
In single user mode, the root filesystem will be the only one mounted, and
it will be mounted read-only.

If you need to make changes (Correcting a fat-fingered edit to /etc/fstab,
for example), you'll need to mount root rw.

mount -u -o rw /

is the minimal command to do that.  You might also find it easier to mount
/tmp and /var if they're separate filesystems... YMMV, etc.

- M



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHu1Y71TUwQ5M8K7qi8h5THZ6tb3gJdfX3cVdpWS1A8Wrw2fiA>