Question

Boot Sequence

Asked by: ravi

What is the actual boot sequence for Windows. What is the difference in the Boot process of Win2K and Win98 and Win 95?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2004-02-11 at 00:34:03ID20880746
Tags

boot

,

sequence

,

windows

Topic

Windows 95 and 3.x

Participating Experts
2
Points
125
Comments
6

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. BOOTING SEQUENCE
    Hello All Can anyone explain the Booting sequence in Nt 5.0 and is there any file like Boot.ini in NT40 which can be modified to select the default OS. Shoeb
  2. boot sequence in windows xp
    i was wondering how you edit the boot sequence in windows xp. i want to boot off of a cd.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: CrazyOnePosted on 2004-02-11 at 01:06:27ID: 10330476

Well what I am posting is for XP but it applies to win2000

The PC Boot Process - Windows XP
http://www.qvctc.commnet.edu/classes/csc277/boot-xp.html

 Power supply switched on.
  The power supply performs a self-test. When all voltages and current levels are acceptable, the supply indicates that the power is stable and sends the Power Good signal to the processor. The time from switch-on to Power Good is usually between .1 and .5 seconds.
   
 The microprocessor timer chip receives the Power Good signal.
  With the arrival of the Power Good signal the timer chip stops sending reset signals to the processor allowing the CPU to begin operations.
 
 The CPU starts executing the ROM BIOS code.
  The CPU loads the ROM BIOS starting at ROM memory address FFFF:0000 which is only 16 bytes from the top of ROM memory. As such it contains only a JMP (jump) instruction that points to the actual address of the ROM BIOS code.  
 
 The ROM BIOS performs a basic test of central hardware to verify basic functionality.
  Any errors that occur at this point in the boot process will be reported by means of 'beep-codes' because the video subsystem has not yet been initialized.
 
   
 The BIOS searches for adapters that may need to load their own ROM BIOS routines.  
  Video adapters provide the most common source of adapter ROM BIOS. The start-up BIOS routines scan memory addresses C000:0000 through C780:0000 to find video ROM. An error loading any adapter ROM generates an error such as:
XXXX ROM Error

where XXXX represents the segment address of the failed module.
   
 The ROM BIOS checks to see if this is a 'cold-start' or a 'warm-start'
  To determine whether this is a warm-start or a cold start the ROM BIOS startup routines check the value of two bytes located at memory location 0000:0472. Any value other than 1234h indicates that this is a cold-start.
 
 If this is a cold-start the ROM BIOS executes a full POST (Power On Self Test). If this is a warm-start the memory test portion of the POST is switched off.
  The POST can be broken down into three components:
The Video Test initializes the video adapter, tests the video card and video memory, and displays configuration information or any errors.
The BIOS Identification displays the BIOS version, manufacturer, and date.
The Memory Test tests the memory chips and displays a running sum of installed memory.
 
  Errors the occur during the POST can be classified as either 'fatal' or 'non-fatal'. A non-fatal error will typically display an error message on screen and allow the system to continue the boot process. A fatal error, on the other hand, stops the process of booting the computer and is generally signaled by a series of beep-codes.
 
 The BIOS locates and reads the configuration information stored in CMOS.
  CMOS (which stands for Complementary Metal-Oxide Semiconductor) is a small area of memory (64 bytes) which is maintained by the current of a small battery attached to the motherboard. Most importantly for the ROM BIOS startup routines CMOS indicates the order in which drives should be examined for an operating systems - floppy first, CD-Rom first, or fixed disk first.  

 If the first bootable disk is a fixed disk the BIOS examines the very first sector of the disk for a Master Boot Record (MBR). For a floppy the BIOS looks for a Boot Record in the very first sector.
  On a fixed disk the Master Boot Record occupies the very first sector at cylinder 0, head 0, sector 1. It is 512 bytes in size. If this sector is found it is loaded into memory at address 0000:7C00 and tested for a valid signature. A valid signature would be the value 55AAh in the last two bytes. Lacking an MBR or a valid signature the boot process halts with an error message which might read:
NO ROM BASIC - SYSTEM HALTED

A Master Boot Record is made up of two parts - the partition table which describes the layout of the fixed disk and the partition loader code which includes instructions for continuing the boot process.
   
MBR
 With a valid MBR loaded into memory the BIOS transfers control of the boot process to the partition loader code that takes up most of the 512 bytes of the MBR.  
  The process of installing multiple operating systems on a single PC usually involves replacing the original partition loader code with a Boot Loader program that allows the user to select the specific fixed disk to load in the next step of the process. Windows XP relies on the NTDLR program to provide this same function later in the boot sequence.
 
