Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.

Slides:



Advertisements
Similar presentations
Hard Disks Low-level format- organizes both sides of each platter into tracks and sectors to define where items will be stored on the disk. Partitioning:
Advertisements

Chapter 12: File System Implementation
Chapter 4 : File Systems What is a file system?
Disk Fundamentals. More than one platter (round cylinders)
Computer System Basics 2 Hard Drive Storage & File Partitions Computer Forensics BACS 371.
BACS 371 Computer Forensics
Computer Forensics NTFS File System.
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)
Operating Systems File Systems CNS 3060.
11/13/01CS-550 Presentation - Overview of Microsoft disk operating system. 1 An Overview of Microsoft Disk Operating System.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Operating Systems File systems
Operating Systems File systems
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 –
Files & Partitions BACS 371 Computer Forensics. Data Hierarchy Computer Hard Disk Drive Partition File Physical File Logical File Cluster Sector Word.
BACS 371 Computer Forensics
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
LIS508 lecture 5: storage devices Thomas Krichel
Disk Structures. CTEC 1102 Formatting a Disk Two parts to formatting a disk:  Low-level (physical) formatting  High level (logical) formatting Low-level.
 FILE S SYSTEM  DIFFERENT FILE SYSTEMS  FILE SYSTEM COMPONENTS  FILE OPERATIONS  LOG STRUCTERD FILE SYSTEM  FILE EXAMPLES.
NTFS Architecture NTFS Physical Structure
1 Storing And Retrieving Information 2 Mass Storage and Files Programs and information (text, image, audio, video) are stored: –Magnetic Magnetic Tape.
Files CS Spring Overview Example: FAT File System File Organization File System Organization –File Directories and File Sharing –Record Blocking.
Introduction to Hard Drives Chapter 6 - Key Terms Information Compiled by Diane Ferris, Michele Henderson & Vicki Kertz.
Bits, Bytes, Files, Hard Drives. Bits, Bytes, Letters and Words ● Bit – single piece of information ● Either a 0 or a 1 ● Byte – 8 bits of information.
PC Maintenance: Preparing for A+ Certification Chapter 10: Introduction to Disk Storage.
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.
1 Interface Two most common types of interfaces –SCSI: Small Computer Systems Interface (servers and high-performance desktops) –IDE/ATA: Integrated Drive.
1 EN0129 PC and Network Technology - 1 Sajjad Shami Adrian Robson Gerhard Fehringer School of Computing, Engineering & Information Sciences Northumbria.
The disk surface is divided into tracks. into tracks. 1.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 15 – The Hard Drive.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
File Systems in Real-Time Embedded Applications March 5th Eric Julien Understanding How the File Allocation Table (FAT) Operates 1.
Lecture 11: The FAT, VFAT, and NTFS Filesystems 6/19/2003 CSCE 590 Summer 2003.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 7 Floppy Drives.
Operating System Concepts and Techniques Lecture 18 Information management-2* FFS, UFS2, NTFS M. Naghibzadeh Reference M. Naghibzadeh, Operating System.
DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen.
1 Floppy Drive Formatting ©Richard Goldman February, 2001.
University of Pennsylvania 10/31/00CSE 3801 Windows File System - FAT originally invented as a method for storing data on floppy disks. later used by MS-DOS.
FAT File Allocation Table
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.
2/17 How Disk Storage Works Roll call. Video: disk storage. Step-by-step lecture.
Computer Forensics Hard Drive Format.
Digital Forensics Dr. Bhavani Thuraisingham The University of Texas at Dallas Lecture #8 File Systems September 22, 2008.
Disk storage systems Question#1 (True/False) A track is divided into multiple units called sectors.
BACS 371 Computer Forensics
File Systems May 12, 2000 Instructor: Gary Kimura.
File Systems : Hierarchical File System (HFS, for Mac OS) Prepared by : Mohammad Azzuri bin Zaidi UFH
BITS Pilani Pilani Campus Pawan Sharma Lecture ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
Master Boot Record (MBR)
UMBC CMSC 421 Spring 2017 The FAT Filesystem.
CENG334 Introduction to Operating Systems
Computer Forensics NTFS File System.
Disks and Formatting Ch 3.
Visit for more Learning Resources
I/O Resource Management: Software
Windows XP File Systems
Introduction to Computers
CS-401 Computer Architecture Assembly Language Programming
File Management.
File Systems Implementation
THIS IS Jeopardy. THIS IS Jeopardy With Your Host... Mrs. Glenn.
FILE SYSTEM ANALYSIS Dr Fudong Li
Computer Forensics NTFS File System.
Disk Structure Analysis
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
Department of Computer Science
FAT File System.
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003

Disk Drive Review Disks or platters of magnetic material –Can be one or two sided –Rated to hold a certain amount of magnetic charge Motor to spin the disks Set of read/write/erase heads –Read/write heads sandwiched between two erase heads Actuator (stepper motor) to position heads Interface (circuitry) to transfer data to and from disk

Disk Drive

Low Level Formatting Setting down a series of concentric circles (tracks) on each disk Division of tracks into wedge shaped sectors –A sector holds 512 bytes –Smallest physical storage unit on disk –Sectors are numbered starting with 1 Numbers of tracks and sectors is standardized

Tracks 1024 tracks on a side of a platter in a hard disk 80 tracks per side on a 3.5” HD floppy Outside track is numbered 0 –Old days innermost track is numbered 1023 (BIOS limitation) –Large Block Addressing (LBA) tricks the BIOS into handling bigger, more complicated modern disks In a stack of platters, the n th track on each side of each platter makes up the n th cylinder –When all heads are in the same position on the disk –Older disk drives would identify a sector by cylinder/head/sector notation

