Objectives Topic 2.6 Understanding the boot process

Slides:



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

2 © 2004, Cisco Systems, Inc. All rights reserved. IT Essentials I v. 3 Module 4 Operating System Fundamentals.
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.
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+ 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 Chapter 3 Linux Installation and Usage.
Linux Intro Linux, the do it yourself OS Linux, successor to MINIX Linux, Unix for the masses (PC users) History:
Linux Boot Up Process Bootstrapping –Bootstrapping is the standard term for “ starting up a computer”. During bootstrapping, the kernel is loaded into.
Lesson 15 – INSTALL AND SET UP NETWARE 5.1. Understanding NetWare 5.1 Preparing for installation Installing NetWare 5.1 Configuring NetWare 5.1 client.
Chapter 10 Linux 10.1 User Interface Administration
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.
Va-scanCopyright 2002, Marchany Unit 4 – The Boot Process Randy Marchany VA Tech Computing Center.
System Startup and Shutdown
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Installing Windows Vista Lesson 2. Skills Matrix Technology SkillObjective DomainObjective # Performing a Clean Installation Set up Windows Vista as the.
Linux System Administration LINUX SYSTEM ADMINISTRATION.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
Operating System Program 5 I/O System DMA Device Driver.
Linux Filesystem Management
Linux Intrusion Detection/Defense System (LIDS) - Sowmya Ponugoti - Binita Mehta - Christopher James.
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
How Hardware and Software Work Together
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.
Linux Security Anthony Albrecht – Services & Accounts
1 Linux Basics for Networking. 2 Module - Linux Basics for Networking ♦ Overview This module focuses on the basics of networking using Redhat Enterprise.
COSC 4750 Customizing and maintenance. Installing software Redhat/Fedora (and linux in general) has a package installer, called rpm Many programs will.
UNIX Startup and Shutdown CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
The Linux Operating System Lecture 3: Becoming the Superuser and Users and Groups The Tonga Institute of Higher Education.
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.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
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.
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.
Chap 11 System Admin: Core Concepts. A well-maintained system… Runs quickly enough so users don’t get frustrated Has enough storage to accommodate users’
System Administration. Logging in as System Administrator System Admin login (aka superuser, aka root) –login id: root –Default PS1 prompt: # –Home directory:
Runlevel initialization. Boot to Linux Grub interface.
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.
Sys Admin Course Service Management Fourie Joubert.
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.
Using Networks. Assignment Issues find syntax Permissions HW4 3c /proc vs /tmp vs /var.
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.
The Linux Kernel About 6 million lines of code
Chap-I Network and System Configuration in Linux
Chapter Objectives In this chapter, you will learn:
EXAM CODE LX0-103 CompTIA Linux+ [Powered by LPI] 1
System Programming and administration CS 308
Linux Start Sequence Summary
Chapter 4 Booting and Shutdown
Installing Linux Redhat:
OPS235: Week 1 Installing Linux (Lab1: Investigations 4 - )
COP 4343 Unix System Administration
SUSE Linux Enterprise Desktop Administration
LINUX SYSTEM ADMINISTRATION
Radoslaw Jedynak, PhD Poland, Technical University of Radom
Linux Filesystem Management
Presentation transcript:

Objectives Topic 2.6 Understanding the boot process LPI Linux Certification Objectives Topic 2.6 Understanding the boot process Demonstrate your ability to change run levels, shutdown and reboot

Boot the system Lilo – job is to launch a linux kernel capable of accepting information in the form of a command line Example linux root= /dev/hda9 overrides normal boot and boots the kernel who’s label is linux on device hda and partition #9

Modular nature of Linux Modules are kernel executable files produced by a C compiler for devices or process and reside in the /lib/modules/ directory – can be started before or during operation by root Module configuration is located in /etc/conf.module /sbin/lsmod

A typical etc/conf.modules alias scsi_hostadapter aic7xxx alias eth0 3c59x alias parport_lowlevel parport_pc pre-install pcmia_core /etc/rc.d/init.d/pcmcia start alias sound op13sa2 pre-install sound insmod sound dmabuf=1 alias midi op13 options op13 io=0x530 irq=5 dma=0 dma2=1 mpu_io=0x388 io=0x370 Note alias sound is created for a audio driver opl3sa2 – you can see the I/O ports, interrupts and DMA channels

Note Lilo, at boot time,can only pass kernel options on to the kernel example linux 1 for run level 1 Module options are specified in the conf.modules files

Kernel boot time messages As kernel boots it sends detailed status of its progress in the form of text messages Viewed with the dmesg command dmesg | less Dmesg > bootmsg.txt dumps boot messages to a file for later inspection

Changing Run Levels Description Halt the system quickly 1,s,S Single user – maintance mode 2 Multi user – no nfs file sharing 3 Default – command line 4 unused 5* Multiuser – X windows 6 Reboot system – don’t use reboot eternally Specifies how a system is controlled by which services are running at boot time Example linux 3 command line only

Changing runlevels during Operation Init – change run levels during operation (by root) Example – init 1 switches to single user mode – will disable others Example – init 5 changes from text mode to X login screen

Linux start up scripts /etc/rc.d rc.sysinit – launched by init at boot time, it handles some essential chores such as mounting file systems rc.local – file that is called upon by rc.sysinit, it contains local customizations – preferred by sys- admins to edit because it won’t be lost during a system upgrade rc – file script that used to change between run levels Init.d – file that controls individual start ups for services such as Apache or Mysql or Bourne shell

Setting the default run level Init reads the /etc/inittab file To determine your run level use the command runlevel - displays previous and present run level

Changing Runlevels with init and telinit Init 0 = shutdown now Init 1 = single user maintenance Init 2 = multiuser no nfs Init 3 = text mode (command line) Init 5 = GUI interface starts X Init 6 = reboot immediately Note telinit is equal to init

Shutdown Shutdown command brings the system down in a secure and organized fashion Options are on page 144 Shutdown –r now = immediately Shutdown –r +5 System maintenance is required = shutdown in 5 mins with maintenance message Shutdown –h 23:59 = shutdown just before midnight

Questions 1. Kernel options are passed on by A. By the kernel B. By Lilo C. I don’t know Kernel module options are specified in which file A. local/conf.modules B. etc/conf.modules C. rc.d/rc.local

3. Dave has a linux system with an interrupt conflict caused by his 3c509 network card. How could Dave instruct the system to use interrupt 11 for his network adapter? A. linux eth0=irq11 ant the lilo prompt B. add options 3c509 irq=11 to etc/conf.modules C. reload linux

4. How do I dump my kernel boot time messages to a text file? A. Cut and paste B. dsmeg | less C. dsmeg > bootmsg.txt 5. How do I change the run level to single user at boot time? A. Init 1 B. linux 1 C. Rub 3 times and say I love you

I want to change my default run level at boot time to 3, which file do I edit? A. rc.local B. rc.sysinit C. /etc/inittab What command would I issue if I wanted to determine my present run level A. runlevel B. Init C. Da!

I want to shutdown my system at noon for system maintenance, afterwards take a long lunch. A. Shutdown –h now B. Shutdown –r C. Shutdown –h 12:00 What is the difference between init 0 and shutdown? What would happen if I changed my default run level to level 6 in my /etc/inittab file?