File Management.

Slides:



Advertisements
Similar presentations
File Management.
Advertisements

More on File Management
Operating Systems File Management.
Chapter 4 : File Systems What is a file system?
Allocation Methods - Contiguous
Chapter 10: File-System Interface
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)
File Management Systems
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Connecting with Computer Science, 2e
1 Operating Systems Chapter 7-File-System File Concept Access Methods Directory Structure Protection File-System Structure Allocation Methods Free-Space.
Ceng Operating Systems
1 Friday, July 07, 2006 “Vision without action is a daydream, Action without a vision is a nightmare.” - Japanese Proverb.
Operating Systems File systems
Chapter 12 File Management Systems
5.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 5: Working with File Systems.
1 Chapter Overview Managing Compression Managing Disk Quotas Increasing Security with EFS Using Disk Defragmenter, Check Disk, and Disk Cleanup.
Format Scandisk Defragmentation Antivirus Compression Software
Software utilities Gladys Nzita-Mak. Disk defragmentation Disk defragmentation makes computers run efficiently. When you save, change or delete files.
Chapter 4: Operating Systems and File Management 1 Operating Systems and File Management Chapter 4.
Utility Programs  A type of system software that is used to solve a particular problem is called utility program. Many operating system provides different.
Objectives Learn what a file system does
LIS508 lecture 5: storage devices Thomas Krichel
Chapter 8 File Management
Presented to: Sir Ahmad Karim
 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.
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
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.
Window NT File System JianJing Cao (#98284).
Silberschatz, Galvin and Gagne  Operating System Concepts File Concept Contiguous logical address space Smallest user allocation Non-volatile.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
Disk Fragmentation 1. Contents What is Disk Fragmentation Solution For Disk Fragmentation Key features of NTFS Comparing Between NTFS and FAT 2.
Chapter 8 File Management Understanding Operating Systems, Fourth Edition.
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.
Guide to MCSE , Second Edition, Enhanced 1 File Storage Basics Basic storage Centers on partitioning physical disk Dynamic storage New method supported.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
File Systems. 2 What is a file? A repository for data Is long lasting (until explicitly deleted).
FILE SYSTEMS. Presented to: Sir. Ahmad Kareem Presented by: Sadia Rasheed Bsit
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems File systems.
11.1 Silberschatz, Galvin and Gagne ©2005 Operating System Principles 11.5 Free-Space Management Bit vector (n blocks) … 012n-1 bit[i] =  1  block[i]
SOCSAMS e-learning Dept. of Computer Applications, MES College Marampally FILE SYSTEM.
File Systems - Part I CS Introduction to Operating Systems.
Files An operating system, maintains descriptive information about files in a data structure called a file descriptor. NameDeletion control Storage Organization.
W4118 Operating Systems Instructor: Junfeng Yang.
SVBIT SUBJECT:- Operating System TOPICS:- File Management
DIT314 ~ Client Operating System & Administration CHAPTER 7 MANAGING DISKS AND FILE SYSTEM Prepared By : Suraya Alias.
Lesson 9: SOFTWARE ICT Fundamentals 2nd Semester SY
DOS MS-DOS stands for Microsoft Disk Operating System. MS-DOS controls the computer’s hardware and provides an environment for programs to run. This.
File Systems and Disk Management
Day 28 File System.
File-System Management
Chapter 11: File System Implementation
Computer Literacy BASICS
Windows XP File Systems
Filesystems.
Chapter 11: File System Implementation
File Managements.
Optimizing Disks CGS2564.
Introduction to Operating Systems
Chapter Overview Operating System Basics
Chapter 10: File-System Interface
File-System Structure
Modern PC operating systems
Chapter 16 File Management
File System Implementation
File system : Disk Space Management
Department of Computer Science
Chapter 12: File-System Implementation CSS503 Systems Programming
Presentation transcript:

File Management

What is a file? A file of a collection of data that normally is stored on a secondary storage device such as a hard disk or floppy diskette.

What are the typical operations performed on files? An operating system must provide a number of operations associated with files so that users can safely store and retrieve data. Typical operations are: Open Close Create Copy Rename List

What are File Control Blocks? File control blocks (FCB), sometimes referred to as file descriptors, are data structures that hold information about a file. When an operating system needs to access a file, it creates an associated file control block to manage the file. The structure of the file control block differs between operating systems, but most file control blocks include the following parts Filename Location of file on secondary storage Length of file Date and time or creation or last access

What about how we name files? Each operating system uses a specific convention or practice for naming files. MS-DOS Uses eight character file names, a dot, then a three-character extension that denotes the type of file. Filenames are not case-sensitive. UNIX Filenames can be up to 254 characters long and are case-sensitive. Windows Filenames can be up to 255 characters long and are not case-sensitive.

What are file types? File types refer to classifying the content of the file, such as a program, text file, executable program or data file. In Windows operating systems, the file type is derived from the filename extension. Typical file types and their extensions are

File Extension File Type .bas basic source program .c c source program .dll system library .doc Word document .exe executable program .txt text file

How does an operating system keep track of files? The hard disk is comprised of a large number of sequentially numbered sectors. As files are created, free sectors are allocated to hold the file contents and marked as allocated. To keep track of the sectors and whether they are allocated or free, and to which file they belong, the operating system maintains a number of tables.

What is a root file system? When the operating system is first installed, it creates a root file system on the disk that specifies how many sectors are available and how they will be allocated. The root file system is a table of entries like a directory. In general, this is a fixed size, and once full, no more entries can be added.

What does a root file system entry look like? Name of file Beginning cluster number Length of file in bytes Type of file Creation date and last modified right File permissions (an access control list)

How is free space managed? The operating system can maintain a table of cluster entries, and mark each cluster as either free or allocated. This was a technique used in the MS-DOS operating system. Other operating systems maintain a linked list of free clusters, each free cluster pointing to the next free cluster. As clusters are allocated, they are removed from the free cluster list. When a file is deleted, the clusters that were allocated to it are added back to the free cluster list.

What file system are supported by windows O.S ? FAT: The MS-DOS operating system introduced the File Allocation Table system of keeping track of file entries and free clusters. Filenames where restricted to eight characters with an addition three characters signifying the file type. The FAT tables were stored at the beginning of the storage space.

FAT32 : An updated version of the FAT system designed for Windows 98 FAT32 : An updated version of the FAT system designed for Windows 98. It supports file compression and long filenames. NTFS : Windows NT introduced the NT File System, designed to be more efficient at handling files than the FAT system. It spreads file tables throughout the disk, beginning at the center of the storage space. It supports file compression and long filenames.

What are access-control lists and file permissions? In multi-user operating systems, files may be accessed by multiple users. Permission rights associated with folders (directories) and files are used to protect or restrict access to files. In UNIX these rights are known as Read, Write and Execute. In Windows NT and Windows 2000 (using the NTFS file-system).

What is a symbolic link or shortcut? A symbol link is a filename that links to another file. In Windows, a similar capability is known as a shortcut.

What is file-system integrity? File-system integrity refers to whether the file-system contains errors. Sometimes this is caused by a user turning off the computer system without first shutting the computer down properly. During the shutdown process, a flag can be written to the file-system. At startup, this flag can be detected, and if not present, means the computer system was not shut down correctly. UNIX provides the fsck program to check the file-system. The Windows operating systems provide Scandisk or Chkdsk (checkdisk).

What is fragmentation and what does defragging a drive do? When files are created and data written to the file, the operating system allocates space for the file from the free cluster list. Over a period of time, the clusters that are allocated to a file may no longer be sequential (contiguous or one after the after) but scattered over the disk.

Why is this a problem? An operating system reads data from secondary storage in contiguous clusters more efficiently and faster than from non-contiguous clusters. Windows operating systems such as Windows 95/98 provide a defragmentation utility that scans the file system for fragmented files and moves them to a contiguous space. This results in faster loading and accessing of files.