Chapter 9 Part III Linux File System Administration

Slides:



Advertisements
Similar presentations
Hard Disks Low-level format- organizes both sides of each platter into tracks and sectors to define where items will be stored on the disk. Partitioning:
Advertisements

Chapter 4 Storing Information in a Computer Peter Nortons Introduction to Computers.
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.
Linux+ Guide to Linux Certification, Second Edition
Lesson 9 Types of Storage Devices.
Types Of Storage Device
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
Exploring the UNIX File System and File Security
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
1 Web Server Administration Chapter 3 Installing the Server.
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Operating Systems File systems
Guide To UNIX Using Linux Third Edition
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Chapter 8: Adding a Disk — Unix Hard Disk Basics Installation and Configuration Barry Kane CMSC-691X.
1 Partitioning a Hard Drive ©Richard Goldman Revised January 8, 2001 Revised December 9, 2002.
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
Chapter 6 Advanced Installation. Objectives  Describe the types and structure of SCSI devices  Explain the different levels of RAID and types of RAID.
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, 2e1 Chapter 8 Basic Administration Tasks.
Day 4 Understanding Hardware Partitions Linux Boot Sequence.
1 Chapter Overview Floppy Disk Drives Hard Disk Drives.
Understanding and Troubleshooting Your PC. Chapter 5: Understanding, Installing, and Troubleshooting Disk Drives2 Chapter Objectives  In this chapter,
Linux Operations and Administration Chapter Fourteen Planning for a Linux Installation.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Lecture No 11 Storage Devices
Introduction to Hard Drives Chapter 6 - Key Terms Information Compiled by Diane Ferris, Michele Henderson & Vicki Kertz.
PC Maintenance: Preparing for A+ Certification Chapter 10: Introduction to Disk Storage.
Chapter 6: Linux Filesystem Administration
Chapter Two Exploring the UNIX File System and File Security.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
1 Objectives Manage and install new file systems.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
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.
Chapter Two Exploring the UNIX File System and File Security.
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.
Materi managing user & groups, file system Managing Software Packages and File Systems The Complete Guide to Linux System Administration Chapter 10.
Linux Filesystem Administration
Chapter 8 Adding a Disk.
DIT314 ~ Client Operating System & Administration
Filesystem Management and Backups
Guide to Linux Installation and Administration, 2e
Chapter 12: File System Implementation
Partitioning a Hard Drive
Exploring the UNIX File System and File Security
Operating System Module 1: Linux Installation
Troubleshooting (CPU)
Linux File Systems Partitioning Mounting File Systems
Linux+ Guide to Linux Certification, Third Edition
Lesson 9 Types of Storage Devices.
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
Presentation transcript:

Chapter 9 Part III Linux File System Administration Disk devices are represented by device files that reside in the /dev directory Device file – a file used by Linux commands that represent a specific device on the system Character devices - Transfer data to and from the system one character or data bit at a time Block devices Storage devices that transfer to and from the system in chunks of many bits by caching the information in RAM Can transfer information must faster than character devices?

The /dev Directory List 1st floppy & 1st SCSI tape device $ ls –l /dev/fd0 /dev/tst0 brw-rw---- 1 root floppy 2, 0 Aug 30 2001 /dev/fd0 crw-rw---- 1 root disk 9, 0 Apr 4 2001 /dev/st0 Major number floppy 2, scsi tape 9 Used by the kernel to identify what device driver to call to interact properly with a given category of hardware Minor number 0 on both Used by the kernel to identify which specific device, within a given category, to use a driver to communicate with The b indicates block devices The c indicates character devices

The /dev Directory Table 6-1 (continued): Common device files

Filesystems Filesystem The organization imposed on a physical storage medium that is used to manage the storage and retrieval of data Formatting The process where a filesystem is placed on a disk drive Create the ext2 format file system on floppy device 0 $ mkfs –t ext2 /dev/fd0 or $ mkfs /dev/fd0 (ext2 is default filesystem for mkfs) To list devices currently used on the system. $ cat /proc/devices

Working with Floppy Disks Floppy disks must be prepared before they are used in Linux Each disk device must be formatted with a filesystem prior to being used to store files Table 6-3: Commands used to create filesystems Table 6-3: Commands used to create filesystems

Filesystem Types Table 6-2: Common Linux filesystems

Filesystem Types Table 6-2 (continued): Common Linux filesystems

Mounting Mounting Process used to associate a device with a directory in the logical directory tree such that users may store data on that device Mount point Directory in a file structure to which something is mounted Mount floppy to default mount point (directory) $ mount /dev/fd0 Mount floppy to specified mount point (directory) $ mount /dev/fd0 /flopper

