Boot.ini switches used by the Boot Manager

The BOOT.INI file is placed in the root of the system drive ex. C:\BOOT.INI (One have to turn on "Show Hidden Files and folders" to see it). It is a standard text-file and can be edited with a text-editor like notepad.
The BOOT.INI tells the WinNT bootmanager what operating systems that are available, and what switches to use when starting a WinNT+ operating system.

Starting switches for WinNT 4 and beyond:
  • /3GB - Enables 4 GT RAM tuning, where kernel memory is limited to 1 GB and user memory is increased to 3 GB, instead of 2 GB each. By limiting the kernel area, then one will limit Page Table Entries (PTEs) to 40,000 (Instead of 80.000-140.000) along with paged- and non-paged-pool being limited. (Will limit the access to physical memory to 16 GByte RAM).

    This setting is available in the following operating systems:
    • Windows XP Professional
    • Windows Server 2003
    • Windows 2000 Advanced- and DataCenter-Edition only
    • Windows NT Server 4.0 SP3 Enterprise-Edition only
    More Info MS KB171793 MS KB328882, WHDC - Windows Memory Support.
    The /USERVA setting can be used to increase the 1 GByte kernel memory limit.
  • /BASEVIDEO - Forces the system into standard 640x480 16-color VGA mode. This is the default on the second boot menu entry. It is useful if having installed a video driver that won't boot or display properly. It is also useful if the graphics hardware is hogging memory address space. More Info MS KB139615, MS KB2001745
  • /BAUDRATE=nnnn - Sets baudrate of the debug port. If you do not set the baud rate, the default baud rate is 19,200. 9,600 is the normal rate for remote debugging over a modem. This will also enable the /DEBUG switch.
  • /BREAK - Causes the HAL to stop at a breakpoint at HAL initialization, which is the first thing to be initialized at kernel initialization. And waits until a debugger connection is made. If used without the /DEBUG switch it will cause a BSOD with STOP code of 0x00000078 (PHASE0_EXCEPTION)
  • /BURNMEMORY=number - Tells NT to exclude a certain amount of the system memory. The number is given in MegaBytes.
  • /CRASHDEBUG - Enables the COM port for debugging if Windows NT crashes, but allows you to use the COM port for normal operations. More Info MS KB151981 More Info MS KB148954
  • /DEBUG - Enables the kernel debugger. This allows live remote debugging of a Windows NT system through the COM ports. Unlike /CRASHDEBUG, /DEBUG will use the COM port whether or not you are debugging. More Info MS KB121543
  • /DEBUGPORT=comx - Selects a COM port for the debug port. The default is COM2 if it exists, otherwise the default is COM1. The default of COM2 is probably because the UPS Service claims COM1 when running.
  • /KERNEL=filename - allows you to define the actual KERNEL to be loaded at startup. This is useful if wanting to test drivers with a checked kernel with debug symbols. This can also be used to load a different ntoskrnl.exe with a different boot screen without conflicting with WFP.
  • /HAL=filename - Defines the actual Hardware Abstraction Layer (HAL) to be loaded at startup. This switch is useful in trying out an different HAL before renaming it to hal.dll. This switch is also useful when you want to try booting between multiprocessor and single processor mode when used in conjunction with the /KERNEL switch
  • /MAXMEM= - The number of megabytes of RAM that NT should see. Must be less than or equal to the actual RAM. This can be useful for special software like RAM drive which doesn't want WinNT to control the RAM. More Info MS KB108393 MS KB241289 MS KB320286
  • /NODEBUG - Disables the kernel debugger, causing a blue screen if a piece of code has a debug hardcoded breakpoint in its software.
  • /NOSERIALMICE:COMx - Disables the mouse port check for this com port. Ports may be separated with commas to disable more than one port. If no serial port is specified then ALL ports will be disabled for mouse devices. If you have a UPS on COM1, you would use /NOSERIALMICE:COM1. More Info MS KB131976
  • /NUMPROC=n - Sets the number of processors that Windows NT will use in a multiprocessor environment. This is useful in load simulation. If you use this switch.
  • /ONECPU - Tells Windows NT to use only 1 CPU in a multiprocessor/multicore environment.
  • /PCILOCK - Prevents Windows NT from enumerating(assigning IO/IRQ Resources) the PCI bus every time it starts. But uses the setup by BIOS. More Info MS KB148501
  • /SOS - Causes the loader to print the name of loaded modules/drivers instead of displaying the dots. (In Win2k+ it works best combined with the option NOGUIBOOT)
  • /USE8254 - Forces the HAL to use the 8254 timer chip as base timer. Intended for older BIOS's. More Info MS KB169901
  • /WIN95 - Loads bootsec.dos - for triple booting WinNT/9x/DOS. More Info MS KB157992
  • /WIN95DOS - Loads bootsec.w40 - for triple booting WinNT/9x/DOS. More Info MS KB157992
  • /YEAR=year - Tells WinNT to ignore the system year in the BIOS but use the year given. (Only available on WinNT SP4 and beyond)
