University of Pennsylvania Zachary Goldberg. CIS c. More Kernel Bits. 10/03/09 Slide 1

Similar documents
Linux+ Guide to Linux Certification, Third Edition. Chapter 2 Linux Installation and Usage

CSE 265: System and Network Administration

CSE 265: System and Network Administration

PL-I Assignment Broup B-Ass 5 BIOS & UEFI

RHCE BOOT CAMP. The Boot Process. Wednesday, November 28, 12

CIT 480: Securing Computer Systems

Certification. System Initialization and Services

System Administration. Terminals and the X Window System

MODULE 02. Installation

System Administration. Startup Process

Boot Process in details for (X86) Computers

Step 2. Brun Windows Password Recovery Enterprise to

HOW LINUX BOOTS. As it turns out, there isn t much to the boot process:

Fedora Core: Made Simple

Advanced Unix System Administration

CompTIA Linux+ Guide to Linux Certification Fourth Edition. Chapter 2 Linux Installation and Usage

The Early System Start-Up Process. Group Presentation by: Tianyuan Liu, Caiwei He, Krishna Parasuram Srinivasan, Wenbin Xu

Advanced Operating Systems and Virtualization. Alessandro Pellegrini A.Y. 2017/2018

Using grub to Boot various Operating Systems

Computers Are Your Future Chapter 4

Bootstrapping. Steve Muckle Dave Eckhardt

2. INSTALLATION OF SUSE

Basic Linux Security. Roman Bohuk University of Virginia

ECE 471 Embedded Systems Lecture 16

Booting up and Shutting down A primer for troubleshooting

The Lecture's aim A preparation for the installation party: Prepare your computer for the installation Know what's going to happen Understand what's g

Installation of Fedora 12 with CD

LPI EXAM LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2. Buy Full Product.

Guideline for the installation of C-MOR Video Surveillance Virtual Machine on VMware ESX Server

Booting Up and Shutting Down. lctseng / Liang-Chi Tseng

Introduction to Linux start-up. Hao-Ran Liu

Getting Started. System Requirements. Installation

Magic Card NET. User s Manual

Chapter 2: Operating-System Structures

CIS 191A Final Exam. Fall CIS 191 Final Exam

IT S NE VER DONE THAT BEFORE!

DUAL OS INSTALLATION

Installing caos with Cinch on Floppy Disk

ECE 471 Embedded Systems Lecture 12

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition

GL-280: Red Hat Linux 7 Update. Course Description. Course Outline

User. Applications. Operating System. Hardware

SANOG VI IP Services Workshop: FreeBSD Install

Reset the Admin Password with the ExtraHop Rescue CD

Chapter 2 Booting Up and Shutting Down

Linux/Citrix Virtual Environment Documentation

File Backup and Transfer

Installation of Lubuntu Linux, Koha, DSpace and other software using LibLiveCD

How To Force Restore A Computer That Won Boot Up After System

How To Startup Windows Service Windows 7. Repair Dual Boot >>>CLICK HERE<<<

ECE 471 Embedded Systems Lecture 16

CST8177 Linux II. Linux Boot Process

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

OVERDRIVE Quick Start Guide. v.1.0

Exam : 1Z Title : Enterprise Linux System Administration. Version : DEMO

Thousands of Linux Installations (and only one administrator)

Chapter 2. Operating-System Structures

OPERATING SYSTEMS. Božo Krstajić, PhD, University of Montenegro Podgorica.

Configuring Host Router and Cisco Analog Video Gateway Module Interfaces

How To Reinstall Grub In Windows 7 Without Losing Data And Programs

Operating Systems Linux 1-2 Measurements Background material

History of Unix and Linux

init rides the rocket: systemd is here Olaf Kirch

Authored by: Brian E. Brzezicki Copyright 2013, Paladin Group LLC Reuse without permission is strictly prohibited

Instructions: Step 1: Respond to the following: IT131 Linux+

How To Reinstall Grub In Windows 7 Without Cd Dell

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Unicorn: Two- Factor Attestation for Data Security

Introduction. What is an Operating System? A Modern Computer System. Computer System Components. What is an Operating System?

The kernel is not to be confused with the Basic Input/Output System (BIOS).

Arabic Ubuntu Support

How To Reinstall Grub In Windows 7 With Cd Rom

Manual Repair Windows 7 System File Command Prompt Checker

Initial Bootloader. On power-up, when a computer is turned on, the following operations are performed:

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

The Linux Boot Process

SANS Institute - Operations Essentials. Operating System Installation Guidelines. Windows XP Professional Installation. Creating Boot Disks

Network Drawing. Computer Specs, I ve used. Installing a Network-Based Intrusion Detection

OPERATING SYSTEMS LINUX

ROM (read-only memory) is a type of memory that stores data even when the main computer power is off.

Configuring Virtual Blades

Note: - the OS on which you will install VirtualBox is called the host OS. - the OS you will install on VirtualBox (later) is called the guest OS.

AMSC/CMSC 662 Computer Organization and Programming for Scientific Computing Fall 2011 Operating Systems Dianne P. O Leary c 2011

BOOTSTRAP, PC BIOS, AND IA32 MEMORY MODES. CS124 Operating Systems Winter , Lecture 5

Arch Linux Grub You Need To Load The Kernel First

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Disk Imaging with Knoppix

Ubuntu 7.10 VMware Fusion Virtual Machine Setup Install HOWTO

Lab1 tutorial CS

Ubuntu Unleashed 2015 Updates, Installing, and Upgrading to Ubuntu 15.04

