Chapter 2 (Cont.) The Unix Way Essential System Administration, 3rd Edition.

Slides:



Advertisements
Similar presentations
Chapter 4 Storing Information in a Computer Peter Nortons Introduction to Computers.
Advertisements

Chapter 12: File System Implementation
Chapter 9 Part III Linux File System Administration
Devices and Drivers (Chapter 7) Khattab Alhabashi UNIX System Administration.
Operating Systems File Management.
Basic Unix system administration
BSD Partitions COEN 152/252 Computer Forensics. BSD Partitions Some BSD systems use IA32 hardware  Designed to co-exists with MS partitions.  Use DOS.
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.
Booting the Linux Kernel Dr. Michael L. Collard 1.
SEMINAR ON FILE SLACK AND DISK SLACK
Allocation Methods - Contiguous
Chapter 10: File-System Interface
The Unix File System. What are the three parts of every file on a Unix filesystem? And where is each stored? Filename - stored in directories Inode -
File Management. Persistent storage Shared device Why Programmers Need Files HTML Editor HTML Editor … … Web Browser Web Browser Structured information.
Exploring the UNIX File System and File Security
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Operating Systems File Systems (in a Day) Ch
File management in UNIX and windows 2000
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
Operating Systems File Systems (Select parts of Ch 6)
1 Friday, July 07, 2006 “Vision without action is a daydream, Action without a vision is a nightmare.” - Japanese Proverb.
Operating Systems File systems
Accessing Files in CCS-2303, C-Term Accessing Files in C CS-2303 System Programming Concepts (Slides include materials from The C Programming Language,
Guide To UNIX Using Linux Third Edition
Chapter 10 File System Interface
Guide To UNIX Using Linux Fourth Edition
Linux Installation and Administration – Lesson 5 Tutor: George Papamarkos Topic: Devices in Linux.
Manage Directories and Files in Linux
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.
Chapter 8. Disks and Filesystems. Ordinary Files u What is a file? –a container for ordered data –persistent (stays around) and accessible by name u Unix.
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.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
GCSE Information Technology Storing data Data storage devices can be divided into 2 main categories: Backing storage is used to store programs and data.
Chapter 6: Linux Filesystem Administration
File Structures Foundations of Computer Science  Cengage Learning.
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.
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
File System Interface. File Concept Access Methods Directory Structure File-System Mounting File Sharing (skip)‏ File Protection.
Operating Systems COMP 4850/CISG 5550 File Systems Files Dr. James Money.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Installation Objectives –to be aware of Unix installation issues Contents –installing the system –options and packages –disk layout –the swapfile –third.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 11: File System Implementation.
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.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
Annotated by B. Hirsbrunner File Systems Chapter Files 5.2 Directories 5.3 File System Implementation 5.4 Security 5.5 Protection Mechanism 5.6 Overview.
Slide: 1 UNIX FILE SYSTEM By:Qing Yang ID: Operating System Research Topic December, 2000.
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
Agenda The Linux File System (chapter 4 in text)
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
File system In computing, a file system is a method of storing and organizing computer files and the data they contain to make it easy to find and access.
Lecture 19 Linux/Unix – File System
Linux file systems Name: Peijun Li Student ID: Prof. Morteza Anvari.
File System Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314.
Filesystem Management and Backups
Guide to Linux Installation and Administration, 2e
Chapter 12: File System Implementation
Chapter 6 File Systems CSNB113 SYSTEM ADMINISTRATION
The Linux Command Line Chapter 2
Exploring the UNIX File System and File Security
File Structure 2018, Spring Pusan National University Joon-Seok Kim
Linux File Systems Partitioning Mounting File Systems
Chapter 16 File Management
Off-line Direct Disk Access System
Department of Computer Science
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Chapter 2 (Cont.) The Unix Way Essential System Administration, 3rd Edition

2 Unix organizes all user-accessible files into a single hierarchical directory structure. On most Unix systems, disks are divided into one or more fixed- size partitions. The disk partition containing the root filesystem is called the root partition and sometimes the root disk. The root filesystem is the first one mounted, early in the Unix boot process. The remaining ones are mounted afterwards An In-Depth Device Example: Disks

3 On many operating systems, mounting is making the device's contents available. For Unix, it means mapping pathnames to the correct physical device and data blocks. Disk partitions may be accessed in two modes: Block mode and Raw (or character) mode. Different special files are used from each mode Disks (Cont.)

Hardware devices can generally be categorized into: Random access devices/Block Devices (like disk and tape drives) Serial devices like/Character Devices (mouse devices, sound cards, and terminals) Random access devices are usually accessed in large contiguous blocks of data that are stored persistently. brw-r root disk 3,64 Apr /dev/hdb b on the far left of the listing, means that your hard disk is a block device Disks (Cont.)

5 Serial devices, on the other hand, are accessed one byte at a time. Data can be read or written only once. For example, after a byte has been read from your mouse, the same byte cannot be read by some other program. crw-r--r-- 1 root sys 14, 3 Jul /dev/dsp C on the far left of the listing, means that your hard disk is a Character device Disks (Cont.)

As an example of the use of special files to access disk partitions, consider the mount commands below: # mount /dev/disk0a / # mount /dev/disk1e /home The command to mount a disk partition needs to specify the physical disk partition to be mounted (mount's first argument) and the location to place it in the filesystem. The mount command is discussed in greater detail in Chapter Disks (Cont.)

7 Other device types have special files named differently, but they follow the same basic conventions. Some of the most common are summarized in Table 2-9: Special Files for Other Devices

8

9 Most Unix versions provide commands that make it easy to quickly determine what devices are present on the system, as well as their current status. The following Table (Table 2-10) lists the commands for the different systems: Commands for listing the devices on a system

10

The Unix Filesystem Layout