OS Boot Sequence and File System (implication to “Boot Sector Viruses”) Department of Computer Science Southern Illinois University Edwardsville Spring,

Slides:



Advertisements
Similar presentations
PC bootup Presented by: Rahul Garg (2003CS10183) Rajat Sahni (2003CS10184) Varun Gulshan(2003CS10191)
Advertisements

The Operating System. What is an Operating System? The program that is loaded first and manages the hardware resources like main memory, backing storage.
18th August, 2005 CS431 Course Presentation 1 Booting of a Computer System Harpreet Singh.
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
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
System initialisation
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
Chapter 5 Basic Input/Output System (BIOS)
Basic Input Output System
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
Chapter 2 (PART 1) Light-Weight Process (Threads) Department of Computer Science Southern Illinois University Edwardsville Summer, 2004 Dr. Hiroshi Fujinoki.
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.
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.
Master Boot Record (MBR)
IT Chapter 2 Part A How Computers Work Input, process, output, and storage The operating system helps the computer perform four basic operations,
Introduction to Operating Systems Concepts
Introduction to Kernel
ES C263 Microprocessor Programming and Interfacing
Chapter 12: File System Implementation
Structure of Unix OS.
Computer System Structures
CS 286 Computer Organization and Architecture
CENG334 Introduction to Operating Systems
Operating System Module 1: Linux Installation
Booting Up 15-Nov-18 boot.ppt.
How does a computer go from off to login?
Device management How does the operating system manage the hardware and peripheral devices? Device Driver: Each device is attached to your computer with.
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 Architecture & Organization
Boot Process Mark Stanovich COP 5641 / CIS 4930.
Introduction to Computing
Process Synchronization
Department of Computer Science
Department of Computer Science
OS Boot Sequence and File System
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
Presentation transcript:

OS Boot Sequence and File System (implication to “Boot Sector Viruses”) Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314 Operating Systems OS-Boot/000

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

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

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

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

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

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

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

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

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

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

File System Implementation  Structure of a file system Physical Drive Capacity MBR Code Partition Table Partition #1Partition #N    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 Information if a partition is “bootable” Jump to the first bootable partition “BOOT-strap Loader” CS 314 Operating Systems OS-Boot/012

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

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) CS 314 Operating Systems OS-Boot/014

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

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

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

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