Linux+ Guide to Linux Certification, Second Edition

Slides:



Advertisements
Similar presentations
© 2001 Business & Information Systems 2/e1 Chapter 1 Information Systems in Business.
Advertisements

A+ Guide to Managing and Maintaining Your PC, 7e
Chapter 4 Storing Information in a Computer Peter Nortons Introduction to Computers.
A+ Guide to Managing and Maintaining Your PC, 7e
Linux+ Guide to Linux Certification, Third Edition
ITI-481: Unix Administration Rutgers University Center for Applied Computer Technologies Christopher Uriarte, Instructor Meeting 4.
Hard Disk Drives Chapter 7.
Chapter 9 Part III Linux File System Administration
System Administration Storage Systems. Agenda Storage Devices Partitioning LVM File Systems.
Tutorial 5 Working with Web Tables
Guide to Linux Installation and Administration, 2e1 Chapter 5 Using Linux Graphical Environments.
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 1 Introducing Hardware.
Data Structures Using C++ 2E
Basic Unix system administration
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.
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
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
1 Web Server Administration Chapter 3 Installing the Server.
Guide To UNIX Using Linux Third Edition
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Laksh mi.  fdisk is an interactive utility to manipulate disk partitions.  Use fdisk –l to review the disks and partitions on the system.  Use fdisk.
Chapter 8: Adding a Disk — Unix Hard Disk Basics Installation and Configuration Barry Kane CMSC-691X.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 8 Understanding and Installing Hard Drives.
Linux+ Guide to Linux Certification, Third Edition
CompTIA Linux+ Certification
Linux+ Guide to Linux Certification Chapter Three Linux Installation and Usage.
Guide To UNIX Using Linux Fourth Edition
Unix File System Internal Structures By C. Shing ITEC Dept Radford University.
Linux Installation and Administration – Lesson 5 Tutor: George Papamarkos Topic: Devices in Linux.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.
Guide to Linux Installation and Administration, 2e 1 Chapter 9 Preparing for Emergencies.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Understanding and Troubleshooting Your PC. Chapter 5: Understanding, Installing, and Troubleshooting Disk Drives2 Chapter Objectives  In this chapter,
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
PC Maintenance: Preparing for A+ Certification Chapter 10: Introduction to Disk Storage.
Chapter 6: Linux Filesystem Administration
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
Chapter 1 Managing Storage. Contents Understanding Partitioning Understanding LVM Understanding RAID Understanding Clustering and GFS Using Access Control.
1 EN0129 PC and Network Technology - 1 Sajjad Shami Adrian Robson Gerhard Fehringer School of Computing, Engineering & Information Sciences Northumbria.
1 Objectives Manage and install new file systems.
2.1 Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General.
Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2010 by Scott Orr and the Trustees of Indiana University.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Creating and Managing File Systems. Module 5 – Creating and Managing File Systems ♦ Overview This module deals with the structure of the file system,
Linux+ Guide to Linux Certification Chapter Six Linux Filesystem Administration.
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.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
CSC414 “Introduction to UNIX/ Linux” Lecture 6. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Hp education services education.hp.com hp education services education.hp.com 1 HP World/Interex 2002 Linux File System Support Chris Cooper (734)
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Materi managing user & groups, file system Managing Software Packages and File Systems The Complete Guide to Linux System Administration Chapter 10.
1 C1-UD 6-6 BASIC LINUX FILE MANAGEMENT. Part IV. File System Administration Academic Year DAI. Credit 1 (Single and Multiuser Operating Systems)
Linux Filesystem Administration
Chapter 8 Adding a Disk.
Filesystem Management and Backups
Guide to Linux Installation and Administration, 2e
Chapter 2: Computer-System Structures
Chapter 12: File System Implementation
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Operating System Module 1: Linux Installation
Linux File Systems Partitioning Mounting File Systems
COP 4343 Unix System Administration
Devices, Linux Filesystems,and the Filesystem Hirarchy standard
Presentation transcript:

Linux+ Guide to Linux Certification, Second Edition Chapter 6 Linux Filesystem Administration

