revisiting tunables under Safe Mode menu option
jb
jb.1234abcd at gmail.com
Fri Mar 2 12:31:48 UTC 2012
Devin Teske <devin.teske <at> fisglobal.com> writes:
> ...
> > > So I would welcome discussions involving development of something better
> > (and am
> > > willing to help).
> >
> ...
> Not exactly sure what "service safemode start" should do (BSD doesn't have the
> same concept of runlevels as Linux does; so it's not exactly intuitive to think
> we could go from multi-user mode *into* safe mode).
>
> But "service safemode status" would be interesting.
>
> Interestingly, it would perhaps be nice if "service safemode stop" brought the
> system back to fully usable without need for reboot (something Windows doesn't
> offer).
I looked around the Internet and collected some sound bites:
- Safe Mode
- it forces a check of startup (root) partition.
- you have access to only minimal number of basic files and drivers (mouse,
monitor, keyboard, mass storage, base video, fonts, default system
services, and no network connections).
If your computer does not start successfully using Safe Mode, you might
need to use the Safe Mode with Root Shell feature to repair your system.
- it disables all startup items and login items
- it has to delete (and eventually recreate) any shared caches (dynamic
loader, dynamic libraries, etc)
- it enables boot logging
The boot log is useful in determining the exact cause of system startup
problems.
Log all drivers and services that were loaded (or not loaded) by the system
to a file.
- what about remote fs (NFS, etc) ?
- it helps you diagnose problems.
If a symptom does not reappear when you start in safe mode, you can
eliminate the default settings and minimum device drivers as possible
causes.
If a newly added device or a changed driver is causing problems, you can
use safe mode to remove the device or reverse the change.
The same with newly installed packages.
- enabled debugging mode
It may be preconfigured for debugging mode with info to be sent across
a serial cable to another computer that is running a debugger.
- enabled networking mode (optional)
This to allow remote safe mode.
- startable from a local or remote terminal, on a command line.
In case of a remote startup it would require networking mode enabled.
- boot verbosity mode (full, regular, minimal, none)
- logging verbosity mode (full, regular, minimal, none)
- option to return to boot menu (loader)
- option to reboot
- Safe Mode with Root Shell
Like regular Safe Mode with boot into root shell (like Single User Mode,
with configurable root password requirement).
This mode is particularly useful if you need to repair your system by
copying a file from a CD-ROM to your hard drive, or if you need to
reconfigure a service that is preventing your computer from starting
properly.
This functionality is indeed similar to Single User Mode, but after further
considerations it may be different under Safe Mode.
jb
More information about the freebsd-current
mailing list