Turning on the power to start the machine is almost a daily task for computer enthusiasts. We will not be unfamiliar with the screen startup screen,, what does the computer do when it displays these boot screens? I believe some of my friends are not very clear. This article will introduce what computers have done when the power is turned on to the appearance of windows blue sky and white clouds.
First, let's understand some basic concepts. First, we are very familiar with BIOS (Basic Input and Output Systems). BIOS is the underlying layer that deals directly with hardware. Code It provides basic functions for the operating system to control hardware devices. BiOS includes the BIOS of the system BIOS (commonly referred to as the motherboard BIOS), the video card bios, and other devices (such as the IDE controller, scsicard, or Nic, the system BIOS is the main character of this article, because the Startup Process of a computer is under its control. The BIOS is generally stored in the ROM (read-only storage chip), and the Code will not disappear even after it is shut down or powers down.
The second basic concept is the memory address. Generally, 32 MB, 64 MB, or MB memory is installed on our machine. Each byte of memory is assigned an address, so that the CPU can access the memory. The 32 MB address range is expressed as 0 ~ in hexadecimal notation ~ 1 ffffffh, where 0 ~ Fffffh's low-end 1 MB memory is very special, because the first 8086 processor can access a maximum of 1 MB of memory, which is known as the basic memory at the low end of 1 MB 640kb, while a0000h ~ Bffffh must be retained for the display card. c0000h ~ Fffffh is reserved for the BIOS. The system BIOS usually occupies 64kb or more space ~ At c7fffh, the BIOS of the IDE controller is in c8000h ~ Cbfffh.
Now let's take a closer look at the computer startup process.
Step 1: When we press the power switch, the power supply starts to power the motherboard and other devices. The voltage is not stable yet, the control chipset on the motherboard sends a reset signal to the CPU and enables the CPU to automatically return to the initial state. However, the CPU does not execute commands immediately at this moment. When the chipset detects that the power supply has begun to stabilize the power supply (of course, the process from unstable to stable is only a matter of an instant ), it removes the reset signal (if you manually press the reset button on the computer panel to restart the machine, the chipset removes the reset signal when the button is released ), the CPU immediately starts executing commands from the address ffff0h. From the previous introduction, we can see that this address is actually within the system BIOS address range, whether it is Award bios or ami bios, here is just a jump command, jump to the real startup code in the system BIOS.
Step 2: The first thing to do with the startup code of the system BIOS is to perform post (power-on self test, self-check after power-on ), the main task of post is to detect the existence and normal operation of some key devices in the system, such as memory and video card devices. Since post is the earliest detection process, the video card has not been initialized yet. If the system BIOS finds some fatal errors during the post process, for example, if the memory is not found or the memory is faulty (only KB of general memory will be checked at this time), the system BIOS will directly control the speaker voice to report the error, the length and number of sounds indicate the type of errors. Under normal circumstances, the post process is very fast and we can hardly feel its existence. After the post process is completed, other code will be called for more complete hardware detection.
Step 3: The system BIOS will look for the BIOS of the video card. As mentioned above, the starting address of the ROM chip storing the video card BIOS is usually located at c0000h, after the system BIOS finds the video card bios, it calls its initialization code. The video card BIOS initializes the video card. At this time, most video cards will display some initialization information on the screen, introduce the manufacturer, graphics chip type and other content, but this picture is almost a flash. The system BIOS will then look for the BIOS of other devices Program And then call the initialization code in the BIOS to initialize the device.
Step 4: after finding the BIOS of all other devices, the system BIOS displays its own boot screen, including the type, serial number, and version number of the system BIOS.
Step 5: The system BIOS detects and displays the CPU type and operating frequency, starts testing all ram, and displays the Memory Test Progress on the screen, we can choose to use a simple and time-consuming or detailed testing method in the CMOS settings.
Step 6: After the memory test is passed, the system BIOS will start to detect some standard hardware devices installed in the system, including hard disks, CD-Rom, serial ports, parallel ports, and soft drives, in addition, the vast majority of newer versions of the system BIOS also need to automatically detect and set the memory timing parameters, hard disk parameters and access mode.
Step 7: After the standard device is detected, the plug-and-play code in the system BIOS starts to detect and configure the plug-and-play devices installed in the system, after a device is found, the system BIOS displays the device name, model, and other information on the screen, and allocates resources such as interrupt, DMA channel, and I/O port to the device.
Step 8: by now, all hardware has been tested and configured. Most system BIOS will be refreshed and a table is displayed on the top of the screen, it roughly lists the various standard hardware devices installed in the system, the resources they use, and some related working parameters.
Step 9: The system BIOS will update the escd (extended system configuration data, extended system configuration data ). The escd is a means for the system BIOS to exchange hardware configuration information with the operating system. The data is stored in CMOS (a small block of special ram, powered by a battery on the motherboard. Generally, the escd data is updated only after the hardware configuration of the system is changed. Therefore, we do not see "Update escd... Success ", however, the BIOS of some motherboard uses a different data format than Windows 9x when saving escd data, therefore, Windows 9x will change the escd data to its own format during its own startup, but even if the hardware configuration does not change during the next startup, the system BIOS will also change the escd data format back, so that the loop will cause the system BIOS to update the escd every time the machine is started, this is why some machines will display relevant information each time they are started.
Step 10: After the escd is updated, the startup code of the system BIOS performs its last task, that is, starting from a floppy disk, hard disk, or optical drive according to the boot sequence specified by the user. Take disk C as an example. The system BIOS will read and execute the Master Boot Record on the hard disk. The Master Boot Record will then find the first active partition from the partition table, then read and execute the Partition Boot Record of the active partition, And the Partition Boot Record reads and executes Io. sys, which is the most basic system file for DOS and Windows 9X. Windows 9x Io. sys first needs to initialize some important system data, and then shows the familiar blue sky and white clouds. In this picture, Windows will continue to perform dos and Gui (graphic user interface) partial boot and initialization work.
If a tool or software is installed in the system that directs multiple operating systems, the Master Boot Record is usually replaced with the boot code of the software, which allows you to select an operating system, then read and execute the basic Boot Code of the operating system (the Basic Boot Code of DOS and Windows is the Partition Boot Record ). The above describes the various initialization tasks that need to be completed by the computer when the power switch (or press the reset key) is enabled for cold start, if we press CTRL + ALT + DEL in DOS to perform Hot Start (or restart the computer from Windows), the post process will jump over and start directly from step 3, in addition, the CPU and memory test in step 5 will not be performed. We can see that both cold start and hot start, the system BIOS repeats these things that we do not pay too much attention to at ordinary times, however, it is these monotonous hardware detection steps that provide us with the Foundation for normal use of computers.
Currently, the mainstream brands on the market generally use Windows XP for random installation. However, some users may still have a special liking for Windows 98, Windows ME, or Windows 2000 operating systems, we hope to install the above operating system without damaging the original operating system. In general, if we do not use third-party software, we should install Microsoft's Windows operating systems in sequence from low to high; if a third-party software is used, the copyright and usage of the software used will be involved, which is obviously inappropriate for general users. In fact, according to the methods we provide in this article, operating system anti-dress can be achieved without any third-party software, and it is very simple!
For example, on my Lenovo brand machine, Windows XP family edition is installed in hard drive zone C. The file format in Zone C is FAT 32, and the file system in other partitions is FAT 32. Use this method to install Windows 98, C, and the file system that installs Windows 98 partitions must be converted to Fat 32; otherwise, a third-party startup software is required. Of course, if the file format is NTFS, we can use the "partition magic" software to lossless conversion to Fat 32.
Preparation: A Windows 98/me boot floppy disk that supports the optical drive; a debug. EXE file (which can be copied from the Windows \ command folder to the boot floppy disk or extracted from EBD. Cab ).
Steps:
Part 1:
Install Windows 98/me
1. Place the installation CD of Windows 98/me into the optical drive; 2. Use the prepared boot disk to start the computer;
3. Follow the normal method of Installing Windows 98/me to install the operating system; just do not install Windows 98/me in the partition where Windows XP is located;
4. After installation, start the computer to the Windows 98/me operating system.
Part 2:
Modify the "bootsect. Dos" File
After installing the Windows 98/me operating system according to the above method, the startup file required for Windows XP will be modified. We need to modify the "bootsect. Dos" file to fix its Startup File.
1. Open notepad or other text editing software to create read. scr (the file name can be changed). The content is as follows:
L 100 2 0 1
N c: \ bootsect. Dos
R BX
0
R CX
200
W
Q
2. Copy the above files to the boot disk;
3. Use the boot disk to start the computer to DOS;
4. Modify the attributes of the "bootsect. Dos" file by running the following command:
Attrib c: \ bootsect. DOS-s-h-R
5. Enter: Debug at the command prompt.
Part 3:
Fix Windows XP
1. modify the BIOS boot options to enable the computer to start from the optical drive. You can also use the boot disk you just created to start the computer, and then enter f at the command prompt: \ i386 \ winnnt.exe (F is the drive letter of the optical drive) to run the installation command;
2. When installing Windows XP, We need to select the "Repair" option to repair the installed operating system on the hard disk;
3. select the operating system to log on to, usually "1", type "1", and enter the administrator password (set during installation, users who install Lenovo brand machines for Windows XP family edition only need to press the Enter key );
4. Type "fixboot" at the command prompt to fix the Windows XP Startup File;
5. Take out the Windows XP installation disc in the optical drive, restart the computer, modify the startup options in the bios, and set it to start from the hard disk.
Now you can see the Windows XP Startup menu and select the OS you want to enter. After restarting the computer, we can select the OS to be started. Is it easy?
Part 4:
Install Win2000 in WINXP
After installing Windows XP, installing Windows 2000 is much easier than installing 98 or me. The method mentioned in this Article does not need third-party software, and can be operated in the file format of FAT32 or NTFS.
1. first, open "Control Panel", select "Folder Options", double-click, and select "View" in the "Folder Options" window ", remove "√" before "Hide protected operating system files" in "Advanced Settings" to display the two system files we need: "ntldr" and "ntdetect. com ";
2. Copy the two files to a floppy disk;
3. Modify the startup options in the BIOS to start the computer from the CD and run the installation procedure for Windows 2000;
4. Install Windows 2000 as usual;
5. After the installation is complete, start the computer to Windows 2000;
6. copy the above two files from the floppy disk to the root directory of Zone C. If the system prompts that the files cannot be copied, You need to modify the attributes of the above two files, remove their "read-only" and "hidden" attributes.
Note: this is because "ntldr" and "ntdetect" of Windows XP are used. com "supports Windows 2000, but the latter does not support the former, so we need to perform the above operations.
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.