Va-scanCopyright 2002, Marchany Unit 4 – The Boot Process Randy Marchany VA Tech Computing Center.

Slides:



Advertisements
Similar presentations
Va-scanCopyright 2002, Marchany Unit 8 – Solaris File Systems Randy Marchany VA Tech Computing Center.
Advertisements

Drivers and the kernel1-1 Drivers and the kernel UNIX system has three layers: m The hardware m The operating system kernel m The user-level programs Kernel.
Linux Boot Loaders. ♦ Overview A boot loader is a small program that exists in the system and loads the operating system into the system’s memory at system.
Booting and Shuting Down WeeSan Lee. Roadmap Bootstrapping Boot Loaders Startup/Init Scripts Reboot & Shutdown Q&A.
Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.
Booting and Halting Chapter 4. Chapter Objectives Examine the sequence of events that occur when a system is booted. Examine the methods used to modify.
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 can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
Linux+ Guide to Linux Certification, Third Edition
Booting And Shutting Down. Bootstrapping  Bootstrapping is standard term for “starting up a computer”  During bootstrapping the kernel is loaded into.
Introduction to Linux Init Scripts In this session we will cover the Linux initialization process, run levels, how to change the run level and how to initialize.
1 OS Structure, Processes & Process Management. 2 Recap OS functions  Coordinator  Protection  Communication  Resource management  Service provider.
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
Chapter 2 Accessing Your System and the Common Desktop Environment.
Starting and Stopping Linux. Boot Process BIOS initializes hardware –Loads the boot sector MBR loads the bootloader –Point to kernel Kernel initializes.
Va-scanCopyright 2002, Marchany Unit 2 – The Boot Prom – OpenBoot Randy Marchany VA Tech Computing Center.
System Startup and Shutdown
CCNA 2 v3.1 Module 2.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
Va-scanCopyright 2002, Marchany Unit 3 – Installing Solaris Randy Marchany VA Tech Computing Center.
1 Semester 2 Module 3 Configuring a Router Yuda college of business James Chen
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Booting and boot levels
© 2015 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Va-scanCopyright 2002, Marchany Unit 6 – Solaris File Security Randy Marchany VA Tech Computing Center.
System Startup & Shutdown Objectives –to interpret the Unix startup and shutdown configuration files –to be able to create a customised run level Contents.
Chap 5 Startup and Setup Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
DOS  In the 1980s or early 1990s, the operating system that shipped with most PCs was a version of the Disk Operating System (DOS) created by Microsoft:
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 Administration1 Chapter 4 Running a Linux System.
System Startup & Shutdown
UNIX (Linux) Introduction Module-1. OS Kernel In computing, the kernel is the central component of OS. It is a bridge between applications and the actual.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 9: Basic Linux Administration Chapter 11: System Administration: Core Concepts Chapter 16:
Linux Startup Process Presenter: Dipu Gupta.
Introduction to Routers
CCNA2 Chapter 2 Cisco IOS Software. Cisco’s operating system is called Cisco Internetwork Operating System (IOS) IOS provides the following network services:
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.
135 Shutdown and Reboot Version A.01 H3064S Module 17 Slides.
Unix System Administration Booting and Shutting Down Chapter 2.
Sem 2v2 Chapter 5 Router Startup and Setup. A router initializes by loading the bootstrap, the operating system, and a configuration file. If the router.
Commands 3/1/ Boot PROM Fundamentals All Sun systems have resident boot PROM firmware Provides basic hardware testing and initialization prior.
Sys Admin Course Service Management Fourie Joubert.
© 2002, Cisco Systems, Inc. All rights reserved..
Lecture 4 & 5: System Architecture  File systems  Devices  File system permissions  Review of Linux runlevels  In-class exercise.
Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
UNIX U.Y: 1435/1436 H Operating System Concept. What is an Operating System?  The operating system (OS) is the program which starts up when you turn.
Cisco 2 - Routers Perrine. J Page 16/26/2016 Chapter 2 Cisco IOS Software Cisco’s operating system is called Cisco Internetwork Operating System (IOS)
CIS 221 Lesson 2. What is the first phase of the of the Installation of Windows XP? MS-DOS phase Why is the MS-DOS phase needed? the computer required.
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
Chap- 2 BOOTING & SHUTDOWN LINUX SYSTEM Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 1.
The Linux startup process Jerry Feldman The Linux Expertise Center Hewlett-Packard Company Document produced via OpenOffice.org.
System Administration Startup Process. Why Care? ● Every process on your system comes about by following a specific chain of events from the machine startup.
The Linux Kernel About 6 million lines of code
Router Startup and Setup
Linux Start Sequence Summary
Chapter 4 Booting and Shutdown
Drivers and the kernel UNIX system has three layers: Kernel
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Operation System Program 4
OPS235: Week 1 Installing Linux (Lab1: Investigations 4 - )
SUSE Linux Enterprise Desktop Administration
Modern PC operating systems
Router Startup and Setup
Lecture 10 review Booting sequence in Brief
Objectives Topic 2.6 Understanding the boot process
Presentation transcript:

va-scanCopyright 2002, Marchany Unit 4 – The Boot Process Randy Marchany VA Tech Computing Center

