Solved

boot question

Posted on 2003-12-12
9
992 Views
Last Modified: 2013-12-29
What happens upon boot up, starting with the (presumedly MS-DOS) kernal, in chronological order?  and what user options exist along the way (such as the F8 key) to change things?

basically, what calls what, calls what, etc..  and what files are involved?

thanks.  :)
0
Comment
Question by:glow060197
  • 5
  • 3
9 Comments
 
LVL 57

Accepted Solution

by:
Pete Long earned 500 total points
ID: 9927755
Hi glow,
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.
http://www.compphix.com/95-98bootsequence.html

PeteL
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 9927762
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 9927769
glow,
Your computer's environment includes settings from the following files

Msdos.sys
Config.sys
Autoexec.bat
Winboot.ini
Windows\Winstart.bat
Windows\System.ini
Windows\Win.ini
Windows\Wininit.ini
Windows\System.dat
Windows\User.dat

These files are loaded as part of the boot process as Windows starts and help create the environment used by the operating system (OS) and programs.
PL
0
 

Author Comment

by:glow060197
ID: 9927797
you are truly an expert, Pete.  

let's say i wanted to have something run along the lines of

java Foobar

along the way, before Windows starts, like every time.  where could i put that?  would autoexec.bat be the place like in the "old days" or what?

0
Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 
LVL 57

Expert Comment

by:Pete Long
ID: 9927926
heheh if autoexec.bat exists then it will be processed yes but win 9x can start without an autoexec.bat and config.sys
they are only included for backwards compatability and loading 16 bit drivers etc

if you want an application to run EVERY time windows starts you need to place a pointer to the executable here....

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

you can get to this key by simply running regedit

or if thats too much hassle remember windows 9x dosnt have profiles so you can put the executable in the startup folder and it will execute for everyone, if you have a clever user though they will look in the startup folder :0) but it takes a bit more knowledge to hunt the registry :0)

Pete
0
 
LVL 38

Expert Comment

by:BillDL
ID: 9928395
What exactly would your hypothetical "Java Foobar" program do to the computer?

What I mean is, would this run something as a background process, or would it run something and then exit.

If it is is intended to run as a background process, then the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices

would be the key to place the entry in.

Note, entries in:

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices

can all be disabled by running MSCONFIG and then rebooting.

If you really want to start running covert background processes or startup programs, and disallow users from interfering with them, then you have to start employing some System Policies or other Registry modifications to hide or disable options from users.

0
 

Author Comment

by:glow060197
ID: 9929872
note that i don't want my program to run WHEN Windows starts up, but BEFORE that.  i was just thinking of a program that would write out a file of the time and date of it's own running.  so maybe the autoexec.bat option is better?

at what point is win.com run?  is that not the actual executable that starts windows running from DOS?

your suggestion, Bill, of a background process is very intriguing though, just from a theoretical (fun) perspective.  if it started before windows starts, would it be interrupted?  

i think i will try to write a java program that does a subliminal screen flash every so often just for kicks, and try it...this conversation is really fertilizing my brain, thanks you guys! :)
0
 

Author Comment

by:glow060197
ID: 9929902
<<<If you really want to start running covert background processes or startup programs, and disallow users from interfering with them, then you have to start employing some System Policies or other Registry modifications to hide or disable options from users.>>>

just how hidden can a process be?  can you hide it from something like WinPatrol even?  just curious.  

how are System Policies set/adjusted?  
0
 
LVL 57

Expert Comment

by:Pete Long
ID: 9929928
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now