Machine Language and System Programming

Similar documents
Guide to Computer Forensics and Investigations Fourth Edition. Chapter 6 Working with Windows and DOS Systems

Chapter Two File Systems. CIS 4000 Intro. to Forensic Computing David McDonald, Ph.D.

Advanced Operating Systems

NTFS Recoverability. CS 537 Lecture 17 NTFS internals. NTFS On-Disk Structure

makes floppy bootable o next comes root directory file information ATTRIB command used to modify name

File System Concepts File Allocation Table (FAT) New Technology File System (NTFS) Extended File System (EXT) Master File Table (MFT)

THOMAS RUSSELL, Information Technology Teacher

File System Interpretation

COMP091 Operating Systems 1. File Systems

Computer Forensics: Investigating Data and Image Files, 2nd Edition. Chapter 3 Forensic Investigations Using EnCase

The FAT File System. 1. FAT Overview. 2. Boot Sector, FAT, Root Directory, and Files The FAT F 䤀耄 le System

Segmentation with Paging. Review. Segmentation with Page (MULTICS) Segmentation with Page (MULTICS) Segmentation with Page (MULTICS)

FILE SYSTEMS. CS124 Operating Systems Winter , Lecture 23

Preview. COSC350 System Software, Fall

Windows File System. File allocation table (FAT) NTFS - New Technology File System. used in Windows 95, and MS-DOS

File System. Preview. File Name. File Structure. File Types. File Structure. Three essential requirements for long term information storage

Hard facts. Hard disk drives

File Directories Associated with any file management system and collection of files is a file directories The directory contains information about

CSN08101 Digital Forensics. Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak

CSE 4482 Computer Security Management: Assessment and Forensics. Computer Forensics: Working with Windows and DOS Systems

A file system is a clearly-defined method that the computer's operating system uses to store, catalog, and retrieve files.

Practice Test. Guidance Software GD Guidance Software GD0-110 Certification Exam for EnCE Outside North America. Version 1.6

File Services. Chapter 5. Topics in this Chapter: Understanding Windows File Systems. Understanding Linux File Systems

File System NTFS. Section Seven. NTFS, EFS, Partitioning, and Navigating Folders

File Systems. What do we need to know?

CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

Computer Systems. Assembly Language for x86 Processors 6th Edition, Kip Irvine

Table 12.2 Information Elements of a File Directory

Implementing Hard Drives

ECE 598 Advanced Operating Systems Lecture 17

File System Implementation. Sunu Wibirama

Time Rules for NTFS File System for Digital Investigation

Vorlesung Computerforensik. Kapitel 7: NTFS-Analyse

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission 1

Operating Systems. Lecture File system implementation. Master of Computer Science PUF - Hồ Chí Minh 2016/2017

Roadmap for This Lecture

File System: Interface and Implmentation

Files & I/O. Today. Comp 104: Operating Systems Concepts. Operating System An Abstract View. Files and Filestore Allocation

A+ Guide to Managing and Maintaining your PC, 6e. Chapter 2 Introducing Operating Systems

FILE SYSTEM IMPLEMENTATION. Sunu Wibirama

Chapter 11: Implementing File Systems. Operating System Concepts 8 th Edition,

CS3600 SYSTEMS AND NETWORKS

What does a file system do?

A+ Guide to Managing and Maintaining Your PC. How Hardware and Software Work Together

Long-term Information Storage Must store large amounts of data Information stored must survive the termination of the process using it Multiple proces

IT ESSENTIALS V. 4.1 Module 5 Fundamental Operating Systems

ECE 598 Advanced Operating Systems Lecture 14

Introduction to OS. File Management. MOS Ch. 4. Mahmoud El-Gayyar. Mahmoud El-Gayyar / Introduction to OS 1

Operating Systems: Lecture 12. File-System Interface and Implementation

Chapter 11: Implementing File-Systems

F 4. Both the directory structure and the files reside on disk Backups of these two structures are kept on tapes

Hard Disk Organization. Vocabulary

Chapter 12: File System Implementation

Chapter 12: File System Implementation

Frequently asked questions from the previous class survey

bytes per disk block (a block is usually called sector in the disk drive literature), sectors in each track, read/write heads, and cylinders (tracks).