va-scanCopyright 2002, Marchany The Boot Process  4 main phases – Boot Prom – Boot Programs – Kernel – Init

va-scanCopyright 2002, Marchany Boot Prom Phase  Ensure the HW is working properly.  Begin the process of starting Solaris 8.  Run POST – Scan the system for installed HW – Run primary diagnostics on everything it finds – Builds the device tree  The system banner is displayed when POST is done. – Ethernet address, HW type, Processor type and speed, hostid, memory size

va-scanCopyright 2002, Marchany Boot Prom Phase  Run the boot command if the environment variable, auto-boot? Is set to true.  It looks at the environment variable boot- device to find the boot drive.  It reads the primary boot loader, boot block (bootblk) and executes it.  The boot block is always located in sector 1-15 of the boot device.

va-scanCopyright 2002, Marchany Boot Command Options -aInteractive boot, system will prompt you -sBoot into single user or maintenance mode -rUse after installing new HW -wMount / as writable for repair -vVerbose mode

va-scanCopyright 2002, Marchany Boot Programs Phase  Sole function is to load the secondary boot program, ufsboot, and execute it.  ufsboot locates and loads the basic kernel.  ufsboot location is encoded in the boot block.

va-scanCopyright 2002, Marchany Kernel Phase  The kernel is the software that manages access to the OS and hardware resources.  Two sections – Platform independent piece called genunix. – Platform dependent piece called unix.  ufsboot loads these 2 pieces into memory, starts the kernel and hands control over to it.  The kernel uses ufsboot to locate and load modules needed to complete the boot process.  Modules are software programs that control a certain piece of HW.

va-scanCopyright 2002, Marchany Kernel Phase  Main kernel files are located: – /platform/ARCH/kernel – /platform/ARCH/kernel/sparcv9 – Where ARCH is the architecture of the system (uname –i) – Sparcv9 is the directory that contains the 64 bit support.  Modules are located in /kernel, /usr/kernel, /platform/ARCH/kernel or /platform/MODEL/kernel (uname –m)

va-scanCopyright 2002, Marchany Kernel Phase  The kernel then mounts /  Reads its config file (/etc/system) and configures itself. This file is read once at boot. If you make changes to it, you must reboot for them to go into effect.  Be careful with this file. If you mess it up, you won’t be able to boot.

va-scanCopyright 2002, Marchany Init Phase  Once the kernel is loaded, it loads and executes the init process.  The init phase is the last step in the boot process.  Init is the ancestor of all processes that run on the system.  Config file is /etc/inittab which describes the run levels and the processes that are to be run as the system transitions from 1 run level to another.

va-scanCopyright 2002, Marchany /etc/inittab  ID:run level:ACTION:Process  ID – 1-4 character string that identifies the entry  Run level – run level the system must be to run the process. 0 – halt/shutdown, 1 – single user, 2 – multiuser no network, 3 – multiuser with network, 5 – powerdown, 6 – reboot. Default run level is 3.  ACTION – keyword describes how the process is to be run

va-scanCopyright 2002, Marchany /etc/inittab  ACTION keywords – Sysinit – process is run before the console login prompt is displayed – Initdefault – defines the default run level where the system will operate. Init will cycle through the run levels unitl it reaches this level. – Respawn – defines a process that should be started if it is note currently running. If it terminates, restart it again. – Wait – tells init to wait until this process is finished.

va-scanCopyright 2002, Marchany /etc/initab  ACTION keywords – Once – process is started when init activate the entry but it is not restarted when it completes. – Boot – process that init begins at boot time. Run only once.  PROCESS – th command or script that is to be run when the entry is activated by init. The system run level scripts are started from here.

va-scanCopyright 2002, Marchany Run Levels  Determine the number of users that can access the system and what is available to those users.  There are 8 predefined run levels but you can add your own.  Run levels 0, 5, 6 are transition run levels.

va-scanCopyright 2002, Marchany Run Level Scripts  Each run level is controlled by a run control script (rc script) called /sbin/rcX where X = run level the script controls.  These scripts are run by init whenever a new run level is entered.  Example: we are at run level 3 and move to run level 1. The /sbin/rc1 script is run.  Note: the older run scripts used to be in /etc/rcX

va-scanCopyright 2002, Marchany Run Level Scripts  /etc/init.d – True location of the service control scripts executed by the /sbin/rcX scripts. – Centralized location, these scripts start or shut down the service on the system. – Name Syntax: Sxxservice or Kxxservice S – start (run at boot) K – kill (run at shutdown) Xx – order number the service is started Service – short name for the particular service

va-scanCopyright 2002, Marchany Run Level Commands  init, telinit – change to a new run level  shutdown – move to run level 1(S)  halt – move to run level 0  reboot – move to run level 6  poweroff – move to run level 5

va-scanCopyright 2002, Marchany Possible Scenarios Modified /etc/system and need to reload it Use reboot command System needs to be shutdown immediately Use halt command Currently in multiuser mode but need to go to maintenance mode Use init 1 or telinit 1to transition to maintenance mode Need to shutdown gracefully Shutdown –i 0 g –300, for example