PDA

View Full Version : how to make booting directly to the safe code (W2K)



david_hdse
04-26-2002, 04:14 AM
how to make boot automaticaly goto the safe code with command prompt (in start up menu for w2k)

Jama
04-26-2002, 03:45 PM
Add this line to your boot.ini file;

/SAFEBOOT:MINIMAL(ALTERNATESHELL)

Make sure you add it right after “/fastdetect” but leave ONE space between /fastdetect and /safeboot…
So your boot.ini file should look like this;
---------------------------------------------------------------------------------------------------

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


[b]Note: adding this line will make your computer boot to the command prompt EVERY time you boot, the only way to boot Windows GUI is to delete that part of the line.
Since there is no edit command in win2000 command prompt, how can you edit the boot.ini file in order to remove that line? You can’t!
That’s why it’s important to backup your boot.ini file before you add the line. Call it boot.bac.
When you finish playing with the command prompt, you can rename boot.ini to boot.old and boot.bac to boot.ini, thus restoring your original boot.ini.

Safe-mode boot modes and corresponding 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

The /sos /bootlog /noguiboot switches are not required with any of the above settings, but they are useful to help with troubleshooting. These switches are included if you press F8 and choose one of the modes.

Jama

I have noticed that you posted more than one question with regards to command prompt, is this what you were looking for? If not, can you let us know exactly what is it that you’re trying to achieve. Are you trying to start the computer in command prompt ALL the time? Dual boot it with DOS? Or start the command prompt window ONCE the computer has already started.