1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.

Slides:



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

Chapter 9 Part III Linux File System Administration
Operating Systems File Management.
Linux Installation LINUX INSTALLATION. Download LINUX Linux Installation To install Red Hat, you will need to download the ISO images (CD Images) of the.
04/21/2004CSCI 315 Operating Systems Design1 Disk Management.
File Systems Examples.
FILE SYSTEMS. File Names 1 to 255 characters in length  This includes the path You can use uppercase and lowercase (case-aware, but not case-sensitive)
Introduction to Unix (CA263) File System
2000 Copyrights, Danielle S. Lahmani UNIX Tools G , Fall 2000 Danielle S. Lahmani Lecture 12.
Exploring the UNIX File System and File Security
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
Operating Systems File Systems (in a Day) Ch
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Guide To UNIX Using Linux Third Edition
5.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 5: Working with File Systems.
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.
F ILE S YSTEMS comparison of FAT, NTFS, and Linux.
Guide To UNIX Using Linux Fourth Edition
Unix File System Internal Structures By C. Shing ITEC Dept Radford University.
LIS508 lecture 5: storage devices Thomas Krichel
BACS 371 Computer Forensics
 FILE S SYSTEM  DIFFERENT FILE SYSTEMS  FILE SYSTEM COMPONENTS  FILE OPERATIONS  LOG STRUCTERD FILE SYSTEM  FILE EXAMPLES.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
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.
1Fall 2008, Chapter 11 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
Window NT File System JianJing Cao (#98284).
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
IOS110 Introduction to Operating Systems using Windows Session 5 1.
Chapter 6: Linux Filesystem Administration
Chapter Two Exploring the UNIX File System and File Security.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
Managing Disks and Drives Chapter 13 powered by dj.
The disk surface is divided into tracks. into tracks. 1.
1 Objectives Manage and install new file systems.
File Systems— NTFS versus Ext2FS Yingfei Wang Course: Operating Systems Instructor: Prof. Anvari.
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.
The Functions of Operating Systems Desktop PC Operating Systems.
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.
FILE SYSTEMS. Presented to: Sir. Ahmad Kareem Presented by: Sadia Rasheed Bsit
Chapter 9: Networking with Unix and Linux. Objectives: Describe the origins and history of the UNIX operating system Identify similarities and differences.
Filesystem Management and Backups. 2 Section Overview Devices and Files Filesystem Management Network Filesystems Backups.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
1 The File System. 2 Linux File System Linux supports 15 file systems –ext, ext2, xia, minix, umsdos, msdos, vfat, proc, smb, ncp, iso9660, sysv, hpfs,
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.
Linux Filesystem Administration
Chapter 8 Unix & Linux.
Chapter 8 Adding a Disk.
Filesystem Management and Backups
Guide to Linux Installation and Administration, 2e
Installing OS.
Windows XP File Systems
Introduction to Computers
File Management.
Exploring the UNIX File System and File Security
File Structure 2018, Spring Pusan National University Joon-Seok Kim
File Managements.
Operating System Module 1: Linux Installation
Lecture 43 Syed Mansoor Sarwar
Modern PC operating systems
Presentation transcript:

1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive Electronics (PC workstation)

2 Physical Hard Drive

3 Computer Disk Track –Each platter is divided into concentric rings called tracks Sector –Track are further divided to sectors Cluster –A combination of one or more sectors

4 Disks and Filesystems One of the most important jobs of the SA is to ensure that users have access to files and data that they need and that these files and data remain uncorrupted and secure. This entails tasks such as the following: –Making local and remote files available to users –Monitoring and managing the systems disk resources –Protecting against disk corruption and hardware failures –Ensuring data confidentiality by limiting file and system access –Checking for and correcting file system corruption –Connecting and configuring new storage devices when needed

5 Adding a new Disk Adding a new disk consists of a number of steps: –The disk must be physically attached to the system –Create device files in order to access the disk –Format the disk –Partition the disk –Make a new filesystem for each new partition –Check the integrity of the filesystem –Mount the new filesystem – Setting up automatic mounting –Setting up swapping on swap partitions

6 Separating the FileSystem There are many reasons to separate the file system into different partitions. –Different directories need different permissions –Some directories tend to get filled up real fast –When upgrading a system, things become easier. –Size of a partition makes it easier to do backups.

7 Linux Native FileSystem Linux has had several native file systems. Originally it was minix, which supported file systems of up to 64 mb and 14 character file names. With the advent of VFS (virtual file system) and support for multiple file systems, linux currently uses the ext2/ext3 file system. ext2 can support longer filenames (255 characters), larger file sizes (2GB) and bigger file system support (4 TB).

8 Partitions and file systems Every partition has an associated file system. The file system is actually created by the mkfs command. In DOS systems, it is customary to devote the entire file system to the FAT (File Allocation Table) based file system. In UNIX, it is normal to use multiple partitions in the file system structure, and for the file system structure to spread over many partitions and devices from different type of file systems. UNIX recognizes many types of file systems including minix, ext, ext2, umsdos, msdos, proc, nfs, phfs etc.

9 Partitions In Unix, every disk must be partitioned. Partitions divide up the disk, and each segment acts as a complete disk by itself. Once a partition is full, it cannot (without special software) automatically flow into another partition. Under Linux, each disk is given its own device name. IDE disks start with the name /dev/hdX, where X can range from a through z. When partitions are created, new devices are created. They take the form /dev/hdXY, where now Y is the partition number. When installing the OS, it created partitions for you. A command that exists that can create partitions for you is, the fdisk command. fdisk can be used at anytime by root to partition the hard-drives.

10 Creating a file system Once a partition is created, before it can be used, it must first have a file system installed on it. This is similar to formatting the partition. –mke2fs /dev/hdb3 –to make ext2 filesystems –mkswap /dev/hdb2 –to make swap filesystems Be aware that creating a file system on a device with an existing file system will cause all data on the old file system to be erased.

11 Partitions and Blocks The smallest unit of information that can be read from or written to a disk is a block. When partitions are created, the first block of every partition is reserved as the boot block. However, only one partition may act as a boot partition. BIOS checks the partition table of the first hard disk at boot time to determine which is the boot partition. In the boot block of the boot partition there exists a small program called the bootstrap loader. On Linux, this is called the lilo.

12 Partitions and Blocks The second block on the partition is called the superblock. It contains all the information about the partition, including –size of the partition –physical address of the first data block –number and list of free blocks –info about the file system –when the partition was last modified. The remaining blocks are data blocks. In order to use these partitions and file systems, they are logically attached (mounted) to the directory structure.

13 Mounting the filesystem Mounting is the process that makes the disk’s contents available to the system, merging it into the system directory tree. A file system can be mounted or dismounted except for the root filesystem, that is always mounted on the root directory while the system is up and cannot be dismounted. Once a filesystem is mounted on a directory, any files that were originally in the mount directory, disappear. They become accessible again only when the filesystem is unmounted.

14 Disk Space Management Space shortage becomes a problem at some point or the other. The df command produces a report that describes all the filesystems, their total capacities and the amount of free space available on each one. Systems administrators often put a df command in root’s login initialization file.

15 Disk Space Management The du command reports the amount of disk space used by all files and subdirectories underneath one or more specified directories, listed on a per-subdirectory basis. It reports disk usage in blocks. (512 byte or –k for kilobytes) du /users To generate a list of the system’s directories in order of size: du /users |sort -rn

16 Validate the Filesystem A number of problems, ranging from operator errors to hardware failures can corrupt a filesystem. The fsck utility checks the filesystem consistency, reports any problems it finds, and optionally repairs them. fsckcan find the following filesystem problems: –one block belonging to several inodes –blocks marked as free but in use –incorrect link counts in inodes (indicating missing or excess directory entries)

17 Validate the Filesystem –Illegal blocks within files –inconsistent data in the filesystem’s table –lost files –illegal or unallocated inode numbers in directories fsck’s scope is limited to repairing the structure of the filesystem and not the data in the corrupted files.

18 VFS

19 ext2 Inode

20 Ext2fs Physical Structure Filesystem Block Group –Super Block: Contains basic information such as the block size, total number of blocks, the number of blocks per block group, total number of inodes, etc.

21 Ext3fs Ext3fs = Ext2fs + File System Journaling

22 Basic Commands mkfs fdisk mke2fs mkswap du df fsck