Sharing may be done through a protection scheme. Network File System (NFS) is a common distributed file-sharing method

Windows 7 Overview. Windows 7. Objectives. The History of Windows. CS140M Fall Lake 1

File system internals Tanenbaum, Chapter 4. COMP3231 Operating Systems

Crash Proof - Data Loss Prevention

CS370 Operating Systems

Microsoft File Allocation Table

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission

File System Management

Figure 1-1 Example of File System Layout

WINDISK: A File and disk Editor

Chapter 11: File System Implementation. Objectives

Introduction to Network Operating Systems

Boot Process in details for (X86) Computers

File Systems. CS170 Fall 2018

ACCESSDATA SUPPLEMENTAL APPENDIX

File Layout and Directories

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

DOS. 5/1/2006 Computer System Software CS 012 BE 7th Semester 2

Main Points. File layout Directory layout

Files. File Structure. File Systems. Structure Terms. File Management System. Chapter 12 File Management 12/6/2018

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Chapter 11: Implementing File Systems

CS720 - Operating Systems

Older geometric based addressing is called CHS for cylinder-head-sector. This triple value uniquely identifies every sector.

Chapter 11: File System Implementation

Chapter 1 (Computer Forensics)

Hard Drive Technologies

From last time. What is the maximum size of a file in bytes? What is the maximum total size of directories and files in a single disk partition?

TDDB68 Concurrent Programming and Operating Systems. Lecture: File systems

70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced. Chapter 7: Advanced File System Management

Project 3 Help Document

Understanding FAT12. Introduction to Computer Forensics. Kessler/Schirling

There is a general need for long-term and shared data storage: Files meet these requirements The file manager or file system within the OS

Windows History 2009 Windows 7 2

Main Points. File layout Directory layout

AccessData Imager Release Notes

ECCouncil Computer Hacking Forensic Investigator (V8)

File Management. Ezio Bartocci.

COMPARATIVE STUDY OF TWO MODERN FILE SYSTEMS: NTFS AND HFS+

File-System Structure. Allocation Methods. Free-Space Management. Directory Implementation. Efficiency and Performance. Recovery

File System CS170 Discussion Week 9. *Some slides taken from TextBook Author s Presentation

Adam Harrison Principal Consultant - Verizon VTRAC

File System Internals. Jo, Heeseung

File Shredders. and, just what is a file?

Transcription:

زبان ماشين وبرنامه نويسی سيستم Machine Language and System Programming جلسه دوازدھم دانشگاه صنعتی ھمدان پاييز 1389

Objectives Explain the purpose and structure of file systems Describe Microsoft file structures Explain the structure of New Technology File System (NTFS) disks List some options for decrypting drives encrypted with whole disk encryption

Understanding File Systems

Examining FAT Disks File Allocation Table (FAT) File structure database that Microsoft originally designed for floppy disks Used before Windows NT and 2000 FAT database is typically written to a disk s outermost track and contains: Filenames, directory names, date and time stamps, the starting cluster number, and file attributes FAT versions FAT12, FAT16, FAT32, FATX (for Xbox), and VFAT

FAT Boot Sector Occupies the first sector in the partition or on the floppy.

FAT Versions FAT12 for floppy disks, max size 16 MB FAT16 allows hard disk sizes up to 2 GB FAT32 allows hard disk sizes up to 2 TB FATX For Xbox media The date stamps start at the year 2000, unlike the other FAT formats that start at 1980 VFAT (Virtual File Allocation Table) Allows long file names on Windows (MS-DOS had 8.3 limitation)

Examining FAT Disks (continued) Cluster sizes vary according to the hard disk size and file system This table is for FAT-16

Examining FAT Disks (continued) Microsoft OSs allocate disk space for files by clusters Results in drive slack ounused space in a cluster between the end of an active file and the end of the cluster Drive slack includes: RAM slack and file slack An unintentional side effect of FAT16 having large clusters was that it reduced fragmentation As cluster size increased

Examining FAT Disks (continued)

Examining FAT Disks (continued) When you run out of room for an allocated cluster OS allocates another cluster for your file, which creates more slack space on the disk As files grow and require more disk space, assigned clusters are chained together The chain can be broken or fragmented