Sectors Outside of disk spins faster than inside. Old days, fixed number of sectors on a track (63) –Data density increased towards the center of the disk Now, use zoned-bit recording where there are more sectors towards the outside of the disk –The raw data transfer rate is greater on the outside tracks or zones, and we write to the outside (0 th ) track first, so drive appears to get slower as it ages! –Why modern hard drives are low level formatted at the factory

Sectors Any sector can be referenced by its platter number, side number (0 or 1), track and sector numbers

Starting and Ending Head, Sector and Cylinder Maximum Formatted Capacity = (sector size) x (sectors per track) x (cylinders) x (heads) Ranges of values –Head fields (1 byte) ~ range 0 to 2 8 – 1 = 256 values –Sector fields (6 bits) ~ range 0 to 2 6 – 1 = 64 values –Cylinder fileds (10 bits) ~ range 0 to 2 10 – 1 = 1024 values Maximum Formatted Capacity = (sector size) x (sectors per track) x (cylinders) x (heads) = 512 x 64 x 1024 x 256 = 2 9 x 2 6 x 2 10 x 2 8 = 2 33 = 2 3 x 2 30 = 8,455,716,864 = 7.8 GB

High Level Formatting Placing a series of tables, data structures, and code into the first few sectors of the disk Master Boot Record (MBR) –In very first sector (cylinder 0, head 0, sector 1) –Contains master partition table –And boot code

Master Boot Record Processor always starts executing at the same place on boot BIOS loads initial boot program from MBR that starts the process of loading the operating system Boot program checks the Partition Table and identifies system partition Loads the system’s Partition Boot Sector into memory and transfer control to the executable code in the Partition Boot Sector

Partition Table Each entry 16 bytes long Maximum four entries Boot Indicator field for x-86 based computers –RISC computers use the NVRAM contains info on where to boot System ID Field – describes the type of file system used to format the volume

Byte offsetField LengthSample ValueMeaning 001 byte0x80Boot Indicator 00 = Do not use for booting 08 = System partition 011 byte0x01Starting Head 026 bits0x01Starting Sector 0310 bits0x00Starting Cylinder 041 byte0x06System ID (volume type) 051 byte0x0FEnding Head 066 bits0x3FEnding Sector 0710 bits0x196Ending Cylinder 084 bytes3F Relative Sector 124 bytes Total Sectors Partition Table Format

Extended Partitions Used when there are more than four partitions Not used for bootable/system partitions Can create any number of logical volumes in an extended partition The entry in the Partition Table for an extended partition points to the first sector of the extended partition, which is another Partition Table

Extended Partition Table Entries contain: –Current logical drive –Info about the next logical drive –Entries three and four are all zeroes Each logical drive has its own Partition Table that points to the next logical drive

File Allocation Table (FAT) The FAT file System is a simple file system. The File Allocation Table resides at the start of the volume Duplicate copy maintained for recovery In the FAT file system space is allocated in clusters. The size of the default cluster is determined by the size of the volume The cluster number must fit in 16 bits and be a power of 2. Partition Boot Sector Fat-1Fat-2 Duplicate Root FolderOther folders and files

Differences Between FAT Systems SystemBytes per Cluster Cluster Limit FAT121.5 Number of Clusters <= 4087 FAT <= # Clusters <= FAT <= # Clusters <= 268,435,456

FAT Partition Boot Sector The Partition Boot Sector contains information to access the volume Fields in Partition Boot Sector Byte offsetField LengthSample ValueMeaning 003 bytesEB 3C 90Jump Instruction 038 bytesMSDOS5.0OEM Name in Text 0B25 bytesBIOS Parameter Block 2426 bytesExt. BIOS Par. Block 3E448 bytesBootstrap Code 1FE2 bytes0x55AASector End Marker

BIOS Parameter Block and Extended Parameter Block Fields Contains specific information about the volume, such as: –Bytes per sector. –Sectors per cluster –Number of reserved sectors before the first FAT –Number of FATs. –Number of root directory entries (max limit)

File Allocation System Uses a File Allocation Table to to organize the file system and keep track of cluster usage Two copies of the FAT are kept (in older versions of FAT, adjacent to each other, in the same cluster) Files are given first available cluster in the partition Also uses folders to indicate where in the FAT the info for a file may be

File Allocation Table Information Information on clusters –Unused 0x0000 (free) –Cluster in use by a file –Bad cluster (0xFFF7) –Last cluster in a file (0xFFF8-0xFFFF) If a file consists of multiple clusters then the end of the first cluster contains a link to the next cluster in the file. Example

FAT Root Folder Root folder contains each entry for each file and folder on the root At a fixed location Fixed size 512 entries for a hard disk Other folders contain similar entries but can be anywhere on the disk and have unlimited (relatively) entries

FAT Folder Structure Folder entries include –Name (8+3 characters) –Attribute byte –Creation time –Creation date –Last access date –Last modified time –Last modified date –Starting cluster number in the file allocation table (16 bits)

FAT Filenames Old 8+3 names, eight bits for the name, three bits for the extension

VFAT Longer names are supported but backward FAT compatibility is maintained in VFAT Example of conversion and storage –“The quick brown.fox” – 15 + extension –“THEQUI~1.FOX” made up name Unicode  2 bytes for each character in the long name Windows sets volume, read-only, system, and hidden attributes on log filename entries to get backwards compatible to ignore these fields

VFAT Long Filename Storage nd long entry 0x42wwnn..ffoo0x0F0x00Chek sum xx 0x00 0xFF 0x00 0xFF 1rst long entry 0x01TThhee qq0x0F0x00Chek sum uu iicckk bb0x00 rroo Short Entry THEQUI~1FOX0x20NTCreate Time CreaDateLastAces0x00 LastMod. Time LastMod. Date FirstClust er FileSIze……….……