Operating System Concepts and Techniques Lecture 18 Information management-2* FFS, UFS2, NTFS M. Naghibzadeh Reference M. Naghibzadeh, Operating System.

Slides:



Advertisements
Similar presentations
Chapter 12: File System Implementation
Advertisements

File Management.
COMP091 – Operating Systems 1
Operating Systems File Management.
Chapter 4 : File Systems What is a file system?
Free Space and Allocation Issues
File Systems.
Allocation Methods - Contiguous
Computer Forensics NTFS File System.
File Systems Examples.
File System Analysis.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Introduction to Kernel
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Ceng Operating Systems
1 File Management in Representative Operating Systems.
1 Friday, July 07, 2006 “Vision without action is a daydream, Action without a vision is a nightmare.” - Japanese Proverb.
Wince File systems. File system on embedded File system choice on embedded is important –File system size can be an issue –Different media are used –
Metadata Files Excellent reference:
Files & Partitions BACS 371 Computer Forensics. Data Hierarchy Computer Hard Disk Drive Partition File Physical File Logical File Cluster Sector Word.
Objectives Learn what a file system does
Unix File System Internal Structures By C. Shing ITEC Dept Radford University.
Mastering Windows Network Forensics and Investigation Chapter 7: Windows File Systems.
Chapter 8 File Management
Disk Structures. CTEC 1102 Formatting a Disk Two parts to formatting a disk:  Low-level (physical) formatting  High level (logical) formatting Low-level.
Chapter 5 Part 2 Secondary Storage Mgt. File Mgt. in Popular OSs
File Systems (1). Readings r Silbershatz et al: 10.1,10.2,
NTFS Architecture NTFS Physical Structure
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
IOS110 Introduction to Operating Systems using Windows Session 5 1.
File System Implementation Chapter 12. File system Organization Application programs Application programs Logical file system Logical file system manages.
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.
Operating System Concepts and Techniques Lecture 17
Windows NTFS Introduction to Operating Systems: Module 15.
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
Lecture 11: The FAT, VFAT, and NTFS Filesystems 6/19/2003 CSCE 590 Summer 2003.
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.
DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen.
UNIX File System (UFS) Chapter Five.
Lecture 10 Page 1 CS 111 Summer 2013 File Systems Control Structures A file is a named collection of information Primary roles of file system: – To store.
IT 344: Operating Systems Winter 2008 Module 15 BSD UNIX Fast File System Chia-Chi Teng CTB 265.
Computer Forensics Hard Drive Format.
Web File System Meeting Presentation October 06. NTFS New Technology File System Muhammad Talha Ekram 2185.
NTFS Filing System CHAPTER 9. New Technology File System (NTFS) Started with Window NT in 1993, Windows XP, 2000, Server 2003, 2008, and Window 7 also.
Digital Forensics Dr. Bhavani Thuraisingham The University of Texas at Dallas Lecture #8 File Systems September 22, 2008.
BACS 371 Computer Forensics
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
File System Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314.
W4118 Operating Systems Instructor: Junfeng Yang.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 3: Windows7 Part 3.
Master Boot Record (MBR)
Day 28 File System.
EXT in Detail High-Performance Database Research Center
Introduction to Kernel
Computer Forensics NTFS File System.
Disks and Formatting Ch 3.
Chapter 11: File System Implementation
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
File System Structure How do I organize a disk into a file system?
Windows XP File Systems
Filesystems.
Chapter 3: Windows7 Part 3.
FILE SYSTEM ANALYSIS Dr Fudong Li
Files Management – The interfacing
Computer Forensics NTFS File System.
Department of Computer Science
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Operating System Concepts and Techniques Lecture 18 Information management-2* FFS, UFS2, NTFS M. Naghibzadeh Reference M. Naghibzadeh, Operating System Concepts and Techniques, First ed., iUniverse Inc., To order: or * Information management is not usually covered in the first course of operating systems

Fast file system Larger block size than UFS To avoid excess internal fragmentation: A data block is divided into a number of equal size fragments (often eight). These fragments can be independently assigned to files and directories Since UNIX frequently has many small files and directories, most of the time these are placed in the fragments left over by larger directories and files In the file’s or directory’s i-node eight bits are reserved to show which segments of the last data block is occupied by this file  A one means it is used and a zero means otherwise 2

Fast file system... Based on UFS Data blocks of a file or directory are stored in cylinders that are placed as close as possible to each other A number of adjacent cylinders are called a cylinder group The on-disk i-node of a file or directory is stored in the same cylinder group of the file or directory Data blocks of directories are distributed across the whole disk’s data area so that a directory’s data blocks are close to its files data blocks Furthermore, a file’s and directory’s on-disk i-node is stored as close as possible to the file’s or directory’s data blocks 3

Fast file system... Other improvements: The Berkeley FFS has two superblocks instead of one. If one of the superblocks becomes faulty the system immediately switches to the other and starts repairing Another FFS enhancement is the increase in the file name’s length to 255 characters Yet another improvement is its two different block sizes, for example, 4K and 8K For small size files (or directories), the first block size is used and for large size files there is the second block size. 4

FFS adv/disadv Advantages: Accessing a directory’s or file’s data is faster because the number of seek times is usually less than that of the original UFS file system Disk head movements are reduced thus raising overall performance Superblock failure recovery is possible Can be used with UFS and USF2 Disadvantage: Increases the complexity of the file system implementation 5

