Boot. How OS boots

Similar documents
Boot Process in details for (X86) Computers

The kernel is not to be confused with the Basic Input/Output System (BIOS).

PL-I Assignment Broup B-Ass 5 BIOS & UEFI

Using grub to Boot various Operating Systems

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

Chapter 2 Booting Up and Shutting Down

The Early System Start-Up Process. Group Presentation by: Tianyuan Liu, Caiwei He, Krishna Parasuram Srinivasan, Wenbin Xu

Linux-Kurs Themen - Lilo-GRUB 19. November 2005 Michel Bisson. Types of Boot Loaders: LILO,GRUB,SILO,Loadlin,ELILO,QUIK,VMELILO,ZIPL

Initial Bootloader. On power-up, when a computer is turned on, the following operations are performed:

MODULE 02. Installation

Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

InDepth Linux Serial Consoles for Servers and Clusters

CST8177 Linux II. Linux Boot Process

Grub4dos tutorial - Grub4Dos Wiki

CS 410/510. Mark P Jones Portland State University

Initial Bootloader > Flash Drive. Warning. If not used carefully this process can be dangerous

Installing Linux (Chapter 8) Note packet # 4. CSN 115 Operating Systems Ken Mead Genesee Community College. Objectives

Hard Disk Organization. Vocabulary

Booting, Partitioning and File Systems. Part I. Booting and hard disks. Booting. Table of Contents. Nothing is what it seems.

Linux/Citrix Virtual Environment Documentation

Enabling and Configuring SOL (Serial Over LAN) on an 8832 Blade Server

Advanced Operating Systems and Virtualization. Alessandro Pellegrini A.Y. 2017/2018

Booting, Partitioning and File Systems. Part I. Booting and hard disks. Booting. Table of Contents. Nothing is what it seems.

Recovering GRUB: Dual Boot Problems and Solutions

IA32 OS START-UP UEFI FIRMWARE. CS124 Operating Systems Fall , Lecture 6

BOOTSTRAP, PC BIOS, AND IA32 MEMORY MODES. CS124 Operating Systems Winter , Lecture 5

ExpressCluster for Linux Ver3.0

The LILO Configuration Handbook. Virgil J. Nisly

Womp Howto. William Daniau 1st January 2004

Table of Contents. Configuration HOWTO. Configuration HOWTO...1 Gilbert O'Sullivan Introduction Configuration tools Others...

ExpressCluster for Linux Version 3 ExpressCluster LAN Installation Guide

Manual Install Xp 32 Bit Iso File >>>CLICK HERE<<<

CSE 265: System and Network Administration

CSE 265: System and Network Administration

ExpressCluster for Linux Version 3 ExpressCluster WAN Installation Guide

CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

Disk Imaging with Knoppix

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

How to clone a Linux box using netcat

Part I. Booting and hard disks. Booting, Partitioning and File Systems. Booting. Table of Contents. Nothing is what it seems.

The FAT File System. 1. FAT Overview. 2. Boot Sector, FAT, Root Directory, and Files The FAT F 䤀耄 le System

HOW TO CLONE A LARGE NUMBER OF PCs

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Segmentation with Paging. Review. Segmentation with Page (MULTICS) Segmentation with Page (MULTICS) Segmentation with Page (MULTICS)

Advanced Operating Systems

makes floppy bootable o next comes root directory file information ATTRIB command used to modify name

Network booting putting the pieces together

ECE 598 Advanced Operating Systems Lecture 2

Preview. COSC350 System Software, Fall

ExpressCluster for Linux Ver3.0

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Booting Up & Processes

Introduction p. 1 Why Linux? p. 2 Embedded Linux Today p. 3 Open Source and the GPL p. 3 Free Versus Freedom p. 4 Standards and Relevant Bodies p.

Enabling and Configuring SOL (Serial Over LAN) on an 8832 Blade Server

These boots are made for walking. Johan Montelius HT2018

CS3210: Operating Systems

Installation Tools for Clusters. Rajesh K., Computer Division, BARC

ExpressCluster for Linux Version 3 ExpressCluster SAN Installation Guide

Bootstrapping. Steve Muckle Dave Eckhardt

THOMAS RUSSELL, Information Technology Teacher

File System. Preview. File Name. File Structure. File Types. File Structure. Three essential requirements for long term information storage

Lab1 tutorial CS

GigaRAID (IT8212) ATA RAID Controller USER S MANUAL

How To Reinstall Grub In Windows 7 With Cd Bootcamp Partition

Booting Up and Shutting Down. lctseng / Liang-Chi Tseng

Building, Running and Monitoring the Linux kernel

ECE 471 Embedded Systems Lecture 12

Introduction to Linux start-up. Hao-Ran Liu

Getting to know GRUB

0x9B000 0x9D800 0x9D600. 0xF4F2 0x6B6D

EM210 Burn Linux Image Manual. Catalogue

CREATION OF A MINIMAL STAND ALONE RTAI SYSTEM ================================================

Informatics 1 Lecture 3: Operating systems

ExpressCluster X LAN V1 for Linux

CTAN004: Cactus flashstorage. Operating Systems. 1. Introduction. 2. Installation Issues. 3. OS Installation Guide 3.1. MS DOS

User. Applications. Operating System. Hardware

Oracle 1Z Enterprise Linux System Administration. Download Full Version :

Installation Guide-x86, x86-64

Cdboot Cannot Boot From Cd Error Code 5 Windows 7

Installation of Fedora 12 with CD

