Linux Notes Written From Cybrary
Linux Notes Written From Cybrary
1. Bootstrap Phase
2. Bootloader Phase
3. Kernal Phase
4. Initialisation Phase
Bootstrap Phase
• It is the first phase of he linux boot process (Responsible for testing and bringing hardware
up)
• The bootstrap also finds the location of the bootloader
• Basic Input/Output System (BIOS) is the legacy bootstrap program; after power on
BIOS initialises a Power-On Self Test (POST) (If POST has errors, it will display an error
OR play a series of beeps depending on motherboard) http://biocentral.com/ provides a lot
of POST info.
• Next, BIOS looks through a list of devices for bootloader code (referred to as Boot or Boot
Order in BIOS the menu) BIOS looks for a master boot record (MBR) – MBR contains the
bootloader code (phase 2)
• UEFI looks for a storage device with an EFI system partition (ESP)
• ESP is a FAT32 formatted partition generally mounted at /boot/efi
• Once the ESP is found you can load an OS or load a bootloader, like GRUB
• For heavy-duty UEFI detail, see the spec
• When power is applied to the system, NIC tries to obtain an IP address, then:
• The Trivial Transfer Protocol (TFTP) server is used to transfer files to the system
• The system downloads the appropriate boot image from the TFTP server’s pxelinux.cfg
directory
Boot Options
ISO
• An ISO image is a file that holds the contents (exact copy) of an optical disk such as a CD
or DVD
• Having the data in a file format rather than a CD or DVD is a more effective way or
distributing the data.
• We can access the ISO file remotely to install an operating system on a computer
NFS Boot
GRUB
• By pressing ESC once GRUB’s splash menu appears, you can modify the boot process or
issue GRUB commands
• Use arrow keys to move between lines
• Enter to select the current line
• E key to edit the current line
• A to append text to the current line
• D to delete the current line
• C execute a GRUB shell command
• B to boot the system
• P to enter the GRUB password
GRUB2 Bootloader
• Find out what version of GRUB you’re running using one of the following commands:
• grub-install -v
• grub2-install -v
GRUB2 Menu
Changing GRUB2
• Just as with GRUB, you can press the ESC key on the splash screen to enter into an
interactive boot process
• E key to edit the current menu entry
• CTRL+X to boot the system after editing a menu entry
• TAB to list avaliable GRUB commands
• CTRL+C to enter the GRUB shell
• ESC discard edits and return to the previous screen