CHAPTER 8 TROUBLESHOOT LINUX SYSTEM. 8.1 Troubleshoot methodology The maintenance cycle.

Slides:



Advertisements
Similar presentations
Chapter 9 Part III Linux File System Administration
Advertisements

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.
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 One The Essence of UNIX.
Linux+ Guide to Linux Certification, Second Edition
Chapter 14 Troubleshooting, Performance, and Security.
Operating System Customization
5-9/12/2005 CPE How to format your computer and re-install Windows XP.
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
1 Web Server Administration Chapter 3 Installing the Server.
Installing Windows XP and Windows Installing two different versions of Windows on the same machine. In this example, Windows 2000 and Windows XP.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Module 8 Linux Installation Procedures 8.1 Pre-Installation Tasks 8.2 Installing and Configuring Linux 8.3 X Server 8.4 Post Installation Configuration.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Chapter 16 Chapter 16: Troubleshooting. Chapter 16 Learning Objectives n Develop your own problem-solving strategy n Use the Event Viewer to locate and.
System Startup and Shutdown
Overview Basic functions Features Installation: Windows host and Linux host.
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 14: Troubleshooting Windows Server 2003 Networks.
Installation Ubuntu for Libraries. Step 1: Download Head on to Pick Ubuntu LTS; just click the big orange.
Step 1 - Start your PC and place your Windows XP CD in your CD/DVD- ROM drive. Your PC should automatically detect the CD and you will get a message saying.
Basic Computer Maintenance Basic Computer Maintenance Clean and Cool Deleting Temporary Files Scandisk Backup Your Data How to.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
SUSE Linux Enterprise Desktop Administration Chapter 1 Install SUSE Linux Enterprise Desktop 10.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Chapter 6 Advanced Installation. Objectives  Describe the types and structure of SCSI devices  Explain the different levels of RAID and types of RAID.
Linux+ Guide to Linux Certification Chapter Seven Advanced Installation.
Module 3: Resolving Boot Process Issues. Overview Understanding the Boot Process Using Advanced Boot Options Using the Boot.ini file to Change Startup.
Administering Windows 7 Lesson 11. Objectives Troubleshoot Windows 7 Use remote access technologies Troubleshoot installation and startup issues Understand.
®® Microsoft Windows 7 for Power Users Tutorial 8 Troubleshooting Windows 7.
Hands-On Microsoft Windows Server 2008
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 5 1 Control Panel Applets.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
CHAPTER NT Installation Screens. Chapter Objectives Explain the installation in detail Focus on the three stages of installation Use screen images to.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
Managing User Accounts. Module 2 – Creating and Managing Users ♦ Overview ► One should log into a Linux system with a valid user name and password granted.
Linux+ Guide to Linux Certification, Third Edition Chapter 6 Advanced Installation.
1 Web Server Administration Chapter 3 Installing the Server.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
14 Step-by-Step Instructions for an Upgrade Installation n Prepare for the installation Verify that all devices and applications are Windows 2000 compatible.
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.
Module 15 Managing Windows Server® 2008 Backup and Restore.
Linux+ Guide to Linux Certification Chapter Six Linux Filesystem Administration.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
HOW TO INSTALL WINDOWS 7? This step-by-step guide demonstrates how to install Windows 7 Ultimate. The guide is similar for other versions of Windows 7.
Advance startup options Shift Restart. Restart options.
How to fix Missing Windows Sockets Registry Entries required for Network Connectivity in Windows 10 /pages/Reimage- Repair- Tool/ /u/6/b/
Functions of Operating Systems V1.0 (22/10/2005).
Linux Filesystem Administration
Linux Introduction Linux was developed in the early 1990’s by Linus Torvald computer science student at the University of Helsinki Linux is distributed.
Chapter Objectives In this chapter, you will learn:
Guide to Linux Installation and Administration, 2e
CS101 Booting A Computer.
CONFIGURING HARDWARE DEVICE & START UP PROCESS
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
SUSE Linux Enterprise Desktop Administration
Chapter 9 Linux Installation Procedures
Presentation transcript:

CHAPTER 8 TROUBLESHOOT LINUX SYSTEM

8.1 Troubleshoot methodology The maintenance cycle

Monitoring: Observing system areas for problems or irregularities Proactive maintenance: Minimizing chance of future problems e.g., perform regular system backups Reactive maintenance: Correcting problems when they arise Documenting solutions Developing better proactive maintenance methods

