Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.

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.
Booting and Shuting Down WeeSan Lee. Roadmap Bootstrapping Boot Loaders Startup/Init Scripts Reboot & Shutdown Q&A.
18th August, 2005 CS431 Course Presentation 1 Booting of a Computer System Harpreet Singh.
Linux Booting Procedure Sirak Kaewjamnong. 2 How Linux boot?
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Week 8 System Initialization and X Windows. Objectives  Summarize the major steps necessary to boot a Linux system  Configure the LILO and GRUB boot.
Booting and Shutting Down the UNIX Operating System Arcadio A. Sincero Jr. 6/6/2001 CMSC 691X, Section 6080.
Linux+ Guide to Linux Certification Chapter Nine System Initialization.
Linux Booting Procedure
Linux+ Guide to Linux Certification, Second Edition
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.
Booting the Linux Kernel Dr. Michael L. Collard 1.
Linux+ Guide to Linux Certification, Third Edition
Hard-Disk Partitions Ref: Wikipedia. What and Why Disk partitioning –The creation of logical divisions upon a hard disk that allows one to apply operating.
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.
Booting And Shutting Down. Bootstrapping  Bootstrapping is standard term for “starting up a computer”  During bootstrapping the kernel is loaded into.
计算机系 信息处理实验室 Lecture 5 Startup and Shutdown
BACS 371 Computer Forensics
Chapter 3 Understanding the Boot Process and Command Line.
Unix kernel Kernel refers to the core part of an operating system Historically, UNIX kernels are monolithic Newer versions of UNIX allow part of the kernel.
CS2422 Assembly Language & System Programming November 2, 2006.
1 Web Server Administration Chapter 3 Installing the Server.
System initialisation
The Boot process. Booting on a PC POST –Hardware test – may not run CPU ie fan not working CPU start-up –Jumps to fixed location to execute BIOS code.
Processes & Daemons Chapter IV / Part III. Commands Internal commands: alias, cd, echo, pwd, time External commands, code is in a file: grep, ls, more.
System Startup and Shutdown
Partitioning Hard Drives. Disk Organization MBR tells layout of the disk Primary PartitionExtended Partition Logical Drives.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
Operating Systems Operating System
Chapter 5 Basic Input/Output System (BIOS)
Booting and boot levels
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.
Day 4 Understanding Hardware Partitions Linux Boot Sequence.
Booting. Booting is the process of powering it on and starting the operating system. power on your machine, and in a few minutes your computer will be.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Hardware Boot Sequence. Vocabulary BIOS = Basic Input Output System UEFI = Unified Extensible Firmware Interface POST= Power On Self Test BR = Boot Record.
IT2204: Systems Administration I 8b).Booting (Supplementary Notes)
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)
Operating Systems Lab. (#1) University of Tehran – ECE Dept. Fall 2005 Reza Shokri
ITI Chris Uriarte ITI-481: Unix Administration Meeting 2 Rutgers University Center for Applied Computer Technologies Chris Uriarte, Instructor.
Linux Startup Process Presenter: Dipu Gupta.
Bootstrapping Steve Muckle Dave Eckhardt. Carnegie Mellon University1 Synchronization Project 3 checkpoint 1 Bboard post, web page Paging, COW optional.
Feb/18/2014 Mazen Alzyoud Early Term Exam Review.
Genesis: From Raw Hardware to Processes Andy Wang Operating Systems COP 4610 / CGS 5765.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2009 by Scott Orr and the Trustees of Indiana University.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
The Linux Operating System R.Bigelow. What is an Operating System An operating system is a collection of programs that manage a computer's resources.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
OS Boot Sequence and File System (implication to “Boot Sector Viruses”) Department of Computer Science Southern Illinois University Edwardsville Spring,
Overview A) Power on or reset B) 1st stage boot loader C) 2nd stage boot loader D) Operate system.
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
System Administration Startup Process. Why Care? ● Every process on your system comes about by following a specific chain of events from the machine startup.
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
Chapter 8 Unix & Linux.
TOPIC 6: SYSTEM START-UP AND CONFIGURATION
Structure of Unix OS.
Computer System Structures
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.
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
SUSE Linux Enterprise Desktop Administration
Computer Startup.
OS Boot Sequence and File System
OS Boot Sequence and File System
Lecture 10 review Booting sequence in Brief
Presentation transcript:

Genesis: from raw hardware to processes System booting sequence: how does a machine come into life

How is the First Process Created? What happens when you turn on a computer? How to get from raw hardware to the first running process, or process 1 under UNIX?

Booting Sequence The address of the first instruction is fixed It is stored in read-only-memory (ROM) ROM is read-only, permanent memory, and is always available to be used.

Booting Procedure for i386 Machines On i386 machines, ROM stores a Basic Input/Output System (BIOS) BIOS contains program that knows how to access storage devices, keyboard, and graphic card.

BIOS Code Performs Power-On Self Test (POST) Tests the system Looks for and checks peripherals During this time, you will hear memory counting, which consists of noises from the floppy and hard drive, followed by a final beep Locates a valid device with which to boot the system (boot device) Floppy  CDROM  hard drives

After the POST The master boot record (MBR) is loaded by BIOS from the boot device. The MBR is stored at the first logical sector (track 0, cylinder 0, and head 0) of the boot device (e.g., a hard drive) that Fits into a single 512-byte disk sector (boot sector) Boot loader: machine code instructions for booting the machine. Partition table: the physical layout of the disk (e.g., number of tracks)

After Getting the Info on the Boot Device BIOS loads a more sophisticated loader from the boot sector and yields control to it. Under Linux, this sophisticated loader is called LILO (Linux Loader) or Grub (GNU Grub Unified Boot Loader). The more sophisticated loader loads the operating system

More on OS Loaders LILO Is partly stored in MBR with the disk partition table. A small machine code binary on the MBR whose job is to locate the second stage boot loader and load the first part of it into memory. A user can specify which disk partition and OS image to boot Every time a configuration change is made, run ‘/sbin/lilo’ to change MBR. Windows loader assumes only one bootable disk partition After loading the kernel image, LILO sets the kernel mode and jumps to the entry point of the operating system

Booting Sequence in Brief A CPU jumps to a fixed address in ROM, Loads the BIOS, Performs POST, Loads MBR from the boot device, Loads an OS loader, Loads the kernel image, Sets the kernel mode, and Jumps to the OS entry point.

Linux Initialization Set up a number of things: Trap table Interrupt handlers Scheduler Clock Kernel modules … Process manager Hand-craft environment for the init process (the first process, process 1).

Process 1 Is instantiated from the init program Is the ancestor of all processes Controls transitions between runlevels Executes startup and shutdown scripts for each runlevel

On RedHat, the init do the following (run as a process) Run /etc/rc.d/rc.sysinit that sets environment path, checks file system, etc (system initialization) Run /etc/inittab script that decides how system should be setup in each runlevel. Set the source function library, /etc/rc.d/init.d, how to start and kill a program, etc Start all background processes by looking at the rc directories for the runlevel as default in /etc/inittab: e.g /etc/rc.d/rc5.d for runlevel 5. Fork /sbin/mingetty to give virtual consoles (login prompts).

Runlevels Level 0: shutdown Level 1: single-user Level 2: multi-user (without network file system) Level 3: full multi-user Level 5: X11 Level 6: reboot