Linux+ Guide to Linux Certification, 2e Objectives Identify the structure and types of device files in the /dev directory Understand common filesystem types and their features Mount and unmount floppy disks to and from the Linux directory tree Mount and unmount CD-ROMs to and from the Linux directory tree Create hard disk partitions Linux+ Guide to Linux Certification, 2e

Objectives (continued) Mount and unmount hard disk partitions to and from the Linux directory tree Monitor free space on mounted filesystems Check filesystems for errors Use hard disk quotas to limit user space usage Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e The /dev Directory Device file: File representing a system device Typically found in /dev directory Character devices: Transfer data to and from system character by character Block devices: Transfer chunks or blocks of data using physical memory as a buffer Fast data transfer CD-ROM, HDD, floppy disks Linux+ Guide to Linux Certification, 2e

The /dev Directory (continued) Table 6-1: Common device files Linux+ Guide to Linux Certification, 2e

The /dev Directory (continued) Table 6-1 (continued): Common device files Linux+ Guide to Linux Certification, 2e

The /dev Directory (continued) Major number: Points to the device’s driver in the Linux kernel Minor number: Indicates the particular device Device file type (block or character), major number, and minor number make up a device file’s unique characteristics mknod command: Can be used to re-create a corrupted device file Must know file type, major, and minor numbers Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Filesystems Filesystem: Organization imposed on physical storage media Formatting: Creating a filesystem on a device Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Filesystem Types Table 6-2: Common Linux filesystems Linux+ Guide to Linux Certification, 2e

Filesystem Types (continued) Table 6-2 (continued): Common Linux filesystems Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Mounting Mounting: Making a device accessible to users via the logical directory tree Mount point: Directory to which a device is attached Any existing directory can be a mount point Root filesystem: When Linux filesystem first turned on, a filesystem on the hard drive is mounted to the / directory Contains most OS files Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Mounting (continued) Figure 6-1: The directory structure prior to mounting Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Mounting (continued) Figure 6-2: The directory structure after mounting a floppy device Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Mounting (continued) mount command: Used to mount devices to mount point directories With no options or arguments, lists currently mounted filesystems umount command: Used to unmount devices from mount point directories Linux+ Guide to Linux Certification, 2e

Working with Floppy Disks Floppy disks must be prepared before use Formatted with a filesystem mkfs (make filesystem) command: Used to format a disk device with a filesystem –t option: Specifies filesystem type Default is ext2 filesystem To mount or unmount floppies, must ensure that no user is currently using the mount point directory fuser command: With the –u option, lists users using a directory Linux+ Guide to Linux Certification, 2e

Working with Floppy Disks (continued) Table 6-3: Commands used to create filesystems Linux+ Guide to Linux Certification, 2e

Working with Floppy Disks (continued) /etc/fstab file: Used to mount devices at boot time Also consulted when users do not specify enough mount command arguments Six fields: Device to mount, mount point, type, mount options, dump#, fsck# Linux+ Guide to Linux Certification, 2e

Working with Floppy Disks (continued) Table 6-4: Useful commands when mounting and unmounting filesystems Linux+ Guide to Linux Certification, 2e

Working with Floppy Disks (continued) Figure 6-3: Mounting a floppy device using a GUI environment Linux+ Guide to Linux Certification, 2e

Working with Floppy Disks (continued) Figure 6-4: Accessing filesystem devices in the KDE desktop Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Working with CD-ROMs Most Linux systems have ATAPI-compliant IDE CD-ROM drive Acts as a normal IDE hard disk Must configure in one of the following: Primary master (/dev/hda) Primary slave (/dev/hdb) Secondary master (/dev/hdc) Secondary slave (/dev/hdd) Linux+ Guide to Linux Certification, 2e

Working with CD-ROMs (continued) Typically use iso9660 filesystem type and are not writable Mount with –r (read-only) option Cannot be ejected until properly unmounted Linux+ Guide to Linux Certification, 2e

Working with Hard Disks IDE HDDs must be configured in one of the following: Primary master (/dev/hda) Primary slave (/dev/hdb) Secondary master (/dev/hdc) Secondary slave (/dev/hdd) Different device file for each Linux+ Guide to Linux Certification, 2e

