OS Boot Sequence and File System

Slides:



Advertisements
Similar presentations
Chapter 12: File System Implementation
Advertisements

PC bootup Presented by: Rahul Garg (2003CS10183) Rajat Sahni (2003CS10184) Varun Gulshan(2003CS10191)
The Operating System. What is an Operating System? The program that is loaded first and manages the hardware resources like main memory, backing storage.
Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Linux can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
DIT314 ~ Client Operating System & Administration CHAPTER 4 CONFIGURING HARDWARE DEVICES AND STARTUP PROCESS Prepared By : Suraya Alias.
The power supply performs a self-test. When all voltages and current levels are acceptable, the supply indicates that the power is stable and sends the.
Startup. Major phases  BIOS  MBR program  Boot loader (Partition boot program )  OS’s kernel Loader  CPU always starts running at x’FFFF0’=1,048,560.
Operating Systems Security 1. The Boot Sequence The action of loading an operating system into memory from a powered-off state is known as booting or.
计算机系 信息处理实验室 Lecture 5 Startup and Shutdown
BACS 371 Computer Forensics
Chapter 3 Understanding the Boot Process and Command Line.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
EET 450 Chapter 2 – How hardware and Software Work Together.
Introduction to Kernel
Computer System Organization S H Srinivasan
Files & Partitions BACS 371 Computer Forensics. Data Hierarchy Computer Hard Disk Drive Partition File Physical File Logical File Cluster Sector Word.
Computer Startup Sequence Overview
Linux Booting Procedure
By the end of this lesson you will be able to explain: 1. What is the BOOT process 2. A Cold Boot 3. A Warm Boot.
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
Boot Sequence (DOS) for the IBM PC
PC in New Perspective. PC TeleVision Music System Fax Machine Answering Machine Computer.
Hardware Boot Sequence. Vocabulary BIOS = Basic Input Output System UEFI = Unified Extensible Firmware Interface POST= Power On Self Test BR = Boot Record.
1 EN0129 PC and Network Technology - 1 Sajjad Shami Adrian Robson Gerhard Fehringer School of Computing, Engineering & Information Sciences Northumbria.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
1 CENG334 Introduction to Operating Systems Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY Filesystems and their interface.
Operating System Concepts Part II Department of Computer Science Southern Illinois University Edwardsville Spring, 2009 Dr. Hiroshi Fujinoki
Genesis: From Raw Hardware to Processes Andy Wang Operating Systems COP 4610 / CGS 5765.
Chapter 1 (PART 2) Operating System Concepts Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
Digital Forensics Dr. Bhavani Thuraisingham The University of Texas at Dallas Lecture #8 File Systems September 22, 2008.
1 Operating System Software What, Where, Why, and How? Startup routines ROM BIOS POST Device Drivers User Interface – Text or GUI Menus and dialog boxes.
File System Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314.
NON STANDARD HARDWARE By the end of this lesson you will be able to: 1. Identify non standard computer hardware 2. Understand ACRONYMS used to describe.
OS Boot Sequence and File System (implication to “Boot Sector Viruses”) Department of Computer Science Southern Illinois University Edwardsville Spring,
Master Boot Record (MBR)
Introduction to Kernel
Chapter 12: File System Implementation
Structure of Unix OS.
Computer System Structures
CS 286 Computer Organization and Architecture
CS 286: Memory Paging and Virtual Memory
CS 286 Computer Organization and Architecture
CONFIGURING HARDWARE DEVICE & START UP PROCESS
CENG334 Introduction to Operating Systems
Booting Up 15-Nov-18 boot.ppt.
Starting the computer. Every day we are using an operating system and most specifically a Windows operating system but most of us are not aware of the.
Genesis: From Raw Hardware to Processes
Lecture 15 Reading: Bacon 7.6, 7.7
Modern PC operating systems
CS 286 Computer Organization and Architecture
CS 286 Computer Organization and Architecture
CS 286 Computer Architecture & Organization
Introduction to Computing
CS 286 Computer Organization and Architecture
Process Synchronization
Welcome to CS314 Operating Systems A Quick Tour for Introduction to OS
Department of Computer Science
Department of Computer Science
Welcome to CS314 Operating Systems A Quick Tour for Introduction to OS
Department of Computer Science
Operating System Concepts
Threads: Light-Weight Processes
Operating System Concepts
Process Synchronization
OS Boot Sequence and File System
Lecture 10 review Booting sequence in Brief
MIPS R3000 Subroutine Calls and Stack
Presentation transcript:

OS Boot Sequence and File System CS 314 Operating Systems OS Boot Sequence and File System (implication to “Boot Sector Viruses”) Department of Computer Science Southern Illinois University Edwardsville Fall, 2019 Dr. Hiroshi Fujinoki E-mail: hfujino@siue.edu OS-Boot/000

CS 314 Operating Systems OS-Boot/000

(Disk I/O Subroutines) CS 314 Operating Systems OS Boot Sequence Step 1: Boot ROM I/O Device (e.g., HDD) Mother Board Processor Are you there? Are you there? Are you there? BIOS Codes (Disk I/O Subroutines) Boot ROM POST Device polling OS-Boot/001

CS 314 Operating Systems OS Boot Sequence Step 1: Boot ROM OS-Boot/002