Starting switches for Win2k and beyond:
  • /BOOTLOG - Will create a log %SystemRoot%\NTBTLOG.TXT specifying what modules and drivers are loaded during boot.
  • /FASTDETECT - Tells Ntdetect.com to Skips enumeration of parallel and serial devices. More Info MS KB227991
  • /INTAFFINITY - In a multiprocessor environment it will direct the HAL (HALMPS.DLL) only to give interrupts to the highest numbered processor.
  • /MAXPROCSPERCLUSTER= - In a multiprocessor environment it will direct the HAL (HALMPS.DLL) to create clusters of CPUs to make several CPUs act together as a single CPU. Default is 0 and max is 4.
  • /NOGUIBOOT - This will disable the VGA video driver used at boot time. This will cause it not to show boot progress information aswell as BSOD if such should happen. But it will speed up the bootup time.
  • /NOLOWMEM - Will disable use of the first 4 GByte. The system must have more than 4 GByte and it can only be used together with the /PAE switch. This is useful when combined with the registry setting "AllocationPreference" when wanting to test if a large memory aware application is actually capable of handling memory addresses beyond the 2 GByte barrier. More Info MS KB291988
  • /NOPAE - Disables use of /PAE even if the system supports it and have more than 4 GByte of system memory
  • /PAE - Enables use of memory beyond 4 GByte by telling NTLDR to load Ntkrnlpa.exe. Intel has created something called Physical Address Extensions(PAE) which extends the use of the CPU memory registers from 32 bit to 36 bit, and alllows it to address up to 64 GByte of system memory. More Info MS KB291988 MS KB283037 MS KB268363 MS KB311901 MS KB888137 MS WHDC - PAE

    The limit of possible memory depends on the Windows version:
    WindowsMax Limit
    Windows XP Professional4 GByte
    Windows 2000/2003 Server4 GByte
    Windows 2000 Advanced Server8 GByte
    Windows 2003 Enterprise Server32 GByte
    Windows 2000/2003 DataCenter Server64 GByte
    Windows 2000/2003 DataCenter Server (+ /3GB)16 GByte
    Windows 2003 SP1 Enterprise Server64 GByte
    Windows 2003 SP1 DataCenter Server128 GByte
    Windows 2003 SP1 DataCenter Server (+ /3GB)64 GByte
  • /TIMERES=number - Specifies the resolution of the system timer in a multiprocessor environment. The number is 100s of nanoseconds, the supported values is 9766, 19532, 39063, 78125.
  • /SAFEBOOT:parameter - To access safemode features. More Info MS KB239780
    • minimal - Booting in safemode only loading the drivers and services specified at:

      [HKEY_LOCAL_MACHINE \System \CurrentControlSet \Control \Safeboot \Minimal]

    • network - Booting in safemode with network support only loading the drivers and services specified at:

      [HKEY_LOCAL_MACHINE \System \CurrentControlSet \Control \Safeboot \Network]

    • minimal(alternateshell) - Instead of using explorer.exe it uses the shell specified at (If none specified it uses CMD.EXE):

      [HKEY_LOCAL_MACHINE \System \CurrentControlSet \Control \Safeboot]
      AlternateShell = ""

    • dsrepair - Directory Services Repair mode is used when wanting to restore the Active Directory on a domain controller from a backup medium you present. It can also be used if wanting to measure the correct size of the Active Directory Database. It can also be used if wanting to defrag the Ntds.dit using Ntdsutil.exe. More Info MS KB229602, MS KB816120
Starting switches for WinXP/Win2k3 and beyond:
  • /BOOTLOGO - When combined with /NOGUIBOOT then it will load the optional bootlogo file boot.bmp(640x480 16 color) located in the Windows-directory.
  • /USERVA - Enables fine tuning of how the user- and kernel-memory area is divided. Used in combination with /3GB. More Info MS KB316739
  • /REDIRECT - Enables Emergency Management Services (EMS)
  • /CHANNEL - Enables debugging using a 1394 port
  • /NOEXECUTE=policy - To configure Data Execution Prevention (DEP), which is available in AMD 64 bit processors, and is by default enabled. More Info MS KB875352 MS Technet
    • OptIn Default policy; all Windows system binaries are covered by DEP, and it is possible to activate DEP for certain 3rd party applications.
    • OptOut All Windows system binaries are covered by DEP along with 3rd party applications, and it is possible to exclude 3rd party application from being covered by DEP.
    • AlwaysOn Forces all applications to be covered by DEP
    • AlwaysOff Disables DEP and it can be useful if having installed an application that activates DEP, but killing the application keeps the machine from booting properly. More Info MS KB878474, MS KB886348
  • /USEPMTIMER - Forces the Hardware Abstraction Layer (HAL) to use ACPI Power Management Timer (PMTimer/PMT) as the constant High Resolution Timer (HRT) to generate clock interupts. Instead of using the Real Time Clock (RTC) or the 8254 Programmable Interval Timer (PIT). The AMD driver for the X2 dual core processor adds this setting, because the default processor timestamp-counter (TSC) is not synchronized properly between cores, and causes certain applications to run at double speed. More Info MS KB821893 MS KB835730 MS KB895980 MS KB896256 MS KB909944
The WinXP MSCONFIG makes it easy to configure the BOOT.INI, and it works with Win2k.

More info MS KB99743
More info MS KB102873
More info MS KB170756
More info MS KB160899
More info MS KB239780
More info MS KB289022
More info MS KB311578
More info MS KB314081
More info MS KB317526
More info MS KB323427
More info MS KB833721
More info MS KB833722
More Info MSDN - Boot.ini Boot Parameter Reference

Credits SysInternals.com

Updated: 4 September 2010

Comments:

  1. Norm Young says:

    This is a good site for NT related items. I am going to bookmark this site. You are providing a valuable and needed resource and deserve to her this from other IT professionals. I had forgotten so much of this stuff. It is so hard to keep it in your head with so much always going on. Thanks stay inspired and keep up the good work.

Leave a Reply

Your email address will not be published. Required fields are marked *