Linux+ Guide to Linux Certification Chapter Nine System Initialization.

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.
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.
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.
Windows Vista Boot process. All the computer running Windows vista have the same start up sequence: Power-on self test (POST) phase Initial startup phase.
Booting and Shutting Down the UNIX Operating System Arcadio A. Sincero Jr. 6/6/2001 CMSC 691X, Section 6080.
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
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
Linux+ Guide to Linux Certification, Second Edition
DIT314 ~ Client Operating System & Administration CHAPTER 4 CONFIGURING HARDWARE DEVICES AND STARTUP PROCESS Prepared By : Suraya Alias.
计算机系 信息处理实验室 Lecture 5 Startup and Shutdown
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Linux Installation Chapter II. Linux Distributions Pre-packaged, installable Linux Anyone can compile a distribution, have to inculde GPL Available for.
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.
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.
Bootloader / multi-boot
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
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.
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Booting and boot levels
Linux Booting Procedure
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
Hardware Boot Sequence. Vocabulary BIOS = Basic Input Output System UEFI = Unified Extensible Firmware Interface POST= Power On Self Test BR = Boot Record.
Installation Overview Lab#2 1Hanin Abdulrahman. Installing Ubuntu Linux is the process of copying operating system files from a CD, DVD, or USB flash.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Troubleshooting and Performance
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
CIS Lesson 5 Lesson 5 New Skills Boot time GRUB edits (review) Changing BIOS boot order on a VM (review) Mounting CD ISO and floppy Image files on.
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.
IST 222 Day 3. Homework for Today Take up homework and go over Go to Microsoft website and check out their hardware compatibility list.
Linux+ Guide to Linux Certification Chapter Six Linux Filesystem Administration.
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.
IT Essentials 1 v3 Module 4 JEOPARDY IT Essentials 1 RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands.
Computer Operating Systems And Software applications.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
This courseware is copyrighted © 2016 gtslearning. No part of this courseware or any training material supplied by gtslearning International Limited to.
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.
Chap- 2 BOOTING & SHUTDOWN LINUX SYSTEM Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 1.
1 COP 4343 Unix System Administration Unit 1: –Linux OS structure –Distributions –Hardware inventory –Disks and partitions –Installation steps –Boot loader.
Chapter 8 Unix & Linux.
Guide to Linux Installation and Administration, 2e
Chapter 3 Installing Red Hat Linux
Introduction to Computers
Partitioning a Hard Drive
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Operating System Module 1: Linux Installation
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.
Genesis: From Raw Hardware to Processes
SUSE Linux Enterprise Desktop Administration
Modern PC operating systems
Boot Process Mark Stanovich COP 5641 / CIS 4930.
Presentation transcript:

Linux+ Guide to Linux Certification Chapter Nine System Initialization

Objectives Summarize the major steps necessary to boot a Linux system Configure the LILO boot loader Configure the GRUB boot loader Dual boot Linux with the Windows operating system using LILO, GRUB, and NTLOADER Understand how the init daemon initializes the system at boot time

The Boot Process Power On Self Test (POST) –Initial series of tests run when a computer is powered on to ensure that hardware components are functional Master Boot Record (MBR) –Small program normally located on the first sector of the first hard disk drive used to define partitions and a boot loader Boot loader –Program used to load an operating system

The Boot Process Active partition –Partition that the MBR points to /boot –Directory that contains the kernel and boot- related files Vmlinuz- –The Linux kernel file

The Boot Process Daemon –A Linux system process that provides a certain service Init (initialize) daemon –The first process started by the Linux kernel –It is responsible for starting and stopping other daemons

The Boot Process Figure 9-1: The boot process

Boot Loaders The primary function of boot loaders during the boot process is to load the Linux kernel into memory Boot loaders may perform other functions as well The two most common boot loaders: –LILO –GRUB

LILO Figure 9-2: LILO boot loader screen

LILO /etc/lilo.conf –The LILO configuration file Table 9-1: Common /etc/lilo.conf keywords

LILO Table 9-1 (continued): Common /etc/lilo.conf keywords

LILO

LILO Almost any hardware information may be passed to the kernel via the append= keyword –The format of the information depends on the type of hardware involved To uninstall LILO from an active partition or the MBR, you may use the lilo –u command

LILO Table 9-2: LILO error codes

GRUB GRand Unified Bootloader (GRUB) –Resembles common UNIX boot loaders –More recent than the LILO boot loader –First major part of the GRUB loader typically resides on the MBR –The remaining parts of the boot loader reside in the /boot/grub directory

GRUB Figure 9-3: GRUB boot loader screen

GRUB /boot/grub/grub.conf –The GRUB configuration file GRUB root partition –The partition containing the second stage of the GRUB boot loader and the /boot/grub.conf file