Examining FAT Disks (continued) When the OS stores data in a FAT file system, it assigns a starting cluster position to a file Data for the file is written to the first sector of the first assigned cluster When this first assigned cluster is filled and runs out of room FAT assigns the next available cluster to the file If the next available cluster isn t contiguous to the current cluster File becomes fragmented

FAT File System Root directory Maintains file names, location, characteristics, File Allocation Table (FAT) Allows files longer than a single cluster

FAT Principle Root directory gives first cluster FAT gives subsequent ones in a simple table Use FFFF to mark end of file.

Root Directory A fixed length file (in FAT16, FAT32) Entries are 32B long. Subdirectories are files of same format.

Root Directory Entries Offset 0x00 0x08 0x0b 0x0c 0x16 0x18 0x1a 0x1c Length 8B 3B 1B 10B 2B 2B 2B 4B Meaning File Name Extension File Attribute Reserved: (Create time, date, access date in FAT 32) Time of last change Date of last change First cluster File size.

Deleting FAT Files In Microsoft OSs, when a file is deleted Directory entry is marked as a deleted file owith the HEX E5 (σ) character replacing the first letter of the filename ofat chain for that file is set to 0 Data in the file remains on the disk drive Area of the disk where the deleted file resides becomes unallocated disk space Available to receive new data from newly created files or other files needing more space

FAT32 Supports long filenames Supported by all version of MS- Windows from Windows 95 onward (except Windows NT) 32-bit FAT entries 32 GB maximum volume size Improved recovery from read/write errors

Examining NTFS Disks New Technology File System (NTFS) Introduced with Windows NT Recommended file system for Windows 200 Pro, XP, and later versions through Windows 7 at least Improvements over FAT file systems NTFS provides more information about a file NTFS gives more control over files and folders

Examining NTFS Disks (continued) In NTFS, everything written to the disk is considered a file On an NTFS disk First data set is the Partition Boot Sector Next is Master File Table (MFT) NTFS results in much less file slack space Clusters are smaller for smaller disk drives NTFS also uses Unicode An international data format

Examining NTFS Disks (continued)

NTFS File System MFT contains information about all files on the disk Including the system files the OS uses In the MFT, the first 15 records are reserved for system files Records in the MFT are called metadata

NTFS File System (continued)

NTFS File System (continued)

MFT and File Attributes In the NTFS MFT All files and folders are stored in separate records of 1024 bytes each Each record contains file or folder information This information is divided into record fields containing metadata A record field is referred to as an attribute ID File or folder information is typically stored in one of two ways in an MFT record: Resident and nonresident

MFT and File Attributes (continued) Files larger than 512 bytes are stored outside the MFT MFT record provides cluster addresses where the file is stored on the drive s partition oreferred to as data runs Each MFT record starts with a header identifying it as a resident or nonresident attribute

Resident File in a MFT Record

Resident File Data in the MFT This figure is a repeat of a portion of the previous one

Nonresident File's MFT Record

MFT and File Attributes (continued) When a disk is created as an NTFS file structure OS assigns logical clusters to the entire disk partition These assigned clusters are called logical cluster numbers (LCNs) Become the addresses that allow the MFT to link to nonresident files on the disk s partition

NTFS Encrypting File System (EFS) Encrypting File System (EFS) Introduced with Windows 2000 Implements a public key and private key method of encrypting files, folders, or disk volumes When EFS is used in Windows 2000 A recovery certificate is generated and sent to the local Windows administrator account Users can apply EFS to files stored on their local workstations or a remote server

Deleting NTFS Files When a file is deleted in Windows XP, 2000, or NT The OS renames it and moves it to the Recycle Bin Can use the Del (delete) MS-DOS command Eliminates the file from the MFT listing in the same way FAT does

Understanding the Windows Registry

Understanding the Windows Registry Registry A database that stores hardware and software configuration information, network connections, user preferences, and setup information For investigative purposes, the Registry can contain valuable evidence To view the Registry, you can use: Regedit (Registry Editor) program for Windows 9x systems Regedt32 for Windows 2000 and XP

Exploring the Organization of the Windows Registry

Exploring the Organization of the Windows Registry

Windows Assembly & Windows API