Partition Table
 The partition loader (or Boot Loader) examines the partition table for a partition marked as active. The partition loader then searches the very first sector of that partition for a Boot Record.  
  When a partition is formatted with the NTFS file system the first 16 sectors are reserved for the Boot Record (not just 1 sector as in DOS). The additional 15 sectors allow to Boot Record to contain enough program code so that the Boot Loader can locate the XP Master File Table which need not reside in any fixed position on the partition. With the MFT loaded the Boot Loader can locate all of the files that make up the OS.  
 
Operating System
   
Boot Record
 The active partition's boot record is checked for a valid boot signature and if found the boot sector code is executed as a program.
  The loading of Windows XP is controlled by the file NTDLR which is a hidden, system file that resides in the root directory of the system partition. NTDLR will load XP in four stages:
1) Initial Boot Loader Phase
2) Operating System selection
3) Hardware Detection
4) Configuration Selection
 
NTDLR
Initial Phase
 During the initial phase NTDLR switches the processor from real-mode to protected mode which places the processor in 32-bit memory mode and turns memory paging on. It then loads the appropriate mini-file system drivers to allow NTDLR to load files from a partition formatted with any of the files systems supported by XP.
  Windows XP supports partitions formatted with either the FAT-16, FAT-32, or NTFS file system.
   
NTDLR
OS Selection
BOOT.INI
 If the file BOOT.INI is located in the root directory NTDLR will read it's contents into memory. If BOOT.INI contains entries for more than one operating system NTDLR will stop the boot sequence at this point, display a menu of choices, and wait for a specified period of time for the user to make a selection.
  If the file BOOT.INI is not found in the root directory NTDLR will continue the boot sequence and attempt to load XP from the first partition of the first disk, typically C:\.
 
F8
 Assuming that the operating system being loaded is Windows NT, 2000, or XP pressing F8 at this stage of the boot sequence to display various boot options including "Safe Mode" and "Last Known Good Configuration".
  After each successful boot sequence XP makes a copy of the current combination of driver and system settings and stores it as the Last Known Good Configuration. This collection of settings can be used to boot the system subsequently if the installation of some new device has caused a boot failure.
 
NTDLR
Hardware Detection
 If the selected operating system is XP, NTDLR will continue the boot process by locating and loading the DOS based NTDETECT.COM program to perform hardware detection.
  NTDETECT.COM collects a list of currently installed hardware components and returns this list for later inclusion in the registry under the HKEY_LOCAL_MACHINE\HARDWARE key.
   
NTDLR
Configuration Selection
 If this computer has more than one defined Hardware Profile the NTDLR program will stop at this point and display the Hardware Profiles/Configuration Recovery menu.
  Lacking more than one Hardware Profile NTDLR will skip this step and not display this menu.
 
Kernel Load
 After selecting a hardware configuration (if necessary) NTDLR begins loading the XP kernel (NTOSKRNL.EXE).
  During the loading of the kernel (but before it is initialized) NTDLR remains in control of the computer. The screen is cleared and a series of white rectangles progress across the bottom of the screen. NTDLR also loads the Hardware Abstraction Layer (HAL.DLL) at this time which will insulate the kernel from hardware. Both files are located in the <winnt>\system32 directory.
   
NTDLR
Boot
Device Drivers
 NTDLR now loads device drivers that are marked as boot devices. With the loading of these drivers NTDLR  relinquishes control of the computer.  
  Every driver has a registry subkey entry under HKEY_LOCAL_MACHINE
\SYSTEM\Services. Any driver that has a Start value of
SERVICE_BOOT_START is considered a device to start at boot up. A period is printed to the screen for each loaded file (unless the /SOS switch is used in which case file names are printed.
 
Kernel Initialization
 NTOSKRNL goes through two phases in its boot process - phase 0 and phase 1. Phase 0 initializes just enough of the microkernel and Executive subsystems so that basic services required for the completion of initialization become available.. At this point, the system display a graphical screen with a status bar indicating load status.
  XP disables interrupts during phase 0 and enables them before phase 1. The HAL is called to prepare the interrupt controller; the Memory Manager, Object Manager, Security Reference Monitor, and Process Manager are initialized.
Phase 1 begins when the HAL is called to prepare the system to accept interrupts from devices. If more than one processor is present the additional processors are initialized at this point. All Executive subsystems are reinitialized in the following order:
1) Object Manager
2) Executive
3) Microkernel
4) Security Reference Monitor
5) Memory Manager
6) Cache Manager
7) LPCS
8) I/O Manager
9) Process Manager
   
