Lecture #4 System Startup and Shutdown

Learner Outcomes

Activities

Assignment

System Startup and Shutdown

  1. Booting the System
    1. Power On Self Test (POST) - loads the BIOS
    2. BIOS loads the Master Boot Record
    3. MBR reads its partition table to determine which partition to boot into
    4. MBR loads the boot program in the active partition
    5. Boot program presents user with a boot prompt
    6. Based upon user selection, boot program loads the desired kernel along with any supplied boot options
    7. Kernel uncompresses and loads into memory
    8. Kernel detects hardware and initializes its data
  2. Rooting the System
    1. Kernel mounts the root file system
    2. Kernel creates and starts the init process
    3. Init reads /etc/inittab for its instructions
    4. Init performs system initialization:
      • presents some kind of welcome banner
      • allows for an interactive startup
      • sets up keyboard mapping, system fonts, plug and play devices, ...
      • checks for dirty file systems, and cleans them if necessary
      • checks disk quotas and swap space
      • mounts all file systems
    5. Chooses which runlevel to come up in and executes those scripts via rc script
    6. daemons load
    7. getty processes are spawned on terminal devices
  3. LILO, GRUB and Dual Booting
  4. Init and Runlevels
  5. Shutting the System Down

Relevant Commands and Files

Commands Files
init       - Parent of all processes /etc/inittab
runlevel     - Tell you which runlevel /etc/rc.d/*
reboot and ctrl-alt-del- Reboots the system /etc/rc.d/init.d
halt and shutdown- Powers down the system /etc/rc.d/rc*.d