GRUB Normally, GRUB allows users to manipulate the boot loader during system startup –To prevent this, you may optionally password protect GRUB modifications during boot time grub-md5-crypt command –Used to generate an encrypted password for use in the /etc/grub/grub.conf file

GRUB Figure 9-4: GRUB configuration boot loader screen

GRUB Figure 9-5: GRUB prompt boot loader screen

GRUB Figure 9-6: GRUB boot loader help screen

GRUB Recall that you are required to choose a boot loader during installation Grub-install command –Command used to install the GRUB boot loader

Using LILO or GRUB to Dual Boot other Operating Systems Dual boot –Configuration where two or more operating systems exist on the hard disk of a computer If you are using LILO or GRUB to dual boot another operating system in addition to Linux, it is easiest if Linux is installed after the other operating system has been installed

Using LILO or GRUB to Dual Boot other Operating Systems Figure 9-7: Partitioning for a dual boot system

Using LILO or GRUB to Dual Boot other Operating Systems Figure 9-8: Choosing a boot loader for a dual boot system

Using FIPS First non-destructive Interactive Partition Splitter (FIPS) –Program used to create a new partition out of the free space on an existing FAT16 or FAT32 partition –Resizing the Windows partition using FIPS will preserve the Windows operating system on the Windows partition yet allow for free space to install Linux

Using FIPS Guidelines/limitations to using FIPS: –Version 2.0 of FIPS supports the FAT16 and FAT32 filesystems only –FIPS will only work with primary Windows partition and will not resize logical drives within extended partitions –FIPS works by splitting the Windows partition into two primary partition –There must be sufficient free space within the existing Windows to allow for the installation of Linux once the partition for FIPS to use

Using a Windows Boot Loader to Dual Boot Linux NTLOADER –Boot loader available with Windows NT/2000/XP –Can be used to display a screen at boot time that prompts you to choose an operating system to boot –Similar to LILO and GRUB

Using a Windows Boot Loader to Dual Boot Linux Figure 9-9: Configuration screen to put GRUB or LILO to the boot partition

Using a Windows Boot Loader to Dual Boot Linux It is important to create a boot disk when prompted to do so during the installation Boot.ini –The file used to configure NTLOADER

Using a Windows Boot Loader to Dual Boot Linux Figure 9-10: Dual boot operating system choice screen at start up

Linux Initialization Once a boot loader loads the Linux operating system kernel into memory, the kernel resumes control and executes the first daemon process on the system called init /etc/inittab –The configuration file for the init daemon

Runlevels Runlevel –Term that defines a certain type and number of daemons on a Linux system –Since the init daemon is responsible for starting and stopping daemons and hence changing runlevels, runlevels are often called initstates as well

Runlevels Table 9-3: Linux runlevels

Runlevels Table 9-3 (continued): Linux runlevels

Runlevels runlevel command –Command used to display the current and most recent previous runlevel init command –Command used to change the operating system from one runlevel to another telinit command –An alias to the init command

The /etc/inittab File When the init daemon needs to change the runlevel of the system by starting or stopping daemons, it consults the /etc/inittab file /etc/rc.d/rc.sysinit –The first script executed during system startup

The /etc/inittab File Figure 9-11: System startup as a result of /etc/rc.d/rc.sysinit

The /etc/inittab File Figure 9-12: System startup as a result of /etc/rc.d/rc*.d

The /etc/inittab File Mingetty –Program used to display a login prompt on a character-based terminal /etc/rc.d/rc.local –Final script executed during system startup

The /etc/inittab File Figure 9-13: The Linux initialization process

Configuring Daemon Startup /etc/rc.d/rc*.d –The directories used to start and kill daemons in each runlevel /etc/rc.d/init.d –The directory in which most daemons are located

Configuring Daemon Startup Figure 9-14: Results of ntsysv --level 5 command

Chapter Summary Boot loaders are typically loaded by the system BIOS from the MBR or the first sector of the active partition of a hard disk The boot loader is responsible for loading the Linux kernel The LILO boot loader uses the /etc/lilo.conf configuration file, whereas the GRUB boot loader uses the /boot/grub/grub.conf configuration file You may use the LILO or GRUB boot loader to dual boot Linux and the Windows operating system

Chapter Summary The FIPS utility may be used to split a FAT16 or FAT32 partition in order to create enough space to install Linux There are seven standard runlevels used to categorize a Linux system based on the number and type of daemons loaded in memory The init daemon is responsible for loading and unloading daemons using its configuration file /etc/inittab Daemons are typically stored in the /etc/rc.d/init.d directory and loaded at system startup from entries in the /etc/rc.d/rc*.d directories