Linux的启动过程

http://tech.ddvip.com   2006年08月11日    社区交流

本文详细介绍Linux的启动过程

  

Linux's boot process explained

Short history of the UNIX operating system

  Linux is an implementation of the UNIX operating system concept. UNIX was derived from AT&T's "Sys V" (System 5). The initialization process is meant to control the starting and ending of services and/or daemons in a system, and permits different start-up configurations on different execution levels ("run levels").

  Some Linux distribution, like SlackWare, use the BSD init system, developed at the University of California, Berkeley.

  Sys V uses a much more complex set of command files and directives to determine which services are available at different levels of execution, than the BSD's do.

  Booting the Linux operating system

  The first thing a computer does on start-up is a primer test (POST - Power On Self Test). This way several devices are tested, including the processor, memory, graphics card and the keyboard. Here is tested the boot medium (hard disk, floppy unit, CD-ROMs). After POST, the loader from a ROM loads the boot sector, which in turn loads the operating system from the active partition.

  The boot blocks is always at the same place: track 0, cylinder 0, head 0 of the device from which we're booting. This block contains a program called loader, which in Linux's case is LiLo (Linux Loader), or Grub (GNU Grub Unified Boot Loader), which actually boots the operating system. These loaders in Linux , in case of a multi-boot configuration (more operating systems on a computer), permit the selection of the operating system to be booted. Lilo and Grub are installed or at the MBR (Master Boot Record), or at the first sector of the active partition.

责编:豆豆技术应用

正在加载评论...