Saturday, December 19, 2009

Boot Process

Stages of Boot process
 System Startup Bios
 Stage1 Bootloader MBR
 Stage2 Bootloader GRUB 
 Kernel & initrd Linux
 init User-space

  • BIOS Initialization
  • Boot Loader resides in MBR, load from boot partition
  • Kernel Initialization Device detection, device driver initialization, Mount root filesystem read only, Loads initial process (init)
  • /etc/rc.d/rc.sysinit - Ask I for interactive mode (activate selinux, set clock, enable swap, set hostname, root filesystem check, activate RAID, LVM, disk quota)
  • /etc/rc.d/rc initialize default run level as per inittab file entry
  • start rcX.d as per run level
  • /etc/rc.d/init.d contains all service files
  • /etc/rc.d/rc.local run after run level specific sctipts, common place for custom modification. Run each time system enters a run level
If root filesystem is mounted as read only in single user mode, to remount in rw
#  mount –o rw,remount /
#  mount –o remount –w /

File system check without prompting
#  fsck –y

No comments:

Post a Comment