Working with Hard Disks (continued) SCSI hard disks well-suited to Linux servers Faster access speed Multiple hard drives can be attached to a controller Associated with different device files First SCSI HDD (/dev/sda) Second SCSI HDD (/dev/sdb) Third SCSI HDD (/dev/sdc) And so on Linux+ Guide to Linux Certification, 2e

Hard Disk Partitioning As disk size increases, organization becomes more difficult and chance of error increases Partition: A physical division of an HDD; can have own filesystem Good practice to use more than two partitions Segregate different types of data Allow for use of multiple filesystem types on one HDD Reduce chance that filesystem corruption will render a system unusable Speeds up access to stored data; keep filesystems small Linux+ Guide to Linux Certification, 2e

Hard Disk Partitioning (continued) Track: Areas on a hard disk that form a concentric circle of sectors Sector: Smallest unit of data storage on a hard disk Block: Combination of sectors; commonly used by filesystem commands Cylinder: Series consisting of the same concentric track on all of the metal platters inside a HDD Partition definitions stored in first readable sector of the hard disk Master Boot Record (MBR) or master boot block (MBB) Linux+ Guide to Linux Certification, 2e

Hard Disk Partitioning (continued) Figure 6-5: The physical areas of a hard disk Linux+ Guide to Linux Certification, 2e

Hard Disk Partitioning (continued) Table 6-5: Common hard disk partition device files for /dev/hda and /dev/sda Linux+ Guide to Linux Certification, 2e

Hard Disk Partitioning (continued) Table 6-5 (continued): Common hard disk partition device files for /dev/hda and /dev/sda Linux+ Guide to Linux Certification, 2e

Hard Disk Partitioning (continued) Figure 6-6: A sample Linux partitioning strategy Linux+ Guide to Linux Certification, 2e

Hard Disk Partitioning (continued) Figure 6-7: A sample dual-boot Linux partitioning strategy Linux+ Guide to Linux Certification, 2e

Working with Hard Disk Partitions fdisk command: Create partitions after installation Specify hard disk partition as an argument tune2fs command: Create a journal file on the filesystem Convert ext2 to ext3 Edit /etc/fstab file to allow system to mount new filesystems automatically at boot time Linux+ Guide to Linux Certification, 2e

Monitoring Filesystems Check mounted filesystems periodically Errors Disk Space usage Inode usage Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Disk Usage Using more filesystems typically results in less hard disk space per filesystem Errors when filesystems fill up with data e.g., free space on / filesystem falls below 10% df (disk free space) command: Monitor free space used by mounted filesystems –h option: More user friendly Linux+ Guide to Linux Certification, 2e

Disk Usage (continued) du (directory usage) command: View size of a directory and contents in Kilobytes –s option: Summarizes output dumpe2fs command: View total number of inodes and free inodes for ext2 or ext3 filesystem Use –h option Linux+ Guide to Linux Certification, 2e

Checking Filesystems for Errors Filesystem corruption: Errors in filesystem structure preventing retrieval of data Commonly occurs due to improper system shutdown Syncing: Process of writing data stored in RAM to the HDD Bad blocks: Unusable areas of a disk Cannot hold a magnetic charge Linux+ Guide to Linux Certification, 2e

Checking Filesystems for Errors (continued) fsck (filesystem check) command: Check a filesystem for errors Filesystem must be unmounted –f option used to perform full check e2fsck command: Check ext2 and ext3 filesystems Reiserfsck: Check reiserfs filesystems Linux+ Guide to Linux Certification, 2e

Checking Filesystems for Errors (continued) Table 6-6: Common options to the fsck command Linux+ Guide to Linux Certification, 2e

Linux+ Guide to Linux Certification, 2e Hard Disk Quotas If several users on a system, must be enough hard disk space for each user’s files Hard disk quotas: User limits on filesystem usage Restrict number of files/directories or total disk space usage Soft limit: User may exceed quota briefly Hard limit: Limit cannot be exceeded Linux+ Guide to Linux Certification, 2e

Hard Disk Quotas (continued) quotaon and quotaoff commands: Toggle quotas on and off edquota command: Edit user quotas repquota command: Report user quotas quota command: Allows regular users to view quotas and current usage Linux+ Guide to Linux Certification, 2e