Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
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.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Second Edition
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.
Chapter 3 Understanding the Boot Process and Command Line.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
1 Web Server Administration Chapter 3 Installing the Server.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
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 4 – The Boot Process Randy Marchany VA Tech Computing Center.
System Startup and Shutdown
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Linux Operations and Administration
Operating Systems Operating System
CompTIA Linux+ Certification
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Chapter 5 Basic Input/Output System (BIOS)
Booting and boot levels
Basic Input Output System
Linux Booting Procedure
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
System Startup & Shutdown Objectives –to interpret the Unix startup and shutdown configuration files –to be able to create a customised run level Contents.
E X C E E D I N G E X P E C T A T I O N S RUNLEVELS Linux System Administration Dr. Hoganson Kennesaw State University A runlevel is a mode of operation.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
1 Linux Basics for Networking. 2 Module - Linux Basics for Networking ♦ Overview This module focuses on the basics of networking using Redhat Enterprise.
University of Management & Technology 1 Operating Systems & Utility Programs.
What is system software and what are its parts? Programs that control operation of computer Two parts are operating systems utility programs.
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.
Guide to Linux Installation and Administration, 2e1 Chapter 10 Managing System Resources.
14 Step-by-Step Instructions for an Upgrade Installation n Prepare for the installation Verify that all devices and applications are Windows 2000 compatible.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
System Startup & Shutdown
Chapter Thirteen Booting Windows XP. Objectives Understand the Windows XP boot process Understand the Windows XP boot process Troubleshoot system restoration.
Linux Startup Process Presenter: Dipu Gupta.
Linux booting How does it work?. First the bootloader The first step is for the bootloader to run BIOS indicates what devices to examine Bootstrap program.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
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.
Linux Kernel Programming (LKP). LKP New sub-course New sub-course We will learn together We will learn together Evaluation of this part of course will.
Sys Admin Course Service Management Fourie Joubert.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
Materi managing user & groups, file system Managing Software Packages and File Systems The Complete Guide to Linux System Administration Chapter 10.
Overview A) Power on or reset B) 1st stage boot loader C) 2nd stage boot loader D) Operate system.
Chap- 2 BOOTING & SHUTDOWN LINUX SYSTEM Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 1.
System Administration Startup Process. Why Care? ● Every process on your system comes about by following a specific chain of events from the machine startup.
Chapter 8 Unix & Linux.
Chapter Objectives In this chapter, you will learn:
Guide to Linux Installation and Administration, 2e
Chapter 2: System Structures
TOPIC 6: SYSTEM START-UP AND CONFIGURATION
Linux Start Sequence Summary
Files Used in the Boot Process
Computer System Structures
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Genesis: From Raw Hardware to Processes
OPS235: Week 1 Installing Linux (Lab1: Investigations 4 - )
SUSE Linux Enterprise Desktop Administration
Presentation transcript:

Chapter 9: Understanding System Initialization The Complete Guide To Linux System Administration

The Complete Guide to Linux System Administration2 Objectives Describe how standard PC hardware starts an operating system Configure how the LILO or GRUB boot loader starts the Linux kernel Configure the init program and the scripts used to start system services Manage system services after start-up

The Complete Guide to Linux System Administration3 Hardware Initialization Basic process for bootstrapping –CPU begins executing commands in BIOS –BIOS passes control to boot loader –Boot loader passes control to Linux kernel

The Complete Guide to Linux System Administration4 Hardware Initialization (continued) After PC-type computer started: –CPU initializes itself Sends signals to control other parts of computer –BIOS performs power-on self test (POST) Checks memory and other hardware –BIOS sends signal to SCSI controller card telling it to initialize itself SCSI controllers usually contain own BIOS

The Complete Guide to Linux System Administration5 Hardware Initialization (continued) After PC-type computer started (continued): –Other hardware components instructed to initialize themselves –BIOS determines which devices to search for operating system BIOS loads boot loader into memory and passes control it

The Complete Guide to Linux System Administration6 Hardware Initialization (continued)

The Complete Guide to Linux System Administration7 The Boot Loader Boot loader or boot manager –Small program loaded by BIOS Commonly used –LILO (Linux loader) –GRUB (grand unified boot loader) Default on most systems BIOS looks for executable program in first sector of 3.5-inch disk or CD-ROM

The Complete Guide to Linux System Administration8 The Boot Loader (continued)

The Complete Guide to Linux System Administration9 The Boot Loader (continued) Chained boot loader –One boot loader passes control to another boot loader instead of operating system Use boot loader to start different versions of Linux installed on separate partitions

The Complete Guide to Linux System Administration10 The Boot Loader (continued) uname command –Display information about kernel –Full version number of current kernel uname -a –Timestamp of kernel uname -v

The Complete Guide to Linux System Administration11 Starting the Kernel Initial piece of kernel –Loads rest of kernel into memory –Uncompresses it dmesg command –View messages stored by kernel during boot process

The Complete Guide to Linux System Administration12 Starting the Kernel (continued)

The Complete Guide to Linux System Administration13 Starting the Kernel (continued) Kernel ring buffer –Area of memory –Stores messages from kernel

