Record Windows Startup logs

Source: Internet
Author: User

In some windows-based devices, we wantProgramDuring windows restart control, windows can be started normally every time, but sometimes Windows cannot be started due to various reasons. In this case, we need to identify the steps in which errors occur during startup. in order to locate the cause of failure, we need to record Windows Startup logs.

The method to record startup logs is

Add/BootlogAfter this parameter is added, the startup log is automatically recorded in the ntbtlog.txt file under the C: \ Windows directory after the machine restarts. By viewing this log file, we can learn more about the Windows Startup Process.

 

All the parameters of boot. ini are listed below:

Switch from: available switch options for boot. ini files in Windows XP and Windows Server 2003

/Basevideo

/BasevideoThe switch forces the system to enter the standard 640x480 16-color VGA mode by using a video driver compatible with all video adapters. This switch allows you to load the system when you select an incorrect video resolution or refresh frequency. Please switch this switch/SOSSwitch. If a new video driver is installed and the driver is not working properly, you can use this parameter to start the operating system. You can then delete, update, or roll back the problematic video driver.

Back to Top

/Baudrate = Number

This switch sets the baud rate of the debug port used for kernel debugging. For example, you can type/baudrate = 9600. When a modem is connected, the default baud rate is 9600 bits per second (Kbps ). The default baud rate is 115,200 kbps when the cable is connected using a false modem. 9,600 is the normal rate of remote debugging through the modem. If this switch exists in the boot. ini file, it is automatically enabled./DebugSwitch.
For more information about the modem configuration, clickArticleTo view the articles in the Microsoft Knowledge Base:

148954 how to use a modem to set remote debugging sessions

For other information about no modem configuration, click the following article number to view the article in the Microsoft Knowledge Base:

151981 how to set remote debugging sessions with no modem cable

Back to Top

/Crashdebug

This switch loads the kernel debugging program when starting the operating system. This switch will remain inactive until the STOP error message is displayed./CrashdebugThe switch is very useful for handling random Kernel errors. You can use the COM port as usual when running Windows. When Windows fails, this switch converts the port to a debug port. (This operation starts remote debugging .)
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

151981 how to set remote debugging sessions with no modem cable

Back to Top

/Debug

This switch enables the kernel debugging program when Windows is started. If you want to enable the Windows system real-time remote debugging function through the COM port, this switch can be activated at any time by connecting to the computer's host debugging program. And/CrashdebugDifferent switches,/DebugThe COM port is used whether or not debugging is in progress. This switch can be used when debugging regular recurring issues.
For more information about remote debugging, click the following article number to view the article in the Microsoft Knowledge Base:

121543 set remote debugging

Back to Top

/Debugport = com Number

This switch specifies the communication port used as the debugging port, whereNumberIs the communication port to be used, such as com1. By default, if the com2 port exists/DebugportPort com2 will be used. Otherwise, com1. If this switch is included in the boot. ini file,/DebugThe switch will be activated.
For other information, click the following article number to view the article in the Microsoft Knowledge Base:

151981 how to set remote debugging sessions with no modem cable

Back to Top

/Maxmem = Number

This switch specifies the amount of ram that Windows can use (in bytes ). For example, if you want windows to use less than 64 MB memory, use/Maxmem = 64Switch.
However,/MaxmemThe switch does not include memory holes. Therefore, we recommend that you use/BurnmemorySwitch./BurnmemoryThe switch will include the memory holes.
For example, if you use/Maxmem = 64Switch, and the system requires 64 MB memory to load, because there is a memory hole, the actual available memory of the system may be less than 64 MB. In this case, Windows will not start.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

108393/maxmem switch in the Windows boot. ini file

Back to Top

/Noguiboot

This switch disables the progress bar bitmap when Windows is started. (The progress bar appears before the logon prompt .)

Back to Top

/Nodebug

This switch is used to disable debugging. If there is a hardware debugging breakpoint in a program software, this may cause a STOP error.

Back to Top

/Numproc = Number

This switch sets the number of processors used for Windows startup. With this switch, you can force the multi-processor system to use only a specified number of processors (Number). This switch helps you solve performance problems and defective CPU problems.

Back to Top

/Pcilock

For x86 systems, this switch prevents the operating system from dynamically allocating hardware input, hardware output, and request interruption resources to the peripheral Connect interface (PCI) device. With this switch, the BIOS can configure these devices.

Back to Top

/Fastdetect: COM Number

This switch will disable the detection function of ntdetect.com file on the serial mouse and bus mouse on the specified port. This switch can be used if you have connected components other than the mouse over the serial port during startup. For example, type/fastdetect: COMNumber, WhereNumberIs the serial port number. You can use commas to separate multiple port numbers to close more than one port. If you use/FastdetectIf no communication port is specified, the serial mouse detection function on all communication ports is disabled.
Note:: In earlier Windows versions, including Windows NT 4.0, this switch is named/Noserialmice.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

