Chapter 6: Linux Filesystem Administration

Slides:



Advertisements
Similar presentations
Linux+ Guide to Linux Certification, Third Edition
Advertisements

ITI-481: Unix Administration Rutgers University Center for Applied Computer Technologies Christopher Uriarte, Instructor Meeting 4.
Linux+ Guide to Linux Certification, Second Edition
Chapter 9 Part III Linux File System Administration
Basic Unix system administration
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
1 itec 400 Unix File Systems George Vaughan Franklin University.
Introduction to Unix (CA263) File System
Linux+ Guide to Linux Certification, Second Edition Chapter 3 Linux Installation and Usage.
Lesson 4-Installing Network Operating Systems. Overview Installing and configuring Novell NetWare 6.0. Installing and configuring Windows 2000 Server.
Guide To UNIX Using Linux Third Edition
Linux Install. Resources Guide to Linux Installation and Administration, Nicholas Wells, Course Technology, 2000.
Operating Systems File Systems (Select parts of Ch 11-12)
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.
File System and Directory Structure in Linux. What is File System In a computer, a file system is the way in which files are named and where they are.
Configuring Disk Quotas Linux System Administration To implement disk quotas, use the following steps: Enable quotas per file system by modifying /etc/fstab.
SUSE Linux Enterprise Server Administration (Course 3037)
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.
LIS508 lecture 5: storage devices Thomas Krichel
Manage Directories and Files 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.
CIS Lesson 2 Storage Devices. CIS Lesson 2 Floppy drive and diskettes Hard drive (IDE and SCSI) USB flash drive (aka pen drive) Storage Devices.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Disks, Filesystems 1.  sudo and PATH (environment)  disks  partitioning  formatting file systems: mkfs command  checking file system integrity: fsck.
11 INSTALLING AND MANAGING STORAGE DEVICES IN WINDOWS XP Chapter 8.
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 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
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.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
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.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop V Files and the File System Part B – File System.
Linux Filesystem WeeSan Lee. Roadmap Disk Partitions The Filesystem Filesystem Mouting & Umounting File Tree File Type File Permission.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
Chapter 8: Installing Linux The Complete Guide To Linux System Administration.
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
2007/5/ Digital Forensic Research Workshop (DFRWS) New Orleans, LA 1 Data Hiding in Journaling File Systems Knut Eckstein, Marko Jahnke 報告人:陳晉煒.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
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)
Basic UNIX system administration CS 2204 Class meeting 14 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
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)
Guide to Parallel Operating Systems with Windows 7 and Linux Chapter 5 File Systems.
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 10: Managing Software Packages and File Systems
Chapter 8 Adding a Disk.
Filesystem Management and Backups
Chapter 12: File System Implementation
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
Basic Commands ls cp ls –l (in detail format) echo ls –a
Introduction to Computers
Operating System Module 1: Linux Installation
Linux File Systems Partitioning Mounting File Systems
Devices, Linux Filesystems,and the Filesystem Hirarchy standard
Presentation transcript:

Chapter 6: Linux Filesystem Administration

The /dev directory Each device is represented as files in /dev Devices are divided into two types Character Block The first character in the long listing indicates the type of the device Major and minor numbers replace the size. Major for the type of the device and minor for the device itself If a device file is corrupted or deleted you can use mknod to re-create it if you know the type, major and minor numbers. $mknod /dev/fd10 b 2 10 Otherwise, you can use: $/dev/MAKEDEV fd0 The file /proc/devices contains a list of used devices

Common Device Files

File Systems An advantage of Linux is that you can use several files systems at the same time, thus: Each partition can have its own file system Mounting means making the data available A storage device can be mounted to any directory in the system It is common to use directories under /mnt Mounting will temporary covers up all the content of the mount point for the duration of mounting To mount and un-mount devices, use the mount/ unmount commands The file system table (/etc/fstab) contains various information about currently mounted devices

Common File Systems

Floppy Disks To format a floppy disk (i.e. creating a file system) you use the mkfs commands mkfs takes a –t option to specify the file system type and you need to specify the device file to be used $ mkfs –t ext3 fd4 The default file system is ext2 A list of variant to mkfs is given in Table 6-3 A disk should be mounted to be accessible The command mount lists currently mounted file systems Similar effect can be achieved by viewing the mount table. $cat /etc/mtab After mounting, use the mount point as the root dir.

Floppy Disks (cont.) When an ext2 is created on a device, a directory called lost+found is created by default To check if a mounted directory is not used by any users, you use the fuser: $fuser –u /mnt/floppy You need to unmount the floppy disk before ejecting it. To do so, use $unmount /mnt/floppy The unmount commands accepts the device to be un-mounted or the mount point directory You can use the fuser to check if any process is using the mount directory which will prevent the device from being un-mounted The file-systems table is used to mount devices at boot time and in case the mount command does not have enough arguments

Floppy Disks (cont.) The /etc/fstab has six fields: Device to mount, mount point, type, mount options, dump#, fsck# The dump# determines if the FS is to be backed up or not The fsck# determines if FS is to be checked at boot or not The mount can take fewer arguments Example: $mount /dev/fd0 or $mount /mnt/floppy Contents of /etc/fstab Generally, floppy disks are mounted automatically when using a GUI environment such as the KDE or the GNOME

CD-ROMs They are different than floppies in which they usually use IDE controller Thus, they use similar naming convention like IDE hard disks (hda for primary master, etc.) Besides, they typically use the iso9660 filesystem, thus they are mounted with -t iso9660 option for the filesystem type -r for read-only $mount –r –t iso9660 /dev/cdrom /mnt/cdrom They can be un-mounted using unmount CD-ROM can NOT be ejected unless properly un-mounted.

Hard Disks They are usually partitioned with different FS why Separate different data types Use of more than FS Improve system reliability (FS corruption) Enhance system performance The MBR stores info about all partitions Hard disk structure: Tracks, sectors, cylinder Physical and logical partitions Partitioning hard disks: During installation: using Druid After installation: Using fdisk The machine might need to be rebooted to manually reload the new partition info

Maintenance Commands Monitoring disk usage using disk free space (df) It gives results in terms of block numbers The –h option prints results measured in MB & GB It only views mounted file systems To get info about a specific directory use du (Directory Usage) It, du, gives results in KB The option –s give summary and can be used with –h To view total number of i-nodes and the number of free ones use: dumpe2fs –h /dev/sda0

Maintenance Commands (cont) Disk quotas Soft limit and hard limit Setting quotas (quotaon/quotaoff) Editing quota (edquota) List quota values for all users (repquota) Checking quota values for individual users (quota –v <user>)