I/O Manager
 The initialization of I/O Manager begins the process of loading all the systems driver files. Picking up where NTLDR left off, it first finishes the loading of boot devices. Next it assembles a prioritized list of drivers and attempts to load each in turn.  
  The failure of a driver to load may prompt NT to reboot and try to start the system using the values stored in the Last Known Good Configuration.
 
SMSS
 The last task for phase 1 initialization of the kernel is to launch the Session Manager Subsystem (SMSS). SMSS is responsible for creating the user-mode environment that provides the visible interface to NT.
  SMSS runs in user-mode but unlike other user-mode applications SMSS is considered a trusted part of the operating system and is also a native application (it uses only core Executive functions). These two features allow SMSS to start the graphics subsystem and login processes.
 
win32k.sys
 SMSS loads the win32k.sys device driver which implements the Win32 graphics subsystem.
  Shortly after win32k.sys starts it switches the screen into graphics mode. The Services Subsystem now starts all services mark as Auto Start. Once all devices and services are started the boot is deemed successful and this configuration is saved as the Last Known Good Configuration.
 
Logon
 The XP boot process is not considered complete until a user has successfully logged onto the system. The process is begun by the WINLOGON.EXE file which is loaded as a service by the kernel and continued by the Local Security Authority (LSASS.EXE) which displays the logon dialog box.
  This dialog box appears at approximately the time that the Services Subsystem starts the network service.

 

by: CrazyOnePosted on 2004-02-11 at 01:09:18ID: 10330487

http://www.compphix.com/95-98bootsequence.html

Windows 95/98--BOOT SEQUENCES
The Windows 95 boot sequence is as follows:

When you boot the machine, POST (Power-On Self Test) occurs just as it does for BIOS (Basic Input/Output System) that is not Plug and Play.
The Plug and Play(PnP) BIOS begins by looking at the hardware devices on the system and figuring out which ones are PnP compliant. The BIOS first enables the devices that are not Plug and Play, and then tries to make the PnP devices use the leftover resources.
The Basic Input/Output System looks for devices containing the Operating System (OS) and loads Windows 95, making information about the current allocation of resources available to the OS.
Just as with DOS, the Master Boot Record (MBR) executes the boot record on the hard drive, which looks for the initial hidden files of Windows 95, called IO.SYS.
Again, just as with DOS, IO.SYS loads. If fact, IO.SYS is really a small core DOS module. IO.SYS looks for CONFIG.SYS file, and, if found, the CONFIG.SYS file executes. The CONFIG.SYS file is not required for Windows 95. Many of its functions have been eliminated and incorporated into Windows 95. but you can use the CONFIG.SYS file to load device drivers, if you want. However, the driver loaded in CONFIG.SYS will be a 16 bit driver and it will be slower that the 32 bit drivers that Windows 95 uses.
After CONFIG.SYS is complete, IO.SYS searches for MSDOS.SYS. The role of MSDOS.SYS differs greatly in Windows 95 from that in DOS. In Windows 95, MSDOS.SYS is a hidden file with settings used to customize the boot process.
The functions of the first few entries in MSDOS.SYS look like the following:
WinDir= (Location of the Windows 9x directory)
WinBootDir= (Location of the Windows 9x startup files)
HostWinBootDrv= (Drive that is the Windows boot drive)
BootGUI= (BootGUI=1, automatic graphical startup into Windows 9x is enabled. BootGUI=0, the system boots to a command prompt)
Next, COMMAND.COM loads just as with DOS. COMMAND.COM is used to provide a command interface for users and to execute an AUTOEXEC.BAT file, if it is present.
If AUTOEXEC.BAT is found, it now executes.
The heart of Windows 95 now loads, providing a desktop from which you can execute application software.
WINDOWS 98 BOOT SEQUENCE:

Just as with Windows 95, Windows 98 goes through a boot sequence in the order listed above.

BIOS runs POST
BIOS loads a small DOS core
The DOS core loads Windows 98
Windows 98 has made some some minor changes in what happens during startup, in order to speed up the boot process.

Windows 95 waits 2 seconds, while "Starting Windows 95" is displayed so that you can press a key to alter the boot process.
Windows 98 eliminated the 2 second wait and, in its place, allows you to hold down the CTRL key as it loads. If you do that, you will see the Startup Menu display.

 

by: rayt333Posted on 2004-02-13 at 20:33:07ID: 10358948

homework question?
is it an essay type question?

 

by: CrazyOnePosted on 2004-03-03 at 16:50:34ID: 10510237

Lee I did answer the question :)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...