Chapter 4 Booting and Shutdown

Slides:



Advertisements
Similar presentations
Introduction to Linux Linux startup process Unix Shells and scripts.
Advertisements

Basic Unix system administration
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 Shutting Down the UNIX Operating System Arcadio A. Sincero Jr. 6/6/2001 CMSC 691X, Section 6080.
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 And Shutting Down. Bootstrapping  Bootstrapping is standard term for “starting up a computer”  During bootstrapping the kernel is loaded into.
Chapter 2 Booting and Shutting Down Kim Grempler (Sections 2.0 to 2.3) Leon Dague (Sections 2.4 to 2.7)
Using tcpdump. tcpdump is a powerful tool that allows us to sniff network packets and make some statistical analysis out of those dumps. tcpdump operates.
CS 497C – Introduction to UNIX Lecture 26: - The Process Chin-Chih Chang
Linux+ Guide to Linux Certification, Second Edition
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
Now, return to the Unix Unix shells: Subshells--- Variable---1. Local 2. Environmental.
Starting and Stopping Linux. Boot Process BIOS initializes hardware –Loads the boot sector MBR loads the bootloader –Point to kernel Kernel initializes.
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
Linux Filesystem Management
Booting and boot levels
System Startup & Shutdown Objectives –to interpret the Unix startup and shutdown configuration files –to be able to create a customised run level Contents.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
Managing Processes CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
Linux+ Guide to Linux Certification, Third Edition
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
System Startup & Shutdown
Managing processes and services. 1. How Linux handles processes 2. Managing running processes 3. Scheduling processes.
Linux+ Guide to Linux Certification, Second Edition Chapter 10 Managing Linux Processes.
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.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
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.
Core System Services. INIT Daemon The init process is the patron of all processes. first process that gets started in any Linux/ UNIX -based system.
© 2004 EMC Corporation. All rights reserved. 111 nsr_shutdown Changes in NetWorker 7.3 nsr_shutdown’s Redesign for Scalability Bryce Tompkins
Linux+ Guide to Linux Certification Chapter Eleven Managing Linux Processes.
Unix Comp-145 L ECTURE 9: I NTRODUCTION TO S YSTEM A DMINISTRATION S OURCE : S. D AS, “Y OUR U NIX : T HE ULTIMATE G UIDE ”, 2 ND E DITION, M C G RAW H.
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
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.
CSC414 “Introduction to UNIX/ Linux” Lecture 3
Agenda Managing Processes (Jobs) Command Grouping Running jobs in background (bg) Bringing jobs to foreground (fg), Background job status (jobs) Suspending.
An Introduction to processes R Bigelow. A Unix Process A process in Unix is simple a program The Unix system is made up of a group of processes all interacting.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
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
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Chapter 9 Shell Programming
Chapter 3 Maintaining Security
Chapter 5 Linux Services
Case Study 1: UNIX and LINUX
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Chapter 1 Introduction to System Administration
Chapter 11 – Processes and Services
CHAPTER 7.
Chapter 4 – Introduction to Operating System Concepts
Linux Start Sequence Summary
Chapter 7 Installing Program &Backup Tool
Chapter 2 User Management
The Linux Command Line Chapter 10
Unix : Introduction and Commands
CHAPTER 8 ( , ) John Carelli, Instructor Kutztown University
OPS235: Week 1 Installing Linux (Lab1: Investigations 4 - )
SUSE Linux Enterprise Desktop Administration
Linux Filesystem Management
Chapter 3: The Shell.
Lecture 6 Introduction to Process Management
Objectives Topic 2.6 Understanding the boot process
Presentation transcript:

Chapter 4 Booting and Shutdown CSNB113 SYSTEM ADMINISTRATION College of Information Technology Universiti Tenaga Nasional (UNITEN) SN 2017

Objectives Understand the concept of run levels and their role in startup and shutdown operations SN 2014

Introduction Startup and shutdown procedures are controlled by automated shell scripts System administrator needs to know that exact sequence of steps the system follows during the two events – able to fix if things do go wrong SN 2017

Booting Step 1 Step 2 Step 3 Step 4 PID1: Process-id 1 Machine is powered on Step 1 System looks for all peripherals Step 2 Follow a series of steps  lead to the loading of kernel into memory Step 3 Kernel spawns init (PID1), followed by other processes Step 4 PID1: Process-id 1 SN 2017

init init process: second process of the system Behavioral pattern of init for three vital reasons: Maintains the system at a specific run level (state) and decides which processes to run for each run level Parent of all system daemons (process) that keep running all the time Spawns a getty process at every terminal so that users can log in – parent of all shell SN 2017

Run level Indicated by a single digit (0 to 6), or an s or S Run level Description System shutdown 1 System administration mode (local file system mounted) 2 Multiuser mode (NFS not available) 3 Full multiuser mode 5 The graphical environment mode in Linux 6 Shutdown and reboot mode s or S Single-user mode (file systems mounted) SN 2017

init : Run level init state 1 or S init state 2, 3, or 5 Machine is powered on init state 2, 3, or 5 Multiuser mode init state 0 or 6 System is shutdown System administrator has the freedom to use the init command to move the system to any run level. Example: # init 1 SN 2017

Display run level who -r surizal@sn010101-scnb113 :~$ who –r Example: Run level 2: ___________ mode SN 2017

Shutdown shutdown command: shut the machine down Notifies users with wall about the system going down with a directive log out Activities during shutting down (sleeping for one minute): Sends signals to all running process – normally terminate the process Log off and kill remaining processes Unmounts all secondary file systems – unmount command Write all memory-resident data to disk – sync command Notifies users to reboot or switch off SN 2017

Shutdown - Ubuntu P option: overrides the default sleeping time of one minute r option: shutdown and restart/reboot # shutdown –P 2 Powers down machine after 2 minutes # shutdown –P 0 Immediate shutdown # shutdown –r 0 Immediate shut down and reboot SN 2017

References Das, S. (2012). Your UNIX/LINUX The Ultimate Guide: Third Edition. McGraw-Hill Hahn, H. (2008). Harley Hahn's Guide to Unix and Linux. California: McGraw-Hill Higher Education SN 2014