Lab 2: OS main components

Environment Preparation

  1. Ensure that you enabled EFI standard of booting. How did you check this?

Exercise 1: GPT partition

MBR Dump and Analysis

GPT Header Dump and Analysis

Questions to answer

  1. What is fdisk utility used for?
  2. Show the bootable device(s) on your machine, and identify which partition(s) are bootable.
  3. What is logical block address?
  4. Why did we specify the count, the bs, and the skip options when using dd?
  5. Why does a GPT formatted disk have the MBR?
  6. Name two differences between primary and logical partitions in an MBR partitioning scheme

Exercise 2 - UEFI Booting

The Unified Extensible Firmware Interface Specification describes an interface between the operating system and the platform firmware.

1. Boot sequence

Questions to answer

  1. Why is Shim used to load the GRUB bootloader?
  2. Can you locate your grub configuration file? Show the path.
  3. According to the boot order, what is the third boot device on your computer? How did you check this?

Exercise 3: Filesystem

Questions to answer

  1. How many inodes are in use on your system?
  2. What is the filesystem type of the EFI partition?
  3. What device is mounted at your root / directory? Show proof.
  4. What is your partition UUID?
  5. Show at least two methods of viewing the UUID of a block device.
  6. What is the function of /dev/zero?