NASA Lab. Partition/Filesystem/Bootloader. TinRay, Yu-Chuan

Backup, File Backup copies of individual files made in order to replace the original file(s) in case it is damaged or lost.

Operating Systems. Objective

How To Compile A Kernel - The Mandriva Way

Linux+WindowsNT mini HOWTO

Windows Xp Installation User Manually Create Bootable Usb Flash Drive

ECE 471 Embedded Systems Lecture 16

Long-term Information Storage Must store large amounts of data Information stored must survive the termination of the process using it Multiple proces

Perl Install Module Windows Xp From Cd Boot

SPPEXA TEACHLET: GETTING STARTED WITH L4RE CARSTEN WEINHOLD

Booting Up and Shutting Down

Linux+ Guide to Linux Certification, Third Edition. Chapter 6 Advanced Installation

HOW LINUX BOOTS. As it turns out, there isn t much to the boot process:

The Extended MBR (version 1.05) (dated: 01 Nov 2018) by Benjamin David Lunt Copyright (c) Forever Young Software

ExpressCluster X 1.0 for Linux

The Linux Boot Process

History of Unix and Linux

Installing caos with Cinch on Floppy Disk

ECE 471 Embedded Systems Lecture 16

The Lecture's aim A preparation for the installation party: Prepare your computer for the installation Know what's going to happen Understand what's g

Transcription:

Boot How OS boots 67 1

Booting sequence 1. Turn on 2. CPU jump to address of BIOS (0xFFFF0) 3. BIOS runs POST (Power-On Self Test) 4. Find bootable devices 5. Loads and execute boot sector from MBR 6. Load OS 68 Boot 2

BIOS (Basic Input/Output System) BIOS refers to the software code run by a computer when first powered on The primary function of BIOS is code program embedded on a chip that recognizes and controls various devices that make up the computer. BIOS on board BIOS setup program 70 MBR (Master Boot Record) The MBR is a 512-byte sector, located in the first sector on the disk (sector 1 of cylinder 0, head 0) MBR is loaded into RAM, address 0x07c00 the BIOS yields control to it (JUMP 0x7c00). Usually, the MBR identifies the boot partition, loads its BootLoader into RAM, yields control to it (JUMP) 71 3

MBR (Master Boot Record) The first 446 bytes are the primary boot loader, which contains both executable code and error message text. The next sixty-four bytes are the partition table, which contains a record for each of four partitions. The MBR ends with two bytes that are defined as the magic number (0xAA55). The magic number serves as a validation check of the MBR 72 Extracting the MBR To see the contents of MBR, use this command: # dd if=/dev/hda of=mbr.bin bs=512 count=1 # od -xa mbr.bin **The dd command, which needs to be run from root, reads the first 512 bytes from /dev/hda (the first Integrated Drive Electronics, or IDE drive) and writes them to the mbr.bin file. **The od command prints the binary file in hex and ASCII formats. 73 4

Boot Sector The first sector of boot partition is called: Boot Sector, Boot Record or Partition Boot Sector The Boot Sector ends with two bytes that are defined as the magic number (0xAA55). The magic number serves as a validation check of the Boot Sector Usually, the BIOS or the MBR Boot Loader, loads the Boot Sector of the Boot Partition into RAM, yields control to it (JUMP) 74 Boot loader Boot loader could be more aptly called the kernel loader. The task at this stage is to load the Linux kernel Optional, initial RAM disk GRUB and LILO are the most popular Linux boot loaders. Large Boot Loaders may be split into stages. 75 5

Other boot loader (Several OS) bootman GRUB LILO NTLDR XOSL BootX loadlin Gujin Boot Camp Syslinux GAG 76 GRUB: GRand Unified Bootloader GRUB is an operating system independant boot loader A multiboot software packet from GNU Flexible command line interface File system access Support multiple executable format Support diskless system Download OS from network Etc. 77 6

GRUB boot process 1. The BIOS finds a bootable device (hard disk) and transfers control to the master boot record 2. The MBR contains GRUB stage 1. Given the small size of the MBR, Stage 1 just load the next stage of GRUB 3. GRUB Stage 1.5 is located in the first 30 kilobytes of hard disk immediately following the MBR. Stage 1.5 loads Stage 2. 4. GRUB Stage 2 receives control, and displays to the user the GRUB boot menu (where the user can manually specify the boot parameters). 5. GRUB loads the user-selected (or default) kernel into memory and passes control on to the kernel. 78 Example GRUB config file 79 7

LILO: LInux LOader Not depend on a specific file system Can boot from harddisk and floppy Up to 16 different images Must change LILO when kernel image file or config file is changed 80 syslinux Usa partições FAT Programa de instalação: syslinux, em Linux syslinux.exe, em MS Windows Configuração: syslinux.cfg 8

RAM Disk 82 Booting with initrd The bootloader passes the initrd image to the kernel. The bootloader loads the kernel image into memory The bootloader then loads an initrd image into another section of available memory. The passes the load address of the initrd image to the kernel before passing control to it. 83 9

initrd boot=/dev/hda map=/boot/map install=/boot/boot.b prompt timeout=50 default=linux ext2 fs disk image image=/boot/vmlinuz-2.2.12-20 label=linux initrd=/boot/initrd-2.2.12-20.img read-only root=/dev/hda1 84 initramfs initramfs is a relatively new (Linux 2.6). Conceptually similar to initrd, Same purposes: to enable loading of drivers that might be required before mounting the real root file system. Different implementation from the initrd. intramfs image is packed in a compressed cpio archive. 85 10