JSI Tip 2319. How can I automate a Safe-mode boot?

Jerold Schulman

April 30, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today


In tip 2038, I described the Safe-mode boot features in Windows 2000, that you activate by pressing F8 during boot.

In tip 0515, I described the switches that are available in c:boot.ini.

Here are additional Safe-mode switches:

Mode: Safe ModeSwitch: /SAFEBOOT:MINIMAL /SOS /BOOTLOG /NOGUIBOOTMode: Safe Mode with NetworkingSwitch: /SAFEBOOT:NETWORK /SOS /BOOTLOG /NOGUIBOOTMode: Safe Mode with Command PromptSwitch: /SAFEBOOT:MINIMAL(ALTERNATESHELL) /SOS /BOOTLOG /NOGUIBOOTMode: Enable Boot LoggingSwitch: /BOOTLOGMode: Enable VGA ModeSwitch: /BASEVIDEOMode: Directory Services Restore Mode (Domain Controllers Only)Switch: /SAFEBOOT:DSREPAIR /SOSMode: Debugging ModeSwitch: /DEBUG

You can add any of these Safe-mode entries to your boot.ini, by append the switch to the appropriate Arc Path or you can automate a Safe-mode by replacing boot.ini with something similar to:

[boot loader]timeout=0default=multi(0)disk(0)rdisk(0)partition(1)WINNT[operating systems]multi(0)disk(0)rdisk(0)partition(1)WINNT="Microsoft Windows 2000 Server" /fastdetect /SAFEBOOT:MINIMAL(ALTERNATESHELL)

or you can have something like the following, to manually select:

[boot loader]timeout=10default=multi(0)disk(0)rdisk(0)partition(1)WINNT[operating systems]multi(0)disk(0)rdisk(0)partition(1)WINNT="Microsoft Windows 2000 Server" /fastdetectmulti(0)disk(0)rdisk(1)partition(1)WINNT="W2K Alt Srv" /fastdetectmulti(0)disk(0)rdisk(0)partition(1)WINNT="W2K Directory Services Restore" /fastdetect /SAFEBOOT:DSREPAIR /SOSC:CMDCONSBOOTSECT.DAT="Microsoft Windows 2000 Recovery Console" /cmdcons

NOTE: The /SOS /BOOTLOG and /NOGUIBOOT switches are not required. When you press F8, you do get them as listed above.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like