Oracle 1Z Enterprise Linux System Administration. Download Full Version :

Outline. Computer Center, CS, NCTU. X Window System. Steps of exercise. Introduction Architecture X11 Implemetation The Window Manager

Installation of the OS

Windows Password Reset 6.0 User Guide

Ubuntu installation alongside windows 8/8.1 and 10

Lab E2: bypassing authentication and resetting passwords

Booting Up and Shutting Down

8 ISSUE 02 SPECIAL EDITION. Installing opensuse Ready to get started? This article shows you how to install opensuse from the disc

Performing Administrative Tasks

Transcription:

More Kernel Bits 10/03/09 Slide 1

Rebooting Why would one ever need to reboot on Linux? Installing new driver?... (No) Installing new applications?... (No) Installing new... Anything?... (No) Reconfiguring... (No) Updating... (No) 10/03/09 Slide 2

Rebooting The only legitimate reason to reboot a kernel is for new kernel features (or bug fixes). Modules take care of the rest But... What if we could reload a kernel without rebooting? Would you ever need to reboot? 10/03/09 Slide 3

Reloading your Kernel Step 1: Load a new kernel Kexec does this part Kexec, a user space utility Sadly not easy to do right now, but possible and may become easier in the future. 10/03/09 Slide 4

Reloading your Kernel Step 2 Step 2: Swap Kernels We can do this with a (very) recent kernel feature called relocatable kernel allows us to Kexec to a non standard location. The idea: Fire up new kernel in location X, done with kexec and relocatable, then switch over Voila, no reboot! 10/03/09 Slide 5

Bootup From GRUB to Gourmet Meal 10/03/09 Slide 6

Step 1 : Power button Power button iitiates a ton of hardware processes. All of them begin with 'BIOS' (Basic Input Output System) BIOS does a POST (Power On Self Test) 10/03/09 Slide 7

B.I.O.S. Motherboard loads the BIOS from the BIOS chip and into the lowest 1MB of memory. BIOS is the lowest level of code on the system that controls the system as a whole. a.k.a. Firmware is lower but it doesn't count. BIOS is also configurable has its own menu system. 10/03/09 Slide 8

POST A series of operations run by the BIOS. Tests that the necessary hardware is available. If something is obviously broken it attempts to report the issue (often beep codes). Does an integrity check of the BIOS itself! 10/03/09 Slide 9

Boot BIOS initializes all hardware, and then looks for a 'boot device'. Boot is short for bootstrap, the computer pulls itself up by its bootstraps. 10/03/09 Slide 10

Selecting a boot device BIOS has a list of devices to try and boot off of (CD- ROM, hard disks etc.) It tries them sequentially until one is found. On a hard disk, the first couple of sectors contain an MBR (Master Boot Record) with information for boot. On Windows, this points straight to the Windows boot loader. 10/03/09 Slide 11

GRUB : The Linux Boot Loader GRUB is a program which loads at boot and allows you to select a 'boot configuration' to run. You configure GRUB with the location of a kernel, and other boot options and grub will allow you to run these at system boot. GRUB can also load other bootloaders (Windows, OS X etc.) 10/03/09 Slide 12

A pre-os OS GRUB provides an actual shell you can use before even booting an OS! This means GRUB must perform many of the functions of an OS (memory management etc.) and it does! Hence, Grub is awesome. 10/03/09 Slide 13

Starting the Kernel GRUB then loads the kernel into memory and executes it. The kernel boot process could have a whole course of its own as it does a lot of things. On a simple level, it initializes all of the hardware drivers and sets up userspace. 10/03/09 Slide 14

Init [ OK ] The kernel will then run an 'init' system. The most common one, sysvinit you see on almost every linux computer. Sysvinit is the program which prints Starting alsa sound... [OK] 10/03/09 Slide 15

Init lasts forever The init system sits in the background and manages running services in userspace. Responsible for shutting down these services on reboot / shutdown. Controls the system runlevel. Runlevel 0 = shut down Runlevel 1 = single user Runlevels 2-5 = running (different sets of services) Runlevel 6 = reboot 10/03/09 Slide 16

Init Runlevels Each runlevel has an associated list of init scripts which should be started and additional actions. Examples (approx.) Runlevel 3 full system without /etc/init.d/networking Runlevel 5 all init scripts Runlevel 0 - no init scripts + shutdown command 10/03/09 Slide 17

XDM / GDM One of the last programs init starts up is called XDM (more commonly, GDM). XDM starts an X server and then launches a login manager like GDM. GDM is a login manager (others include XDM, KDM, Entrance etc.) GDM is the place where you type in your username and password. 10/03/09 Slide 18

To the window manager Once you login successfully GDM begins a 'session'. A session consists of a user logging in and running a session script. Session scripts most commonly execute some applications and a window manager (e.g. Gnome and Metacity). Startup applications can be run in these scripts (~/.xinitrc, ~/.xsession etc.) 10/03/09 Slide 19

Virtual Terminals The last very process that init starts is some form of 'GETTY' (commonly agetty) The gettys manage the systems virtual terminals. A system has 12 virtual terminals, 1->12. They are accessed via the key sequence ctrl+alt+f# Getty starts a terminal login on 1 through 6. X11 usually starts on 7. 10/03/09 Slide 20

Booted System You have several virtual terminals open, and an x session running on one of them. Play with your window manager indefinitely: thats a computer. 10/03/09 Slide 21

Boot process 10/03/09 Slide 22

Extra Interesting UPnP / DLNA MediaTomb Kernel is more than 30% drivers! 10/03/09 Slide 23