Documentation: System information stored in a log book for future references Troubleshooting procedures: Tasks performed when solving system problems

Common troubleshooting procedures

Two troubleshooting golden rules: Prioritize problems according to severity Spend reasonable amount of time on each problem given its priority Try to solve root of problem Avoid missing underlying cause Justify why a certain solution is successful

Two categories of problems: Hardware-related Software-related

8.2 Hardware-Related Problems Hardware-Related Problems Often involve improper hardware or software configuration SCSI termination Video card and monitor configuration POST test alerts Loose hardware connections IRQ or I/O address conflicts View output of dmesg (control or print the kernel ring buffer) command

Absence of device drivers prevent OS from using associated devices Kudzu program: Detect and install support for new hardware If hardware device not detected, device driver must be configured manually HDDs most common device to fail Good idea to use RAID

The kudzu welcome screen

Configuring new hardware using kudzu

If HDD containing partitions mounted on noncritical directories fails: –Power down computer and replace failed HDD –Boot Linux system –Use fdisk to create partitions on replaced HDD –Use mkfs to create filesystems –Restore original data –Ensure /etc/fstab has appropriate entries to mount filesystems

If HDD containing / filesystem fails: –Power down computer and replace failed HDD –Reinstall Linux on new HDD –Restore original configuration and data files You should update your package every time you made changes to your system (hardware/software). You can run PUP, yum, apt-get, or GUI based synaptic package manager to do the update.

8.3 Software-Related Problems: Application-Related Problems Missing program libraries/files, process restrictions, or conflicting applications Dependencies: Prerequisite shared libraries or packages required for program execution Programs usually check at installation Package files may be removed accidentally

rpm –V command: Identify missing files in a package or package dependency ldd command: Display shared libraries used by a program ldconfig command: Updates /etc/ld.so.conf and /etc/ld.so.cache files

/etc/ld.so.conf file: List of directories containing shared libraries /etc/ld.so.cache file: Contains location of shared library files compressor/decompressor (codec) file: Contains rules to compress or decompress multimedia information

ulimit command: Modify process limit parameters in current shell Can also modify max number of filehandles /var/log directory: Contains most system log files If applications stop functioning due to difficulty gaining resources, restart using SIGHUP / SIGHKILL

8.4 Software-Related Problems: Operating System-Related Problems Most software-related problems related to OS Boot loader, filesystem, serial device problems LILO problems: Place “linear” in, remove “compact” from /etc/lilo.conf file GRUB problems: Typically result of missing files in /boot directory mkbootdisk command: Create a boot floppy diskette

If filesystem on partition mounted to noncritical directory becomes corrupted: Unmount filesystem Run fsck command with –f (full) option If fsck command cannot repair filesystem, use mkfs command to re-create the filesystem Restore filesystem’s original data

If / filesystem is corrupted: Boot from first Red Hat Fedora installation CD Type “linux rescue” at welcome screen Enter shell for Linux system on CD Create new / filesystem via mkfs command Restore original data to re-created / filesystem Reboot system

Lost root password First, you have to reboot into recovery mode.

If you have a single-boot (Ubuntu is the only operating system on your computer), you may have to press the Escape key during bootup in order to see the boot menu. If you have a dual-boot (Ubuntu is installed next to Windows, another Linux operating system, or Mac OS X; and you choose at boot time which operating system to boot into), the boot menu should appear without the need to press the Escape key.

From the boot menu, select recovery mode, which is usually the second boot option.

After you select recovery mode and wait for all the boot-up processes to finish, you'll be presented with a few options. In this case, you want the Drop to root shell prompt option so press the Down arrow to get to that option, and then press Enter to select it.

The root account is the ultimate administrator and can do anything to the Ubuntu installation (including erase it), so please be careful with what commands you enter in the root terminal. Once you're at the root shell prompt, if you have forgotten your username as well, type ls /home

You should then see a list of the users on your Ubuntu installation. To reset the password, type username is the username you want to reset. passwd username

You'll then be prompted for a new password. When you type the password you will get no visual response acknowledging your typing. Your password is still being accepted. Just type the password and hit Enter when you're done. You'll be prompted to retype the password. Do so and hit Enter again.

Now the password should be reset. Type to return to the recovery menu. After you get back to the recovery menu, select resume normal boot, and use Ubuntu as you normally would—only this time, you actually know the password! exit