BACKEND PROCESS OF BOOTING
CONCEPT OF BOOTING
Booting
Booting is basically the process of starting the computer. When the CPU is first switched on it has nothing inside the Memory. In order to start the Computer, load the Operating System into the Main Memory and then Computer is ready to take commands from the User. Learn the types of booting.
What happens in the Process of Booting?
Booting happens when you start the computer. This happens when we turned ON the power or the computer restarts. The system BIOS (Basic Input/Output System) makes the peripheral devices active. Further, it requires that the boot device loads the operating system into the main memory.
Boot Devices
Booting can be done either through hardware (pressing the start button) or by giving software commands. Therefore, a boot device is a device that loads the operating system. Moreover, it contains the instructions and files which start the computer. Examples are the hard drive, floppy disk drive, CD drive, etc. Among them, the hard drive is the most used one.
Types of Booting
There are two types of booting:
Cold BootingA cold boot is also called a hard boot. It is the process when we first start the computer. In other words, when the computer is started from its initial state by pressing the power button it is called cold boot. The instructions are read from the ROM and the operating system is loaded in the main memory.
Warm Booting
Warm Boot is also called soft boot. It refers to when we restart the computer. Here, the computer does not start from the initial state. When the system gets stuck sometimes it is required to restart it while it is ON. Therefore, in this condition the warm boot takes place. Restart button or CTRL+ALT+DELETE keys are used for warm boot.
Booting Process in Operating System
When our computer is switched on, it can be started by hardware such as a button press, or by software command, a computer's central processing unit (CPU) has no software in its main memory, there is some process which must load software into main memory before it can be executed. Below are the six steps to describe the boot process in the operating system, such as:
Step 1: Once the computer system is turned on, BIOS (Basic Input /Output System) performs a series of activities or functionality tests on programs stored in ROM, called on POST (Power-on Self Test) that checks to see whether peripherals in the system are in perfect order or not.
Step 2: After the BIOS is done with pre-boot activities or functionality test, it read bootable sequence from CMOS (Common Metal Oxide Semiconductor) and looks for master boot record in the first physical sector of the bootable disk as per boot device sequence specified in CMOS. For example, if the boot device sequence is:
- Floppy Disk
- Hard Disk
- CDROM
Step 3: After this, the master boot record will search first in a floppy disk drive. If not found, then the hard disk drive will search for the master boot record. But if the master boot record is not even present on the hard disk, then the CDROM drive will search. If the system cannot read the master boot record from any of these sources, ROM displays "No Boot device found" and halted the system. On finding the master boot record from a particular bootable disk drive, the operating system loader, also called Bootstrap loader, is loaded from the boot sector of that bootable drive· into memory. A bootstrap loader is a special program that is present in the boot sector of a bootable drive.
Step 4: The bootstrap loader first loads the IO.SYS file. After this, MSDOS.SYS file is loaded, which is the core file of the DOS operating system.
Step 5: After this, MSDOS.SYS file searches to find Command Interpreter in CONFIG.SYS file, and when it finds, it loads into memory. If no Command Interpreter is specified in the CONFIG.SYS file, the COMMAND.COM file is loaded as the default Command Interpreter of the DOS operating system.
Step 6: The last file is to be loaded and executed is the AUTOEXEC.BAT file that contains a sequence of DOS commands. After this, the prompt is displayed. We can see the drive letter of bootable drive displayed on the computer system, which indicates that the operating system has been successfully on the system from that drive.
What is Dual Booting
When two operating systems are installed on the computer system, then it is called dual booting. Multiple operating systems can be installed on such a system. But to know which operating system is to boot, a boot loader that understands multiple file systems and multiple operating systems can occupy the boot space.
Comments
Post a Comment