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


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 Mode
Switch: /SAFEBOOT:MINIMAL /SOS /BOOTLOG /NOGUIBOOT

Mode: Safe Mode with Networking
Switch: /SAFEBOOT:NETWORK /SOS /BOOTLOG /NOGUIBOOT

Mode: Safe Mode with Command Prompt
Switch: /SAFEBOOT:MINIMAL(ALTERNATESHELL) /SOS /BOOTLOG /NOGUIBOOT

Mode: Enable Boot Logging
Switch: /BOOTLOG

Mode: Enable VGA Mode
Switch: /BASEVIDEO

Mode: Directory Services Restore Mode (Domain Controllers Only)
Switch: /SAFEBOOT:DSREPAIR /SOS

Mode: Debugging Mode
Switch: /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=0
default=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=10
default=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
multi(0)disk(0)rdisk(1)partition(1)\WINNT="W2K Alt Srv" /fastdetect
multi(0)disk(0)rdisk(0)partition(1)\WINNT="W2K Directory Services Restore" /fastdetect /SAFEBOOT:DSREPAIR /SOS
C:\CMDCONS\BOOTSECT.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.
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish