Chap- 2 BOOTING & SHUTDOWN LINUX SYSTEM Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 1.

Slides:



Advertisements
Similar presentations
The ATA/IDE Interface Can we write a character-mode device driver for the hard disk?
Advertisements

2 © 2004, Cisco Systems, Inc. All rights reserved. IT Essentials I v. 3 Module 4 Operating System Fundamentals.
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.
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.
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 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
Hard-Disk Partitions Ref: Wikipedia. What and Why Disk partitioning –The creation of logical divisions upon a hard disk that allows one to apply operating.
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
CIS238/DL1 Chapter 15 Rebuilding the Linux Kernel Preparing the Source Code Locating the Source Code Installing the Source Code Read the Documentation.
04/21/2004CSCI 315 Operating Systems Design1 Disk Management.
Booting And Shutting Down. Bootstrapping  Bootstrapping is standard term for “starting up a computer”  During bootstrapping the kernel is loaded into.
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.
Operating Systems: Software in the Background
11 INSTALLING WINDOWS XP Chapter 2. Chapter 2: Installing Windows XP2 INSTALLING WINDOWS XP  Prepare a computer for the installation of Microsoft Windows.
1 Web Server Administration Chapter 3 Installing the Server.
Bootloader / multi-boot
System Startup and Shutdown
Partitioning Hard Drives. Disk Organization MBR tells layout of the disk Primary PartitionExtended Partition Logical Drives.
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Linux Booting Procedure
DOS  In the 1980s or early 1990s, the operating system that shipped with most PCs was a version of the Disk Operating System (DOS) created by Microsoft:
Booting. Booting is the process of powering it on and starting the operating system. power on your machine, and in a few minutes your computer will be.
Hardware Boot Sequence. Vocabulary BIOS = Basic Input Output System UEFI = Unified Extensible Firmware Interface POST= Power On Self Test BR = Boot Record.
Multiboot System under Windows XP – Ubuntu – Windows 7 Qiong LIN - 28 April 2012.
Linux Administration. Pre-Install Different distributions –Redhat, Caldera, mandrake, SuSE, FreeBSD Redhat Server Install –Check HCL –Significant issues.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
Linux Startup Process Presenter: Dipu Gupta.
System Administration – Part 2. Devices in UNIX are files: A device can be accessed with different file names All device files are stored in /dev or its.
Securing the Linux Operating System Erik P. Friebolin.
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.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
The Linux Operating System R.Bigelow. What is an Operating System An operating system is a collection of programs that manage a computer's resources.
IT Essentials 1 v3 Module 4 JEOPARDY IT Essentials 1 RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands.
System initialization Unit objectives A.Outline steps necessary to boot a Linux system, configure LILO and GRUB boot loaders, and dual boot Linux with.
Linux Filesystem Administration
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-1 INTRODUCTION TO LINUX 1 Created By: Asst. Prof. Ashish Shah, J.M.Patel College of Commerce.
NT1110 Computer Structure and Logic Unit 8 (Module 5A) COMPUTER OPERATION AND SECURITY.
The GRUB bootloader Michael Opdenacker Thomas Petazzoni Free Electrons
Chapter 8 Unix & Linux.
Operating System & Application Software
Chapter Objectives In this chapter, you will learn:
Guide to Linux Installation and Administration, 2e
Chapter 3 Installing Red Hat Linux
TOPIC 6: SYSTEM START-UP AND CONFIGURATION
Structure of Unix OS.
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Operating System Module 1: Linux Installation
Booting Up 15-Nov-18 boot.ppt.
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
Instructor Materials Chapter 5: Windows Installation
Presentation transcript:

