Information AboutBooting |
| CATEGORIES ABOUT BOOTING | |
| booting | |
| biosbooting | |
| bios | |
| operating system technology | |
|
: ''This article is about booting, in the sense of starting a computer. For other meanings, see Booting (disambiguation) .'' ]] In Computing , booting is a Bootstrapping process that starts Operating System s when the user turns on a Computer System . A '''boot sequence''' is the set of operations the computer performs when it is switched on which load an operating system. BOOT LOADER Most Computer systems can only execute code found in the memory ( ROM or RAM ); modern operating systems are mostly stored on Hard Disk s, LiveCD s and USB Flash Drive s. Just after a computer has been turned on, it doesn't have an operating system in memory. The computer's Hardware alone cannot perform complicated actions of the operating system, such as loading a program from disk; so a seemingly irresolvable Paradox is created: to load the operating system into memory, one appears to need to have an operating system already installed. The solution to the paradox involves using a special small Program , called a ''bootstrap loader'' or '' Boot Loader ''. This program doesn't have the full functionality of an operating system, but is tailor-made to load enough other software for the operating system to start. Often, multiple-stage boot loaders are used, in which several small programs summon each other, until the last of them loads the operating system. The name ''bootstrap loader'' comes from the image of one pulling oneself up by one's bootstraps (see Bootstrapping ). Early programmable computers had toggle Switch es on the front panel to allow the operator to place the bootloader into the program store before starting the CPU . This would then read the operating system in from an outside storage medium such as Paper Tape or an old fixed head Disk Drive . Pseudo - Assembly Code for the bootloader might be as simple as the following eight instructions: 0: set the P register to 8 1: check paper tape reader ready 2: if not ready, jump to 1 3: read a byte from paper tape reader to accumulator 4: if end of tape, jump to 8 5: store accumulator to address in P register 6: increment the P register 7: jump to 1 A related example is based on a loader for a 1970's Nicolet Instrument Corporation minicomputer. Note that the bytes of the second-stage loader are read from paper tape in reverse order. 0: set the P register to 106 1: check paper tape reader ready 2: if not ready, jump to 1 3: read a byte from paper tape reader to accumulator 4: store accumulator to address in P register 5: decrement the P register 6: jump to 1 The length of the second stage loader is such that the final byte overwrites location 6. After the instruction in location 5 executes, location 6 starts the second stage loader executing. The second stage loader then waits for the much longer tape containing the operating system to be placed in the tape reader. The difference between the boot loader and second stage loader is the addition of checking code to trap paper tape read errors, a frequent occurrence with the hardware of the time, which in this case was an ASR-33 Teletype . In modern computers the bootstrapping process begins with the CPU executing software contained in ROM (for example, the BIOS of an IBM PC ) at a predefined address (the CPU is designed to execute this software after reset without outside help). This software contains rudimentary functionality to search for devices eligible to participate in booting, and load a small program from a special section (most commonly the Boot Sector ) of the most promising device. Boot loaders may face peculiar constraints, especially in size; for instance, on the IBM PC and compatibles, the first stage of boot loaders must fit into the first 446 Bytes of the Master Boot Record , in order to leave room for the 64-byte Partition Table and the 2-byte AA55h 'signature', which the BIOS requires for a proper boot loader. Some operating systems, most notably pre-1995 Macintosh systems from Apple Computer , are so closely interwoven with their hardware that it is impossible to natively boot an operating system other than the standard one. A common solution in such situations is to design a bootloader that works as a program belonging to the standard OS that hijacks the system and loads the alternative OS. This technique was used by Apple for its A/UX Unix implementation and copied by various freeware operating systems. Second-stage boot loader |
|
|