Starting and Stopping Linux. Boot Process BIOS initializes hardware –Loads the boot sector MBR loads the bootloader –Point to kernel Kernel initializes.

Slides:



Advertisements
Similar presentations
Introduction to Linux Linux startup process Unix Shells and scripts.
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.
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 can be generally divided into four major components: 1. KERNEL – OS, ultimate boss The kernel is the core program that runs programs and manages.
FreeBSD startup and repair AfNOG 2007 Abuja, Nigeria Hervey Allen Materials from Brian Candler.
Linux+ Guide to Linux Certification, Third Edition
LinuxChix System Startup and Recovery. What happens at startup? ● The BIOS loads and runs the MBR ● A series of "bootstrap" programs are loaded – see.
Booting And Shutting Down. Bootstrapping  Bootstrapping is standard term for “starting up a computer”  During bootstrapping the kernel is loaded into.
Introduction to Linux Init Scripts In this session we will cover the Linux initialization process, run levels, how to change the run level and how to initialize.
 Starting up a computer › Load kernel into memory and execute it. (1)BIOS load and run the MBR (Master Boot Record) (2)MBR searches for the bootable.
Startup and Shutdown1-1 Booting and Shutting Down  Bootstrapping m The computer must pull itself up m Automatic and manual booting m Steps in the boot.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
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
Chapter 2 Booting Up and Shutting Down. Computer Center, CS, NCTU 2 Boot Up?
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.
Linux Filesystem Management
New SA Training Topic 4: System Architecture  System architecture is a broad topic, comprised of many different things. In our organization, SA’s primarily.
Booting Up and Shutting Down. Computer Center, CS, NCTU 2 Booting Up  Starting up a computer Load kernel into memory and execute it. (1)BIOS load and.
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.
itec 400 System Startup/Shutdown
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.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Booting and Runlevels.
2/19/2003 Lecture 3 Computer System Administration Lecture 3 Setup (continued)
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.
ITI Chris Uriarte ITI-481: Unix Administration Meeting 2 Rutgers University Center for Applied Computer Technologies Chris Uriarte, Instructor.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 9: Basic Linux Administration Chapter 11: System Administration: Core Concepts Chapter 16:
INFO 320 Server Technology I Week 4 Basic Unix commands 1INFO 320 week 4.
Linux Startup Process Presenter: Dipu Gupta.
COMP075 OS2 Managing Linux Services. Services? Services are processes that start, usually when the system starts, and run, usually, until the system stops.
CIT 500: IT Fundamentals Startup. Slide #2 Topics 1.Booting 2.Bootstrap loaders 3.Run levels 4.Startup scripts 5.Shutdown and reboot.
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’
中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap one : Service Control 王俊城RHCE/RHCX.
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.
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.
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
The Linux startup process Jerry Feldman The Linux Expertise Center Hewlett-Packard Company Document produced via OpenOffice.org.
System Administration Startup Process. Why Care? ● Every process on your system comes about by following a specific chain of events from the machine startup.
LPI 2010 NLLGG Trainer: Jeroen van Pelt Bijeenkomst 3: Systeem opstarten en werken met filesystemen
The Linux Kernel About 6 million lines of code
LINUX SYSTEM ADMINISTRATION
Chap-I Network and System Configuration in Linux
System Programming and administration CS 308
Advanced Operating Systems
Linux Start Sequence Summary
Chapter 4 Booting and Shutdown
FreeBSD startup and repair
CIT 470: Advanced Network and System Administration
OPS235: Week 1 Installing Linux (Lab1: Investigations 4 - )
COP 4343 Unix System Administration
SUSE Linux Enterprise Desktop Administration
LINUX SYSTEM ADMINISTRATION
Linux Filesystem Management
Objectives Topic 2.6 Understanding the boot process
Presentation transcript:

Starting and Stopping Linux

Boot Process BIOS initializes hardware –Loads the boot sector MBR loads the bootloader –Point to kernel Kernel initializes peripherals, loads drivers, mounts root file system –Calls /sbin/init Spawns user level processes –Reads /etc/inittab –Other scripts kicked off from inittab Distribution specific operations –Red Hat /etc/rc.d/rc.sysint /etc/rc3.d or /etc/rc5.d (runlevel)

Run Levels Common scheme –0Halt –1single user –2-5multi-user –6reboot Red Hat –0Halt –1single-user text –3multi-user text –5multi-user graphical –6reboot

Runlevel /sbin/runlevel –Determines the run level –N 5 “N” means you haven’t previously booted to a different runlevel –/sbin/init 3 Change your runlevel. You must be root –/sbin/init 1 Single user, text, root shell

Why init? Init 1 –Troubleshoot and repair Stop/repair when normal methods fails Restart/switch services End an X session

Changing the default runlevel /etc/inittab id:2:initdefault –change “2” to the desired runlevel Comment line out –Prompted for runlevel at startup

Stopping X startx is the command –When you ‘log out’, X stops

Managing runlevels Red Hat –chkconfig command Allows you to turn services on, off for one or more runlevels Allows you to add, delete services for one or more runlevels –Chkconfig - - level 2345 ssh on –Chkconfig - - add ssh xinetd services turned on/off with chkconfig (all levels) chkconfig - - list

Try it… List all the services running on the system You can specify listing the status of a single service as well –Just list the service in the command chkconfig - - list syslog

ln command –Create a softlink to configure a service in a runlevel #ln –s /etc/rc.d/init.d/cups/etc/rc.d/rc3.d/S90cups Create the link for all runlevels –Including the “kill” level! #ln –s /etc/rc.d/init.d/cups/etc/rc.d/rc0.d/K01cups

Running and stopping services /init.d –Contains scripts Read the script (for options) # /etc/init.d/networking –To stop networking: # /etc/init.d/networking stop

Shutting down Linux Shutting down (must be root) # shutdown –h now # poweroff # halt # shutdown –h +6 “System coming down in 6 minutes” Cancel the shutdown # shutdown –c Reboot # shutdown –r now # reboot

Ctrl-Alt-Delete Disable the 3-finger reboot –Comment out the line in /etc/inittab # ca:12345:ctrlaltdel:/sbin/shutdown –t1 –r now –To allow for a set of users Add the –a switch # ca:12345:ctrlaltdel:/sbin/shutdown –t1 –a –r now –Then add list of allowed users to /etc/shutdown.allow

Shutting down automatically Use the crontab /etc/crontab Add a line: #mhdommondowusercommand 0023***root/sbin/shutdown – h now