CS 314 Operating Systems OS Boot Sequence Step 1: Boot ROM OS-Boot/003

CS 314 Operating Systems OS Boot Sequence Step 2: Load & Execute MBR Mother Board Memory Processor Bootable Device BIOS Codes (Disk I/O Subroutines) Boot ROM Track MBR (Master Boot Record) The very first physical sector of this physical drive (disk #0, surface #0, truck #0, sector #0) Drive spindle hole Sector

CS 314 Operating Systems OS Boot Sequence Step 2: Load & Execute MBR Scan the partition table Program Code Area Find which partition has OS Jump to the OS (OS boot sector) (Boot Strap Loader) Partition Information Partition table The type of partition (OS bootable?) Where in this drive this partition starts Partition Information Where in this drive this partition starts The type of partition (OS bootable?) OS-Boot/005

Source: https://www.computerhope.com/fdiskhlp.htm

CS 314 Operating Systems OS-Boot/006

CS 314 Operating Systems OS Boot Sequence Step 2: Load & Execute MBR

CS 314 Operating Systems OS Boot Sequence Step 3: Load & Execute OS Boot Loader Mother Board Memory Processor Bootable Device BIOS Codes (Disk I/O Subroutines) Boot ROM Track OS Boot Sector MBR (Master Boot Record) The very first physical sector of this physical drive OS-Boot/008

CS 314 Operating Systems OS Boot Sequence Step 3: Load & Execute OS Boot Loader OS-Boot/010

CS 314 Operating Systems File System Implementation Disk (Disk Platter)  Structure of a file system Physical Drive Capacity OS-Boot/011

Jump to the first bootable partition CS 314 Operating Systems File System Implementation  Structure of a file system Physical Drive Capacity MBR Code Partition Table Partition #1 Partition #N    “BOOT-strap Loader” Logical Drive Logical Drive Size of a partition The first sector for a partition The last sector for a partition Type of file system used for this partition Jump to the first bootable partition Information if a partition is “bootable” OS-Boot/012

IPL: Initial Program Loader CS 314 Operating Systems File System Implementation IPL: Initial Program Loader (“Boot Strap”)  Structure of a file system Physical Drive Capacity Partition Table MBR Partition #1    Partition #N Logical Drive Boot Block Super Block Free Space Management File Allocation Information The Root Directory Other files & directories Logical Drive Read (load) drive parameters Load OS kernel files & execute them OS-Boot/013

CS 314 Operating Systems OS Boot Sequence Step 3: Load & Execute OS Boot Loader XXXX 0000 Initial Program Loader (IPL) “JUMP XXXX” instruction File system type IPL Parameters Size of the root directory Number of sectors available Other information - Cluster size OS Loader Load OS to memory Initialize OS Start the OS (IPL Codes) OS-Boot/009

(= start loading OS system files & drives) CS 314 Operating Systems System Boot Sequence  You turn on power  CPU jumps to the beginning of BIOS ROM  CPU executes POST and initializes hardware - Memory access latency, initialize video card, etc.  CPU executes BIOS routine to load MBR  CPU jumps to the routine in MBR  MBR contains a routine (“Boot Strap Loader”) to check the partition table - Find out which logical drive is the system boot drive Load the boot block (“Boot Strap”) of the boot drive and CPU jumps to it - The boot block contains a routine to start OS (= start loading OS system files & drives) OS-Boot/014

CS 314 Operating Systems    File System Implementation  Structure of a file system Power-On Physical Drive Capacity Partition Table MBR Partition #1    Partition #N Logical Drive Boot Block Super Block Free Space Management File Allocation Information The Root Directory Other files & directories Logical Drive OS-Boot/015

(Disk I/O Subroutines) CS 314 Operating Systems Boot-Sector Viruses & Its Significance Mother Board Memory Processor Bootable Device BIOS Codes (Disk I/O Subroutines) Boot ROM Track Boot-Sector Viruses Applications OS Loader MBR OS (& drivers) Boot Strap OS Disk I/O library Drive spindle hole BIOS Sector

Modify virus-detection program CS 314 Operating Systems Boot-Sector Viruses & Its Significance 0000 Initial Program Loader (IPL) “JUMP YYYY” instruction “JUMP XXXX” instruction File system type Initial Program Loader Parameters Size of the root directory Number of sectors available Other information - Cluster size XXXX Load OS to memory Initialize OS Start the OS Initial Program Loader Codes YYYY Virus Code Disable firewall “JUMP XXXX” instruction Modify virus-detection program Modify OS system calls OS-Boot/017

CS 314 Operating Systems Boot-Sector Viruses & Its Significance OS-Boot/018

CS 314 Operating Systems Tools for troubleshooting booting sequence (for MBR) (those that let you to fix problems in MBR) OS-Boot/019

CS 314 Operating Systems Tools for troubleshooting booting sequence (for IPL) (those that let you to fix problems in IPL) OS-Boot/020

CS 314 Operating Systems Tools for troubleshooting booting sequence (file systems) (those that let you to fix problems in “file systems”) OS-Boot/021

CS 314 Operating Systems Tools for troubleshooting booting sequence (BIOS) OS-Boot/022

CS 314 Operating Systems OS-Boot/000