131976 disable Device Detection on a serial port

Back to Top

/SOS

/SOSThe switch name is displayed when the device driver is loaded. By default, the Windows loader screen only displays the progress point. You can switch/BasevideoThe switch is used together to determine the driver that causes the fault.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

99743 functions of the boot. ini file in Windows 2000 or Windows NT

Back to Top

/PAE

You can use the/PAE switch and corresponding entries in Boot. ini to enable a computer in the PAE mode. In safe mode, even if the/PAE switch is specified, the computer starts using the normal kernel.

Back to Top

/Hal = filename

You can use this toggle to define the hardware abstraction layer (HAL) that is actually loaded during startup ). For example, type/hal = halmps. DLL to load halmps. dll in the System32 folder. This switch can be used to test a different Hal before renaming the file to Hal. dll. In addition, this switch is useful when you try to switch between multi-processor mode startup and single-processor mode startup. To do this, please switch/KernelSwitch.

Back to Top

/Kernel = filename

With this switch, you can define the kernel that is actually loaded during startup. For example, type/kernel1_ntkrnlmp.exe to load ntkrnlmp.exe In the System32 folder. With this switch, you can enable debugging at full loadCodeSwitch between the kernel and the normal kernel.

Back to Top

/Bootlog

This switch enables the Enable logging function to enable loggingSystemroot\ Ntbtlog.txt file. For more information about startup logs, see Windows Help.

Back to Top

/Burnmemory = Number

This switch specifies the amount of memory that Windows cannot use (in MB ). You can use this parameter to determine performance issues or other issues related to ram consumption. For example, type/burnmemory = 128 to reduce the physical memory available for Windows by 128 MB.

Back to Top

/3 GB

This switch forces the x86 system to allocate 3 GB of virtual address space for the program and 1 GB of virtual address space for the kernel and executable components. The program must be designed to take advantage of the extra memory address space. With this switch, the user mode program can access 3 GB memory instead of 2 GB memory allocated to the user mode program by windows. This switch moves the starting position of the kernel memory to 3 GB. This switch may be required for some Microsoft Exchange Server 2003 and Microsoft Windows Server 2003 configurations.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

823440 use the/3 GB switch in Exchange Server 2003 on Windows Server 2003-based systems

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

171793 information on Application Use of 4gt Ram Adjustment

Back to Top

/Safeboot: Parameter

This switch enables Windows to start in safe mode. This switch uses the following parameters:

    • Minimal
    • Network
    • Safeboot: Minimal (alternateshell)

/Safeboot: ParameterThe parameter can be used with other boot. ini parameters. The following example shows the parameters used when you select a security mode option from the start and recovery menu.

    • Security Mode with network connection
      /Safeboot: Minimal/SOS/bootlog/noguiboot
    • Security Mode with network connection
      /Safeboot: Network/SOS/bootlog/noguiboot
    • Security Mode with command prompt
      /Safeboot: Minimal (alternateshell)/SOS/bootlog/noguiboot

Note::/SOS,/BootlogAnd/NoguibootSwitches are not required in these settings, but these switches will help to troubleshoot the problem. After you press F8 and select a mode, these switches are used.

Back to Top

/Userva

You can use this switch to customize the amount of memory allocated to the process when the/3 GB switch is used. This switch allows more page table Project (PTE) kernel memory while retaining nearly 3 GB of process memory.
Note:: The Microsoft Product Support Service strongly recommends that the memory range for the/userva switch be limited to 2900-3030. This range is sufficient to provide a sufficient system page table project pool for all currently detected problems. Generally, when set to/userva = 2900, the number provided is close to the maximum number of available system page table items.
For more information about how to use the/userva switch, click the following article number to view the article in the Microsoft Knowledge Base:

316739 how to use the/userva and/3 GB switch to adjust the user mode space to a value between 2 GB and 3 GB

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

810371 use the/userva switch on a Windows Server 2003-based computer running Exchange Server

323427 how to manually edit the boot. ini file in Windows Server 2003

317526 how to edit the boot. ini file in Windows Server 2003

317521 bootcfg command and Its Usage

289022 how to edit the boot. ini file in Windows XP

291980 bootcfg command and Its Usage

Back to Top

/Redirect

You can use this switch to enable the Emergency Management Service (EMS) on a Windows Server 2003 Enterprise Edition-based computer ). For other EMS information, search for "Emergency Management Service" in "Windows Help and Support ".
To enable EMS by editing boot. ini on an x86 computer, edit the "[boot loader]" and "[operating systems]" sections of the boot. ini file. To do this, configure the following entries:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.