Lecture #3 Boot Loaders and Booting

Learner Outcomes

Activities

Assignment

Read pp. 232-234 in Chapter 8.

Boot Loaders and Booting

  1. The Master Boot Record
    1. Boot loader: up to 446 bytes of executable code.
    2. Partition Table: 64 bytes of information on up to 4 partitions
    3. Signature: -2 bytes: 55aa
  2. Boot Loaders
  3. The steps in Booting a Kernel:
    1. Power On Self Test (POST) - loads the BIOS
    2. BIOS loads the Master Boot Record
    3. Master Boot Loader reads its partition table to determine which partition to boot into
    4. MBL 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
  4. The dd Command

Relevant Commands and Files

Commands Files
fdisk       - disk partitioning /boot/boot000
mkfs        - makes file systems /etc/fstab
mount        - mounts filesystems /etc/mtab
umount       - unmounts filesystems  
dd        - dumps data to devices  
xxd       - displays data in hexadecimal format  
mkbootdisk- creates an emergency bootdisk /boot/vmlinuz-2.4.20-8