Working with Floppy Disks Table 6-4: Commands useful when mounting and unmounting filesystems

Mounting Figure 6-1: The directory structure prior to mounting

Mounting Figure 6-2: The directory structure after mounting a floppy device

Mounting When the Linux filesystem is first turned on, a filesystem present on the hard drive is mounted to the / directory Root filesystem Filesystem that contains the most files that make up the operating system Should have enough free space to prevent errors and slow performance

Working with Floppy Disks Figure 6-6: Viewing the contents of a CD-ROM in a GUI environment

Working with Floppy Disks Figure 6-7: Unmounting a CD-ROM device in a GUI environment

Working with CD-ROMs Linux systems have an ATAPI compliant IDE CD-ROM drive that attaches to the mainboard via an IDE ribbon cable These CD-ROMs act as a normal IDE hard disk, and must be configured on of the four configurations below, as seen with their associated device files: Primary master (/dev/hda) Primary slave (/dev/hdb) Secondary master (/dev/hdc) Secondary slave (/dev/hdd)

Working with Hard Disks IDE hard disk drives attach to the mainboard with an IDE cable and must be configured on one of four configurations, each of which has a different device file: Primary master (/dev/hda) Primary slave (/dev/hdb) Secondary master (/dev/hdc) Secondary slave (/dev/hdd)

Working with Hard Disks SCSI hard disks are well-suited to Linux servers that require a great deal of storage space for programs and user files Different device files associated with SCSI hard disks: First SCSI hard disk drive (/dev/sda) Second SCSI hard disk drive (/dev/sdb) Third SCSI hard disk drive (/dev/sdc)

Working with Hard Disks Different device files associated with SCSI hard disks (continued): Fourth SCSI hard disk drive (/dev/sdd) Fifth SCSI hard disk drive (/dev/sde) Sixth SCSI hard disk drive (/dev/sdf) And so on

Hard Disk Partitioning Recall that hard disks have the largest storage capacity of any device used to store information on a regular basis This poses some problems, because as the size of a disk increases, organization becomes more difficult and the chance of error increases Partition A physical division of a hard disk drive

Hard Disk Partitioning It is good practice to use more than just two partitions on Linux system as this division can be useful to: Segregate different types of data Allow for the use of more than one type of filesystem on one hard disk drive Reduce the chance the filesystem corruption will render a system unusable Speed up access to stored data by keeping filesystems as small as possible

Hard Disk Partitioning Tracks Area on a hard disk that form a concentric circle of sectors Sector Smallest unit of data storage on a hard disk Block Unit of data commonly used by filesystem commands

Hard Disk Partitioning Cylinder Series of tracks on a hard disk that are written to simultaneously by the magnetic heads in a hard disk drive Figure 6-8: The physical areas of a hard disk

Hard Disk Partitioning Table 6-5: Common hard disk partition device files for /dev/had and /dev/sda

Hard Disk Partitioning Figure 6-9: A sample Linux partitioning strategy

Hard Disk Partitioning Figure 6-10: A sample dual-boot Linux partitioning strategy

Working with Hard Disk Partitions Disk Druid is an easy-to-use partitioning tool used with Red Hat Linux, specifically designed for installation only To create partitions after installations, you use the fdisk command To use the fdisk command, you simply specify the hard disk partition as an argument

Disk Usage There may be several filesystems mounted to the directory tree The more filesystems that are used, the less likely it is that a corrupted filesystem may interfere with normal system operations Conversely, using more filesystems typically results in less hard disk space per filesystem and may result in system errors if certain filesystems fill up with data The easiest method for monitoring free space by mounted filesystem is to use the df (disk free space) command

Checking Filesystems for Errors Filesystem corruption Errors in a filesystem structure that prevent the retrieval of stored data Syncing Process of writing data to the hard disk drive that was stored in RAM Bad blocks Those areas of a storage medium used by filesystem commands

Checking Filesystems for Errors Table 6-6: Common options to the fsck command

Hard Disk Quotas Soft limits Hard limit Limit imposed that can be exceeded for a certain period of time Hard limit Limit imposed that cannot be exceeded

Chapter Summary Disk devices are represented by device files that reside in the /dev directory Each disk drive must contain a filesystem, which is then mounted to the Linux directory tree for usage using the mount command Hard disks must be partitioned into distinct sections before filesystems are created on those partitions

Chapter Summary There are many different filesystems available to Linux It is important to monitor disk usage using the df, du, and dumpe2fs commands to avoid running out of storage space If hard disk space is limited, you can use hard disk quotas to limit the space that each user has on filesystems