Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 History  





2 Command-line interface  



2.1  Example  







3 Startup process  





4 boot.ini  



4.1  Example  





4.2  NT kernel switches  







5 See also  





6 References  





7 External links  














NTLDR






العربية
Català
Deutsch
Español
فارسی
Français

Italiano

Polski
Português
Русский
Simple English
Suomi
Svenska
Українська
Tiếng Vit

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from BOOT.INI)

NTLDR (abbreviationofNT loader) is the boot loader for all releases of Windows NT operating system from 1993 with the release of Windows NT 3.1 up until Windows XP and Windows Server 2003. From Windows Vista onwards it was replaced by the BOOTMGR bootloader. NTLDR is typically run from the primary storage device, but it can also run from portable storage devices such as a CD-ROM, USB flash drive, or floppy disk. NTLDR can also load a non NT-based operating system given the appropriate boot sector in a file.

NTLDR requires, at the minimum, the following two files to be on the system volume:

An additional important file is boot.ini, which contains boot configuration (if missing, NTLDR will default to \Windows on the first partition of the first hard drive).

NTLDR is launched by the volume boot record of system partition, which is typically written to the disk by the Windows FORMATorSYS command.

History

[edit]

Windows NT was originally designed for ARC-compatible platforms, relying on its boot manager support and providing only osloader.exe, a loading program accepting ordinary command-line arguments specifying Windows directory partition, location or boot parameters, which is launched by ARC-compatible boot manager when a user chooses to start specific Windows NT operating system. However, because the x86 lacked any of the ARC support, the additional layer was added specifically for that platform: custom boot manager code presenting text menu allowing the user to choose from one or more operating system and its options configured in boot.ini configuration file, prepended by special StartUp module which is responsible for some preparations such as switching the CPU to the protected mode. When a user chooses an operating system from the boot menu, the following command-line arguments are then passed to the part of the osloader.exe common to all processor architectures:

load osloader=<Windows Path>\System32\NTLDR systempartition=<Windows Partition> osloadpartition=<Windows Partition> osloadoptions=<Windows Boot Parameters> consolein=multi(0)key(0)keyboard(0) consoleout=multi(0)video(0)monitor(0) x86systempartition=<NTLDR partition>

In Windows releases starting from Windows Vista and Windows Server 2008, NTLDR has been split off back to its boot manager and system loader parts: the Windows Boot Manager and winload.exe. The boot manager part has been completely rewritten; it no longer uses boot.ini as a configuration file, although the bootcfg utility for modifying boot.ini is still present for the case of multi-boot configurations with Windows versions up to Windows XP and Windows Server 2003.

Command-line interface

[edit]
bootsect
Developer(s)Microsoft
Operating systemMicrosoft Windows
TypeCommand
LicenseProprietary commercial software
WebsiteBootsect Command-Line Options

The bootsect.exe utility program in the Windows PE tools has options /nt52 (NTLDR) and /nt60 (Vista and up) to store a NTLDR or Vista boot record in the first sector of a specified partition.[1] The command can be used for FAT and NTFS based file systems. It replaces the FixFAT and FixNTFS tools.[2]

Example

[edit]

The following example applies the NTLDR compatible master boot code to the D: volume:[2]

C:\>bootsect /nt52 D:

Startup process

[edit]

When a PC is powered on its BIOS follows the configured boot order to find a bootable device. This can be a harddisk, floppy, CD/DVD, network connection, USB-device, etc. depending on the BIOS. In the case of a floppy the BIOS interprets its boot sector (first sector) as code, for NTLDR this could be a NTLDR boot sector looking for the ntldr file on the floppy. For a harddisk the code in the Master Boot Record (first sector) determines the active partition. The code in the boot sector of the active partition could then be again a NTLDR boot sector looking for ntldr in the root directory of this active partition. In a more convoluted scenario the active partition can contain a Vista boot sector for the newer Vista boot manager with an {ntldr} entry pointing to another partition with a NTLDR boot sector.[3]