Chap- 2 BOOTING & SHUTDOWN LINUX SYSTEM Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 1

 BOOTING REFERS TO THE PROCESS THAT STARTS OPERATING SYSTEMS WHEN THE USER TURNS ON A COMPUTER SYSTEM. WHEN COMPUTER IS BOOTED, THE BASIC IP/OP SYSTEM OR BIOS PROGRAM WILL PERFORMS SOME SYSTEM INTEGRITY CHECKS.  THE BIOS IS THE 1 ST STEP OF THE BOOT PROCESS. ONCE LOADED, THE BIOS TEST THE SYSTEM, SEARCH AND CHECK PERIPHERALS AND THEN LOCATE A VALID DEVICE WITH WHICH TO BOOT THE SYSTEM. Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 2

 IN LINUX TWO BOOT LOADERS ARE AVIALABLE: GRUB or LILO.  GRUB IS THE DEFAULT LOADER, BUT LILO IS AVAILABLE FOR THOSE WHO REQUIRE OR PREFER IT. Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 3

 GRUB STANDS FOR GRAND UNIFIED BOOT LOADER.  GRUB IS A PROGRAM WHICH ENABLES THE USER TO SELECT WHICH INSTALLED OS OR KERNEL TO LOAD AT SYSTEM BOOT TIME. IT ALSO ALLOWS THE USER TO CHOOSE AND EXECUTE ONE KERNEL FROM MULTIPLE KERNEL IMAGES INSTALLED ON YOUR SYSTEM AND PASS ARGUMENTS TO THE SAME.  GRUB LOADS ITSELF INTO MEMORY IN THE FOLLOWING STAGES. Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 4

 THE STAGE1 OR PRIMARY BOOT LOADER EXISTS ON LESS THAN 512 BYTES OF DISK SPACE WITHIN THE MBR AND MERELY LOADS THE NEXT STAGE. IT IS READ INTO MEMORY BY THE BIOS FROM THE MASTER BOOT RECORD(MBR).  THE STAGE 1,5 BOOT LOADER IS ALSO QUITE SMALL. IT IS READ INTO MEMORY BY STAGE1 BOOT LOADER. THE STAGE 1,5 BOOT LOADER IS FOUND ON THE /boot/partition.  THE STAGE 2 OR SECONDARY BOOT LOADER IS READ INTO MEMORY. THE SECONDARY BOOT LOADER DISPLAYS THE GRUB MENU AND COMMAND ENVIRONMENT. THIS INTERFACE FACILITATES USER TO SELECT THE KERNEL OR OS TO BOOT. ONCE GRUB DETERMINES WHICH OS TO START, IT LOADS IT INTO MEMORY AND TRANSFERS CONTROL OF THE MACHINE TO THAT OS. IT ALSO READS initrd (RAMDISK IMAGE) INTO MEMORY.  GRUB CONFIG. FILE IS /boot/grub/grub.conf.  GRUB DISPLAYS A SPLASH SCREEN, WAITS FOR FEW SECOND, IF NO RESPONSE GOT FROM USER, IT LOADS THE DEFAULT KERNEL IMAGE AS SPECIFIED IN THE GRUB CONFIG. FILE. GRUB HAS KNOWLEDGE OF THE SYSTEM. Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 5

 IN LINUX GRUB PROVIDES A MULTIBOOT AND MULTIDISC SYSTEM. GRUB ALLOWS YOU TO USE IT WITH ALMOST ANY OS, MOST POPULAR FILE SYSTEMS, AND ALMOST ANY HARDDISK YOUR BIOS CAN RECOGNIZE.  GRUB CONTAINS A NUMBER OF OTHER FEATURES, THE MOST IMP. OF IT ARE AS FOLLOWS:- 1. IT ALLOWS MAX. FLEXIBILITY IN LOADING OS. BY PROVIDING A TRUE COMMAND-BASED, pre-OS ENVIRONMENT x86 MACHINES. 2. IT SUPPORTS LOGICAL BLOCK ADDRESSING (lba) MODE, NEEDED TO ACCESS MANY ID AND ALL SCSI HARDDISKS. Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 6

 LILO is the boot time LInux LOader. At boot time it gives you the option of booting into different operating systems and even into different kernel versions of the Linux operating system.  The information on where operating systems should be loaded from, and which one is started by default is stored in lilo.conf.  Whenever this file is changed, lilo must be run again in order for changes to take effect. If there is anything wrong  with the syntax of lilo.conf, lilo alerts you to that problem when you run it again.  The lilo.conf file is pretty simple. The first section  contains general information, such as which drive is the boot drive (boot=/dev/hda), and how many tenths of a second the LILO prompt should be displayed on the screen (timeout=50, which is 5 seconds).  In this lilo.conf, the operating system booted by default is linux (default=linux). Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 7

 After the initial general preferences section you will see the boot images section. lilo.conf enables up to 16 boot images to be defined.  The first image defined here is the default linux image that boots with the vmlinuz ac10 kernel.  Its root file system is located on the first IDE disk on the fifth partition, at /dev/hda5.  The second image defined is the Windows boot partition. If you type DOS (label=DOS) at the LILO prompt, you boot into this Windows installation.  As you can see, Windows is installed on the first partition of the first IDE disk (/dev/hda1). Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 8

Lilo.conf file is as shown below boot=/dev/hda map=/boot/map install=/boot/boot.b prompt timeout=50 message=/boot/message linear default=linux image=/boot/vmlinuz ac10 label=linux read-only root=/dev/hda5 append=”hdd=ide-scsi” other=/dev/hda1 optional label=DOS Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 9

 In os, the term “BOOT STRAPPING” refers to the process in which a part of the os is brought into the main memory, with the processor executing it.  In a simple words, boot strapping means starting upyour computer and bringing it to a workable environment. The process “bootstrapping” is a purely dependent on the computer structural design.  When we switch on computer, many messages come up on the screen, after few seconds of system booting, we get a the login prompt. It is so because it involves entire process, from the moment we power on our computer boot strapping makes system ready for us.  During this process the internal data structures of the linux kernel are also initialized, values are set and processes are created.  The boot process involves several diff, stages that the system undertakes while it is being booted.  Failure of any of these stages may prevent the sytem to start itself. Created by: Asst. Prof. Ashish Shah, J.M.PATEL COLLEGE, GOREGOAN W 10