The Complete Guide to Linux System Administration14 Using Boot Parameters Boot parameters –Instruct Linux how to operate or access parts of computer system’s hardware –Use to activate features of Linux To enter –GRUB Press “a” –LILO Enter after operating system name

The Complete Guide to Linux System Administration15 Configuring Boot Loaders Configuration files –Created by installation program –Examine how boot loader operates –Usually no need to change

The Complete Guide to Linux System Administration16 Using LILO Simpler than GRUB To use –Create configuration file describing operating systems LILO should start –Run lilo command Examines lilo.conf file Stores appropriate information in either –MBR –Boot record you have indicated

The Complete Guide to Linux System Administration17 Using LILO (continued) Boot image –Each version of Linux Parameters –boot –delay –image –other

The Complete Guide to Linux System Administration18 Using GRUB Installed by default for many versions of Linux /boot/grub/grub.conf –Configuration file for GRUB –Similar in layout and syntax to lilo.conf

The Complete Guide to Linux System Administration19 Using GRUB (continued)

The Complete Guide to Linux System Administration20 init and its Scripts init program –Master control program –Starts many other programs –Runs scripts to initialize system services –Controlled by /etc/inittab configuration file Three main configuration files located in /etc/rc.d –rc.sysinit –rc –rc.local

The Complete Guide to Linux System Administration21 Understanding Run Levels Run level –Numbered mode of operation –Preconfigured set of services is activated –Defined in /etc/inittab file –Default run level 5 init or telinit command –Change to different run level –Commonly done only to restart or halt system

The Complete Guide to Linux System Administration22 Understanding Run Levels (continued)

The Complete Guide to Linux System Administration23 Understanding rc Scripts rc script –Located in /etc/rc.d directory –Started with parameter that includes run level –Starts appropriate system services based on selected run level Each run level is associated with subdirectory –Located in /etc/rc.d directory

The Complete Guide to Linux System Administration24 Understanding rc Scripts (continued) Each file begins with K or S followed by two-digit number –Begin with K―stopped (killed) –Begin with S―started Files symbolic links to scripts that stop and start services

The Complete Guide to Linux System Administration25 Understanding rc Scripts (continued)

The Complete Guide to Linux System Administration26 Controlling Services Many services listed in run-level directories relate to networking Scripts allow user to change almost anything on Linux system without restarting computer

The Complete Guide to Linux System Administration27 Managing Services service command –Control service –Must know service name –Examples: service lpd restart service named start service named status

The Complete Guide to Linux System Administration28 Managing Services (continued) chkconfig command –Alter files in run-level directories –Modify services started or stopped each time system started –By default alters run levels 2 through 5 –Example: chkconfig named on

The Complete Guide to Linux System Administration29 Managing Services Graphically Service configuration utility –Main window lists services available on system Determined by contents of /etc/rc.d/init.d –Active services Shown with check mark next to them

The Complete Guide to Linux System Administration30 Managing Services Graphically (continued)

The Complete Guide to Linux System Administration31 Configuring System Services Initialization scripts in /etc/rc.d/init.d –Typically use configuration information located in /etc/sysconfig directory and subdirectories Files in /etc/sysconfig –Namedfor services –Each file contains name-value pairs Define configuration options for service

The Complete Guide to Linux System Administration32 Configuring System Services (continued) Use system-config-network utility to configure –/etc/sysconfig/ network file –Files within /etc/sysconfig/network-scripts system-config-securitylevel utility –Alters /etc/sysconfig/system-config-securitylevel file –Based on firewall selections Service itself often has another set of configuration files in /etc directory

The Complete Guide to Linux System Administration33 Shutting Down Linux Turning off Linux computer without shutting it down in orderly way can cause data loss Journaling file system –Tracks each disk operation to ensure it is either completed or not done at all –Journal permits operating system to “back out” of disk operation if not completed successfully

The Complete Guide to Linux System Administration34 Shutting Down Linux (continued) Journaling file system –Means file systems are unlikely to ever be corrupted by power loss Graceful shutdown –Orderly or methodical shutdown of Linux –All Linux services are stopped –All data is written to disk –Kernel changes to run level 0 or 6

The Complete Guide to Linux System Administration35 Shutting Down Linux (continued) Shut down Linux gracefully –Use reboot command –Use halt command –Use shutdown command –Pressing Ctrl+Alt+Del –Entering the command telinit 0 Halt system –Entering command telinit 6 Restart system

The Complete Guide to Linux System Administration36 Shutting Down Linux (continued) Graphical desktop –Use log out item on main menu of GNOME or KDE On servers or multiuser Linux systems –Only system administrator should be allowed to shut down system

The Complete Guide to Linux System Administration37 Summary CPU BIOS and other hardware components of computer must initialize themselves before attempting to load operating system Boot loader typically first software loaded on Linux system Multiple boot loaders can be installed on one system and chained together Messages generated by kernel after it starts are stored in kernel ring buffer

The Complete Guide to Linux System Administration38 Summary (continued) Boot loader can pass parameters to Linux kernel LILO and GRUB configured using text configuration files –Stored in /boot directory init program –First process started by Linux kernel –Runs several scripts that start numerous daemons

The Complete Guide to Linux System Administration39 Summary (continued) Run level mode of operation defines what processes are started at boot time Must gracefully shut down Linux to avoid data loss