柚子Nan--回归原点

Everything can be as easy as you like or as complex as you need.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

What does Windows do when it starts up?

Posted on 2005-10-11 17:43  柚子Nan  阅读(649)  评论(0编辑  收藏  举报

A windows server 2003 startup process requires three startup files: Ntldr.exe, Ntdetect.com and boot.ini.  The following is the steps when it starts up.

 

  1. Press the Power Key on the computer, the Power-On Self Test (POST) loads the system BIOS into memory.  
  2. The BIOS reads the MBR (Master Boot Record) contents. 
  3. MBR reads the contents of the boot sectors of each partition until it finds a bootable sector. 
  4. The boot sector program reads the boot directory and loads Windows Server 2003 Loader, also called Ntldr, into memory. 
  5. Ntldr loads the basic memory configuration and then loads itself into high memory. 
  6. Ntldr switches the server to the 32-bit mode, which is a protected mode. 
  7. Ntldr reads the boot.ini startup file and loads the OS. C:\Windows. 
  8. Ntldr loads Ntdetect.com, which is a 16-bit application and is also called Ntdetect. To do this, Ntldr switches the server back to the 16-bit mode, which is a real mode, from the protected mode. 
  9. Ntldr loads itself into memory and reads the resource map. 
  10. Ntldr switches the server to the protected mode again to creates the HKEY_LOCAL_MACHINE/HARDWARE register key. To do this, it sets up the ring 0 mode for the kernel and then loads the appropriate Ntoskrnl kernel file, the hardware abstraction layer (HAL硬件抽象层), and the boot drivers for the server. 
  11. Ntldr starts the run process for NtosKrnl. This enables Win Server 2003 to start and run normally.