UNIX File System 2 Based on UFS Pointers to USF2 data blocks are eight bytes long, one tera byte file can be stored the size of each i-node is 256 bytes Usually few bunch of consecutive blocks are assigned, simultaneously  Number of pointes is reduced 6

NTFS file system Objectives: Supporting a wide range of systems; has many versions Recoverability  File system recovery; use of transaction concept Security and protection  File and directories are considered object, must have the right to access  Memories are cleared before allocation  Windows provides the capability to encrypt file information upon the user’s request Very large files  A file can be as large as 2 64 bytes 7

Volume Volume is a collection of clusters for which a file system is used Can be part of a disk, a disk, or a set of parts of many disks The maximum size of a volume is 2 64 bytes Four general sections are identified in a volume Like UNIX, files and directories are treated the same in NTFS, name, attributes, and data of files all called attributes 8 Boot sector Master file table Recovery data Attributes and data blocks

Boot sector One OS per volume possible, one boot sector per OS Boot sector (Master Boot Record (MBR) in 32-bit or GUID (Globally Unique Identifier) Partition Table (GPT) in 64-bit ) 512 bytes Very essential metadata of the volume such as, the number of bytes per sector, the number of sectors per cluster, disk type (floppy, hard), the number of sectors per record, the location of master file tables, disk identification, and whether the volume is bootable or not A small machine language program 9

10 NTFS Boot Sector 0x003B Jump Instruction 0x03 8B OEM-ID (original equipment manufacturer-id) 0x0B 25B BPB (BIOS Parameter Block)* 0x24 48B Extended BPB* 0x54 426B Bootstrap Code. 0x1FE2B End of Sector Marker * 0x0B, Bytes per sector. 0x0D Sectors per Cluster 0x15Media descriptor. F8: HD; F0: HD Floppy 0x28 Total sectors. 0x30Logical cluster number for the MFT 0x38Logical cluster number copy of the MFT 0x40 Clusters per MFT Record. 0x48 Volume serial

NTFS Master File Table Information on how to find files and directories attributes and data A record based file; each record is 1K There is at least one record for each file (or directory) called base record A file’s entire metadata may not fit in one record; in such case, extended records are allocated A file of variable size Not all attribute names are applicable to all files First 16 records are reserved for metadata files, their name begins with $ First four entries are replicated for MFT repair 11

Master File Table 12 $Mft Master file table $MftMirr Mirror copy of Mft $LogFile Log file for recovery $Volume Volume file $AttrDef Attribute definition $ Root directory $Bitmap Bitmap of clusters used $Boot Bootstrap loader $BadClus List of bad clusters $Secure Security descriptors of files $Upcase Case conversion table $Extend Extension: quotas, etc Reserved for future use A User file System files User files and system and user files extensions 1K

An MFT record Different sections of a MFT record 13 Some metadata Other MFT records for this file File data clusters Unused

Example Example: Suppose a file’s data is stored in cluster numbers 501, 502, 503, 585, 586, 587, 588, 589, 621, 622, 623, 624, 625, 674, 675, 676, 677, 678, 690, and 691 How this information is stored in the file’s base and extended MFT records? If each set of adjacent clusters is called a bunch, then this file’s clusters will form five bunches: 501 to 503, 585 to 589, 621 to 625, 674 to 678, and 690 to 691 Suppose also that two MFT records are needed to save the attributes of this file 14

Example… The first record is the base record with record number sya 125 and the second one is an extended record with record number say 482 Roughly speaking, the information shown in the figure above is stored in the base record of this file The information in the figure below is stored in the extended record of this file Headers are delimeters 15 Headers and file attributes Header 482 Header Headers Free space

Accessing a file and its data Suppose the following figure is the structure of the files and directories of the specific volume in which file K’s data is to be located The absolute path of the file is /C/R/KD 16 B C R S W X A D P QLK Directory File

Accessing a file and its data Root directory is stored in record number 5 of MFT Suppose root’s data are stored in say cluster no. 950 Cluster number 950 is accessed, the information is the names and base MFT records of the root directory’s files and directories A sequential or B+ search locates C and its base MFT record is 125 This record is accessed just as C was searched for with record 5 replaced by 125 and C replaced by R, suppose record 85 is the base MFT record for R Now, K must be found; suppose this is done and the base MFT record 94 is extracted for file K From this base record and its extensions, all metadata and data of file K can be located

18 NTFS Summary Berkeley Fast File System was briefly discussed UNIX File System 2 was also briefly introduced The design details of New Technology File System was studied Each file on an NTFS volume is represented by a record in a special file called the master file table (MFT) The first 16 records of MFT are for special files Each file and directory has a base MFT record and zero or more extended record to store its metadata Directories are also viewed as files by NTFS An example was presented to show how a file’s metadata and data are stored and how we can locate a file or directory

19 Find out The advantages of UFS2 over USF The detailed information stored in base MFT record What is the purposes of record numbers 12, 13, 14, and 15 of the MFT file The maximum size of a file whose metadata and data can completely fit in its base MFT record The purposes of record number four of MFT file How we can use two disks as one volume Which records of the MFT file are duplicated The purposes of duplicating some records of the MFT file

20 Any questions?