When booting, the loader portion of NTLDR does the following in order:

  1. Accesses the file system on the boot drive (either FAT or New Technology File System, NTFS).
  2. If Windows was put in the hibernation state, the contents of hiberfil.sys are loaded into memory and the system resumes where it left off.
  3. Otherwise, reads boot.ini and prompts the user with the boot menu accordingly.
  4. If a non NT-based OS is selected, NTLDR loads the associated file listed in boot.ini (bootsect.dos if no file is specified or if the user is booting into a DOS based OS) and gives it control.
  5. If an NT-based OS is selected, NTLDR runs ntdetect.com, which gathers information about the computer's hardware. (Ifntdetect.com hangs during hardware detection, there is a debug version called ntdetect.chk that can be found on Microsoft support.[4])
  6. Starts ntoskrnl.exe, passing to it the information returned by ntdetect.com.[5]

boot.ini

[edit]

NTLDR's first action is to read the boot.ini file.[6] NTLDR allows the user to choose which operating system to boot from at the menu. For NT and NT-based operating systems, it also allows the user to pass preconfigured options to the kernel. The menu options are stored in boot.ini, which itself is located in the root of the same disk as NTLDR. Though NTLDR can boot DOS and non-NT versions of Windows, boot.ini cannot configure their boot options.

For NT-based OSs, the location of the operating system is written as an Advanced RISC Computing (ARC) path.

boot.ini is protected from user configuration by having the following file attributes: system, hidden, read-only. To manually edit it, the user would first have to remove these attributes. A more secure fashion to edit the file is to use the bootcfg command from a console. bootcfg will also relock the file (setting the file back to system, hidden, and read-only). Additionally, the file can be edited within Windows using a text editor if the folder view option "Show hidden files and folders" is selected, the folder view option "Hide protected operating system files" is unchecked, and the "Read-only" option is unchecked under the file's properties.

bootsect.dos is the boot sector loaded by NTLDR to load DOS, or if there is no file specified when loading a non NT-based OS.

Example

[edit]

An example of a boot.ini file:

[boot loader]
timeout=40
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect

If the boot loader timeout option in boot.ini is set to 0, the NTLDR boot menu does not appear. Extreme caution should be taken when modifying the boot loader, as erroneous information can result in an OS that fails to boot.

NT kernel switches

[edit]
NTLDR Bootloader's Advanced Option Menu

See also

[edit]

References

[edit]
  1. ^ "Bootsect Command-Line Options". Windows Vista: Technical Reference. Microsoft Technet. 2009. Retrieved 2011-07-03.
  • ^ a b "MS-DOS and Windows command line bootsect command".
  • ^ "Boot Configuration Data Editor Frequently Asked Questions". Windows Server. Microsoft Learn. 2007. Retrieved 2024-01-04.
  • ^ "Ntdetect.com (Installd.cmd)". Microsoft. Archived from the original on 2006-02-06.
  • ^ Microsoft (2000). Windows 2000 Professional Resource Kit (1st ed.). Redmond, WA: Microsoft Press. ISBN 1-57231-808-2.
  • ^ Rick Maybury (2009). "Startup and Shutdown Problems, part 1". Bootcamp. Archived from the original on 2012-07-11. Retrieved 25 April 2012.{{cite web}}: CS1 maint: unfit URL (link)
  • ^ a b c d e f g h i j k l m n o p q r s t u Microsoft (November 28, 2007). "Available switch options for the Windows XP and the Windows Server 2003 Boot.ini files". Retrieved January 4, 2024.
  • ^ a b c d e f g h i j k l Russinovich, Mark (November 1, 2006). "Boot INI Options Reference". Microsoft Learn. Microsoft. Retrieved January 4, 2023.
  • ^ "Loss of DirectDraw Overlay and VMR9 after upgrade/update". VideoHelp Forum. July 2008.
  • ^ "/burnmemory (Windows Drivers". Boot.ini Boot Parameter Reference. Microsoft. Archived from the original on 2013-01-10.
  • ^ a b c d e "A description of the Safe Mode Boot options in Windows XP". Microsoft Support. Archived from the original on 2015-02-19.
  • ^ "Programs that use the QueryPerformanceCounter function may perform poorly". Microsoft Support. 23 February 2023.
  • [edit]
    Retrieved from "https://en.wikipedia.org/w/index.php?title=NTLDR&oldid=1224560641#boot.ini"

    Categories: 
    Windows components
    Boot loaders
    Hidden categories: 
    CS1 maint: unfit URL
    Articles with short description
    Short description matches Wikidata
    Articles to be expanded from June 2020
    All articles to be expanded
    Articles using small message boxes
    Wikipedia articles with style issues from July 2016
    All articles with style issues
    Webarchive template wayback links
     



    This page was last edited on 19 May 2024, at 02:31 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki