File System Interpretation

Size: px
Start display at page:

Download "File System Interpretation"

Transcription

1 File System Interpretation Part III. Advanced Techniques and Tools for Digital Forensics CSF: Forensics Cyber-Security Fall 2018 Nuno Santos

2 Previously: Introduction to Android forensics! How does Android work?! What evidence can be found on Android devices?! How to retrieve evidence from Android devices?! How can Android apps be reverse engineered? 2

3 Remaining advanced topics! Advanced file system analysis (2 lectures)! Cloud forensics (1/2 lecture) + Exercises (1/2 lecture) 3

4 Class roadmap! Mobile forensics! Forensics analysis of Android apps! File system interpretation! Review: File system forensics! Layout of the FAT file system! Layout of the NTFS file system 4

5 Forensic analysis of Android apps 5

6 Android application repackaging! Tampering app made easy! Decompile and modify DEX bytecode! Recompile and distribute malicious APK 6

7 ! Get control flow, string information! Java decompiler Static code analysis! baksmali (used by apktool) 7

8 Packet capture! Use capture tools on Android side! Some tool like tcpdump required rooting! Build rogue AP and sniffing! ARP spoofing, MITM attack 8

9 Private information on debug log (Logcat)! Probably developers are too lazy! Google recommends screening of all logging API on Android before release! Example of PIN code on debug log PIN: syssec0! 9

10 Injecting debug code! Insert debug code around interested instructions on application! Print private key, private information, etc.! Alternatively compile Android code, compile and convert to smali, inject the resulting code! Native code is still a problem 10

11 ! Android app may use native code! Dynamic analysis of native code Native code debugging! No Dalvik VM is involved, native debugger like GDB, IDA could be used 11

12 Dynamic taint analysis! Does a mobile app misuse users private information?! Location, phone ids, microphone, camera, address book! Dynamic taint analysis is a technique that tracks information dependencies from an origin! Conceptual idea:! Taint source! Taint propagation! Taint sink 12

13 Taint tracking systems! Systems that implement dynamic taint tracking within a common Android smartphone architecture! E.g., TaintDroid, TaintART, etc. 13

14 Review: File system forensics 14

15 File system interpretation! File system interpretation examines data in a volume (i.e., a partition or disk) and interprets them as a file system 45#00#00#1d#7b#bd#00#00# c0#a8#01#37#23#82#23#83#...#! Outcome results: listing files in directories, recovering deleted content, viewing the contents of a sector, etc /18

16 Partitions have their own file systems! A disk that is organized using DOS partitions has a Master Boot Record (MBR) in the first 512-byte sector! The MBR has a partition table with four entries, one for each partition Master Boot Record A basic DOS disk with two partitions and the MBR 16

17 MBR layout! The MBR contains boot code, a partition table, and a signature value 17

18 ! File contents are stored inside blocks (e.g., 4KB) The ExtX file system! Each block has an address within the partition (0 up to max #blocks -1)! The blocks allocated to a file are kept by a record called inode! ExtX keeps track of all inodes inside a table! Directory entries associate the file name with the file s inode Table of Inodes 18

19 Inode block pointers! Each inode is the root of an unbalanced tree of blocks that belong to a given file 12 blocks * 4KB = 48KB 1024 blocks * 4KB = 4MB 1024 * 1024 blocks * 4KB = 4GB 2 30 blocks * 4KB = 4TB Triple indirect blocks 19

20 On-disk organization of a ExtX file system! Organized as sequence of logical blocks! The block size is defined upon disk formatting; 1, 2, 4 or 8KB are common! Blocks are grouped into larger units called block groups! All block groups have equal length possibly except the last one! The first data block aka boot block is not used by the FS! Has a fixed 1024 byte length and may contain bootstrap code 20

21 FS evidence can be grouped into categories Data evidence categories of the ExtX file system family Superblock, group descriptor Journal Directory entries Blocks, block bitmap Inodes, inode bitmap 21

22 Data categories of popular file systems Category FAT FS EXTx NTFS File system Boot sector Superblock, group descriptor $Boot, $Volume, $AttrDef Content Clusters, FAT Blocks, block bitmap Clusters, $Bitmap Metadata Directory entries, FAT Inodes, inode bitmap, $MFT, $MFTMirr, $STANDARD_INFORM ATION, $DATA, $ATTRIBUTE_LIST, $SECURITY_DESCRIPT OR File name Directory entries Directory entries $FILE_NAME, $IDX_ROOT, $IDX_ALLOCATION, $BITMAP Application N/A Journal Journal, disk quota 22

23 Layout of the FAT file system 23

24 The FAT FS: why is it relevant for forensics! It s a historical file system popularized by MS-DOS! First introduced in 1977, and evolved: FAT12, FAT16, FAT32! Today still in use, mostly the FAT32 spec from 1996! Still quite popular today! Common in USB sticks and memory cards! Used in some embedded systems! Very simple, it s good for learning FS forensics 24

25 Layout of a FAT file system! Layout of FAT16 on a volume (two more variants FAT12, FAT32)! FAT comes from the index table used to track directories and files: File Allocation Table 25

26 Partition boot sector! Occupies the first sector in the partition: FAT Partition Boot Sector 1. First 3 bytes form an 8086 jump instruction to the entry point of the bootstrap code at the end of the sector 2. Next, an 8 byte field which is used by the system manufacturer for an identification string 3. Next, the BIOS parameter block (BPB): contains all the values required by the OS to find the other system areas and calculate the mapping from file level accesses to logical sector addresses 4. Next, 448 bytes taken up with the bootstrap program 5. Ends with an end of sector marker, valued 0x55AA 00h# 03h# 0Bh# 24h# 3Eh# Jump (3B) OEM name (8B) BIOS Parameter Block (25B) Extended BIOS Parameter Block (26B) Bootstrap code (448B)! The boot sector is part of a reserved area that can be one or more sectors long (specified in the BPB) 1FEh# End of sector marker (1B) 26

27 ! In the FAT FS, data space is divided into an array of clusters The data area Array of clusters! Cluster consists of group of consecutive sectors! Cluster size is defined in the BPB (common cluster size 8 sectors = 4KB)! Clusters start with number 2 (first sector after the root directory) Clusters Sectors 8 Sectors! Clusters are the data units where file and folder contents are stored 27

28 The FAT data structure! In FAT16, each entry is 16 bits, fixed size! FAT12 and FAT32 have 12 and 32 bit entries, respectively! Possible values for FAT16 entries:! 0000h: entry is empty! 0001h: not used by the OS! FFF0-FFF6h: reserved by the OS! FFF7h: bad cluster! Remaining values: next block in a chain! >=FFF8h: represent end of file (EOF)! The size of the FAT is indicated in the BPB 28

29 The FAT is a table that has two functions! Manages the disk space by tracking free / allocated clusters! Keeps track of which clusters belong to each file FAT! Each FAT entry keeps track of the state of a cluster! The index of the FAT entry indicates the index of that cluster! The value of a FAT entry points to next cluster of same file 29

30 Relation directory, FAT, & clusters Directory entry structures (most relevant fields) FAT structure Clusters file1.dat# 4000#bytes# cluster#34# # 33# 32# 33# 34# EOF# 36# 34# file2.txt# 100#bytes# cluster#33# 35# 36# EOF# 37# 35# # 36# 30

31 Location of root directory Clusters Root directory FAT structure file1.dat# 4000#bytes# cluster#34# # 33# 32# 33# 34# EOF# 36# 34# file2.txt# 100#bytes# cluster#33# 35# 36# EOF# 37# 35# # 36# 31

32 Case study: Determine the layout of FAT FS! This is the partition boot sector Find the BPB 0x0B => 0x23 32

33 Byte offset BIOS parameter block (BPB)! Full specification can be found at: Some important fields (here, WORD = 2bytes, little-endian): Field length Sample value Field Name Meaning 0x0B WORD 0x0002 Bytes per Sector The size of a hardware sector. For most disks in use in the United States, the value of this field is x0D BYTE 0x08 Sectors per Cluster 0x0E WORD 0x0100 Reserved Sectors The number of sectors in a cluster. The default cluster size for a volume depends on the volume size and the file system. The number of sectors from the Partition Boot Sector to the start of the first file allocation table, including the Partition Boot Sector. The minimum value is 1. If the value is greater than 1, it means that the bootstrap code is too long to fit completely in the Partition Boot Sector. 0x10 BYTE 0x02 Number of FATs The number of copies of the file allocation table on the volume. Typically, the value of this field is 2. 0x11 WORD 0x0002 Root Entries The total number of file name entries that can be stored in the root folder of the volume. One entry is always used as a Volume Label. Files with long filenames use up multiple entries per file. Therefore, the largest number of files in the root folder is typically 511, but you will run out of entries sooner if you use long filenames. 0x16 WORD 0xC900 Sectors per FAT Number of sectors occupied by each of the file allocation tables on the volume. By using this information, together with the Number of FATs and Reserved Sectors, you can compute where the root folder begins. By using the number of entries in the root folder, you can also compute where the user data area of the volume begins. 33

34 1 st determine the size of the reserved area 34

35 Size of the reserved area! 1 partition boot sector + additional reserved sectors 0x0E WORD 0x0100 Reserved Sectors The number of sectors from the Partition Boot Sector to the start of the first file allocation table, including the Partition Boot Sector. The minimum value is 1. If the value is greater than 1, it means that the bootstrap code is too long to fit completely in the Partition Boot Sector.! 0E-0Fh: Reserved sectors (little endian)! 01 00! = 1! Thus, reserved area has the partition boot sector only 35

36 2 nd determine the size of FAT area Region for FAT data structures FAT marks data blocks free or in-use Linked-list structure to manage files 36

37 The FAT area! FAT = File Allocation Table! There may exist multiple FAT copies on the FAT area 0x10 BYTE 0x02 Number of FATs The number of copies of the file allocation table on the volume. Typically, the value of this field is 2.! 10h: 2 => the FAT area has two FAT copies 37

38 Determining the FAT area boundaries 0x16 WORD 0xC900 Sectors per FAT Number of sectors occupied by each of the file allocation tables on the volume. By using this information, together with the Number of FATs and Reserved Sectors, you can compute where the root folder begins. By using the number of entries in the root folder, you can also compute where the user data area of the volume begins.! 16-17h: Size of FAT is 00 7Bh sectors (123 sectors)! Thus, Root Directory starts at sector 1h+7Bh+7Bh (sector 247)

39 3 rd determine the root directory area Region for the directory entries of the root folder (fixed location) 39

40 Layout of the root directory! Root directory keeps files names, first cluster, size, and other metadata 32 bytes (fixed) FAT # root directory entries (defined in BPB) 00# 01# 02# 03# 04# 05# 06# # Root Directory Format of a root directory entry Offset Length Meaning 0x00 8B File Name 0x08 3B Extension 0x0b 1B File Attribute 0x0c 10B Reserved 0x16 2B Time of last change 0x18 2B Date of last change 0x1a 2B First cluster 0x1c 4B File size 40

41 Determine the root directory boundary 0x11 WORD 0x0002 Root Entries The total number of file name entries that can be stored in the root folder of the volume. One entry is always used as a Volume Label. Files with long filenames use up multiple entries per file. Therefore, the largest number of files in the root folder is typically 511, but you will run out of entries sooner if you use long filenames.! 11-12h: Root entries (little endian)! 00 02! = 512 decimal! Number of sectors of the root directory! = number of root entries x root entry size in bytes / bytes per sector! = 512 x 32 / 512 = 32 sectors

42 4 th determine the data area Store file and directory data Each cluster is a fixed size Files may span multiple clusters 42

43 Implications of the FAT to the data area layout! # bits per FAT entry sets the max # of clusters # bits per entry! FAT16 is limited to 2 16 = clusters! If both max # of clusters and their max size (32KB) are reached, the largest drive is limited to 4GB! In practice, subtract 12 reserved cluster entries # entries 00# 01# 02# 03# 04# 05#! To index bigger partitions, it s common to increase cluster size! 260MB 511MB: 8KB (16 x 512 sectors)! 512MB 1023MB: 16KB (32 x 512 sectors) 06# # FAT 43

44 Determine the data area boundary 0x0D BYTE 0x08 Sectors per Cluster! 0Dh: 4 sectors per cluster! Number of sectors of the data area! = number of clusters x sectors per cluster! = (number of FAT entries - 2) x sectors per cluster! 2 because the cluster numbering starts in 2; cluster 0 and 1 are not used! = ((# sectors per FAT x sector size / FAT entry size) - 2) x sectors per cluster! = ((123 x 512 / 2) - 2) x 4 = sectors The number of sectors in a cluster. The default cluster size for a volume depends on the volume size and the file system. 44

45 Tools to help interpret the BPB! In TSK, use the fsstat tool! From the output of the tool we can draw the layout of the analyzed partition! On the right: output of a tool for a FAT FS unrelated from the previous example 45

46 FATx layouts compared 46

47 The layout of the NTFS file system 47

48 NTFS layout! Central paradigm: Everything is a file! Each byte of an NTFS file system belongs to a file! File system data and meta data are located in files, too! Similarly to FAT FS, files are chunked into clusters! Cluster 0 starts at the beginning of the file system! At the beginning of cluster 0 is the boot sector 48

49 Regions of an NTFS volume 49

50 ! NTFS boot sector: NTFS boot sector layout! In reality, the NTFS format program first 16 sectors for the boot sector and the bootstrap code 50

51 Overview of the Master File Table (MFT)! Some files can fit entirely within the MFT entry! Bigger files require allocation of extents 51

52 File system metadata files! NTFS stores the metadata across several metadata files! The MFT itself is a file system metadata file! The first 16 MFT entries are reserved for these files! Names of metadata files begin with $ and uppercase letters Entry # Name Description 0 $MFT Entry for the MFT itself 1 $MFTMirr Backup of the first MFT entries 2 $LogFile Journal for metadata changes 3 $Volume Contains information on labels, identifier and version of volume 4 $AttrDef Definition of the attributes used in the file system 5 \ Root directory of the file system 6 $Bitmap Allocation status of all clusters in the file system 7 $Boot Boot sector (key information about file system); starts in cluster 0 9 $Secure Definition of security descriptors of the file system (e.g., access control) 52

53 Internals of the Master File Table! In NTFS, information about all files and directories is contained in the Master File Table (MFT)! Every file and directory has at least one entry in MFT! Entries are 1KB in size! First 42 bytes is a header, the remaining bytes store attributes! Attributes: small data structures with a specific purpose! E.g., attribute to store the file's name, attribute to store the file's content 53

54 The Master File Table and attributes MFT entry Clusters Master File Table (MFT) # 100# 101# 102# 103# 104# 105# # $STANDARD_INFORMATION# resident* Creation#time:#,# Modification#time:#,#...# $DATA# non#resident* Clusters:#34F36#...# Attributes 33# 34# 35# 36# 54

55 From block pointers to extents! Idea: keep track of contiguous clusters called extents! Results in less block pointers for contiguous clusters! Suits well OS allocation policies for reducing fragmentation! Since it results in many seeks, thus low performance! NTFS keeps file s extents (aka cluster runs) in run lists Run list Example runlist with three runs of allocated clusters Cluster s logical file system address 55

56 Compression! NTFS provides compression on the file system level! Optional units:! Single attributes! Files! Folders! Entire volumes! Automatic decompression, if compressed data is read 56

57 Compression example 1. Broke up content into equal sized chunks (compression units) 2. Compress the non-zeroed chunks 3. Remove sparse regions (i.e., filled with zeroes) 4. Update the runlist of the compressed attribute (e.g., $DATA) 57

58 Encrypted attributes! NTFS provides the capability for attribute contents to be encrypted! In theory, any attribute could be encrypted, but Windows allows only $DATA attributes to be encrypted! When an attribute is encrypted, only the content is encrypted and the attribute header is not! A $LOGGED_UTILITY_STREAM attribute is created for the file; it contains the (encrypted) keys needed to decrypt the data 58

59 Alternate data streams! In NTFS, every file has a $DATA attribute, which contains the file content! A file can have more than one $DATA attribute! Additional attributes are named Alternate Data Streams (ADS)! The default $DATA attribute does not have an associated name associated; additional attributes must have one! E.g., normal.txt (default $DATA attribute)! E.g., normal.txt:my_ads_data.txt ($DATA attribute of an ADS) 59

60 How an ADS looks like in an MTF entry The alternate data stream The default $DATA attribute 60

61 Command line interface to ADS streams! When you access a file using it s default name you access the file s default $DATA attribute! Examples:! Create ADS streams to hide a text file and a picture! Show the content of ADS streams 61

62 Detection of Alternate Data Streams! Windows 7: dir /r! Other: Special Tools like lads.! Using TSK (e.g. fls). 62

63 Conclusions! For file system interpretation, one needs to be familiar with the studied file system and its respective layout! FAT, ExtX, and NTFS are particularly important for beginner forensic investigators for their popularity! Normally, interpretation of low-level file system data structures is aided by special-purpose forensic tools 63

64 References! Primary bibliography! Bryan Carrier, File System Analysis, 2005, Chapters 9 & 11 64

65 Next class! III.8 Case Studies on File System Analysis 65

Advanced Operating Systems

Advanced Operating Systems Advanced Operating Systems File Systems: File Allocation Table, Linux File System, NTFS Lecture 10 Case Studies of File Systems File Allocation Table (FAT) Unix File System Berkeley Fast File System Linux

More information

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

CSN08101 Digital Forensics. Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak CSN08101 Digital Forensics Lecture 8: File Systems Module Leader: Dr Gordon Russell Lecturers: Robert Ludwiniak Objectives Investigative Process Analysis Framework File Systems FAT NTFS EXT2/EXT3 last

More information

Vorlesung Computerforensik. Kapitel 7: NTFS-Analyse

Vorlesung Computerforensik. Kapitel 7: NTFS-Analyse Harald Baier FAT-Analyse / SS 2016 1/64 Vorlesung Computerforensik Kapitel 7: NTFS-Analyse Harald Baier Hochschule Darmstadt, CRISP SS 2016 Harald Baier FAT-Analyse / SS 2016 2/64 General information about

More information

File Systems Forensics

File Systems Forensics File Systems Forensics Section II. Basic Forensic Techniques and Tools CSF: Forensics Cyber-Security MSIDC, Spring 2017 Nuno Santos Summary! Analysis of file systems! Recovery of deleted files 2 Recall

More information

File Systems. Martin Děcký. DEPARTMENT OF DISTRIBUTED AND DEPENDABLE SYSTEMS

File Systems. Martin Děcký. DEPARTMENT OF DISTRIBUTED AND DEPENDABLE SYSTEMS File Systems Martin Děcký DEPARTMENT OF DISTRIBUTED AND DEPENDABLE SYSTEMS http://d3s.mff.cuni.cz/ CHARLES UNIVERSITY IN PRAGUE FACULTY OF MATHEMATICS AND PHYSICS MS-DOS FAT History 1977 1996 FAT32 FAT12

More information

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

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University File System Case Studies Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics The Original UNIX File System FFS Ext2 FAT 2 UNIX FS (1)

More information

Machine Language and System Programming

Machine Language and System Programming زبان ماشين وبرنامه نويسی سيستم Machine Language and System Programming جلسه دوازدھم دانشگاه صنعتی ھمدان پاييز 1389 Objectives Explain the purpose and structure of file systems Describe Microsoft file structures

More information

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

File System Concepts File Allocation Table (FAT) New Technology File System (NTFS) Extended File System (EXT) Master File Table (MFT) File System Concepts File Allocation Table (FAT) New Technology File System (NTFS) Extended File System (EXT) Master File Table (MFT) 1 FILE SYSTEM CONCEPTS: FILE ALLOCATION TABLE (FAT) Alex Applegate

More information

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

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University File System Case Studies Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics The Original UNIX File System FFS Ext2 FAT 2 UNIX FS (1)

More information

COMP091 Operating Systems 1. File Systems

COMP091 Operating Systems 1. File Systems COMP091 Operating Systems 1 File Systems Media File systems organize the storage space on persistent media such as disk, tape, CD/DVD/BD, USB etc. Disk, USB drives, and virtual drives are referred to as

More information

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

Operating Systems. Lecture File system implementation. Master of Computer Science PUF - Hồ Chí Minh 2016/2017 Operating Systems Lecture 7.2 - File system implementation Adrien Krähenbühl Master of Computer Science PUF - Hồ Chí Minh 2016/2017 Design FAT or indexed allocation? UFS, FFS & Ext2 Journaling with Ext3

More information

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

NTFS Recoverability. CS 537 Lecture 17 NTFS internals. NTFS On-Disk Structure NTFS Recoverability CS 537 Lecture 17 NTFS internals Michael Swift PC disk I/O in the old days: Speed was most important NTFS changes this view Reliability counts most: I/O operations that alter NTFS structure

More information

ECE 598 Advanced Operating Systems Lecture 17

ECE 598 Advanced Operating Systems Lecture 17 ECE 598 Advanced Operating Systems Lecture 17 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 3 April 2018 Announcements Project Topics Should have gotten response on project topic

More information

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

Windows File System. File allocation table (FAT) NTFS - New Technology File System. used in Windows 95, and MS-DOS Windows File System Windows File System File allocation table (FAT) used in Windows 95, and MS-DOS NTFS - New Technology File System 2 Key features of NTFS NTFS uses clusters(rather than sectors) as units

More information

File Systems. What do we need to know?

File Systems. What do we need to know? File Systems Chapter 4 1 What do we need to know? How are files viewed on different OS s? What is a file system from the programmer s viewpoint? You mostly know this, but we ll review the main points.

More information

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

Introduction to OS. File Management. MOS Ch. 4. Mahmoud El-Gayyar. Mahmoud El-Gayyar / Introduction to OS 1 Introduction to OS File Management MOS Ch. 4 Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Mahmoud El-Gayyar / Introduction to OS 1 File Management Objectives Provide I/O support for a variety of storage device

More information

File System Internals. Jo, Heeseung

File System Internals. Jo, Heeseung File System Internals Jo, Heeseung Today's Topics File system implementation File descriptor table, File table Virtual file system File system design issues Directory implementation: filename -> metadata

More information

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

The FAT File System. 1. FAT Overview. 2. Boot Sector, FAT, Root Directory, and Files The FAT F 䤀耄 le System CIS 24 Home http://www.c jump.com/cis24/cis24syllabus.htm The FAT File System 1. FAT Overview 2. Boot Sector, FAT, Root Directory, and Files 3. FAT File System Layout 4. FAT Clusters and Sectors 5. FAT,

More information

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

Guide to Computer Forensics and Investigations Fourth Edition. Chapter 6 Working with Windows and DOS Systems Guide to Computer Forensics and Investigations Fourth Edition Chapter 6 Working with Windows and DOS Systems Understanding Disk Drives Disk drives are made up of one or more platters coated with magnetic

More information

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

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University File System Case Studies Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics The Original UNIX File System FFS Ext2 FAT 2 UNIX FS (1)

More information

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

File System Internals. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University File System Internals Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics File system implementation File descriptor table, File table

More information

ECE 598 Advanced Operating Systems Lecture 14

ECE 598 Advanced Operating Systems Lecture 14 ECE 598 Advanced Operating Systems Lecture 14 Vince Weaver http://www.eece.maine.edu/~vweaver vincent.weaver@maine.edu 19 March 2015 Announcements Homework #4 posted soon? 1 Filesystems Often a MBR (master

More information

Computer Systems Laboratory Sungkyunkwan University

Computer Systems Laboratory Sungkyunkwan University File System Internals Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics File system implementation File descriptor table, File table

More information

File Systems and Volumes

File Systems and Volumes File Systems and Volumes Section II. Basic Forensic Techniques and Tools CSF: Forensics Cyber-Security MSIDC, Spring 2015 Nuno Santos Summary! Data organization in storage systems! File deletion and recovery!

More information

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

Chapter Two File Systems. CIS 4000 Intro. to Forensic Computing David McDonald, Ph.D. Chapter Two File Systems CIS 4000 Intro. to Forensic Computing David McDonald, Ph.D. 1 Learning Objectives At the end of this section, you will be able to: Explain the purpose and structure of file systems

More information

ECE 598 Advanced Operating Systems Lecture 18

ECE 598 Advanced Operating Systems Lecture 18 ECE 598 Advanced Operating Systems Lecture 18 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 5 April 2016 Homework #7 was posted Project update Announcements 1 More like a 571

More information

On-disk filesystem structures

On-disk filesystem structures On-disk filesystem structures Jan van Wijk Filesystem on-disk structures for FAT, HPFS, NTFS, JFS, EXTn and ReiserFS Presentation contents Generic filesystem architecture (Enhanced) FAT(32), File Allocation

More information

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

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission Filesystem Disclaimer: some slides are adopted from book authors slides with permission 1 Recap Directory A special file contains (inode, filename) mappings Caching Directory cache Accelerate to find inode

More information

NTFS Fundamentals. [Kevin s Attic for Security Research]

NTFS Fundamentals. [Kevin s Attic for Security Research] [] NTFS Fundamentals kevinkoo001@gmail.com DO NOT FORGET TO REMAIN THE ORIGINAL SOURCE WHEN YOU MAKE USE OF THIS MATERIAL OR (RE)DISTRIBUTE IT. What to Cover 1. Information with Tools 2. NTFS Layout 3.

More information

Frequently asked questions from the previous class survey

Frequently asked questions from the previous class survey CS 370: OPERATING SYSTEMS [FILE SYSTEMS] Shrideep Pallickara Computer Science Colorado State University L28.1 Frequently asked questions from the previous class survey How are files recovered if the drive

More information

FILE SYSTEMS. CS124 Operating Systems Winter , Lecture 23

FILE SYSTEMS. CS124 Operating Systems Winter , Lecture 23 FILE SYSTEMS CS124 Operating Systems Winter 2015-2016, Lecture 23 2 Persistent Storage All programs require some form of persistent storage that lasts beyond the lifetime of an individual process Most

More information

Operating Systems. Operating Systems Professor Sina Meraji U of T

Operating Systems. Operating Systems Professor Sina Meraji U of T Operating Systems Operating Systems Professor Sina Meraji U of T How are file systems implemented? File system implementation Files and directories live on secondary storage Anything outside of primary

More information

File Systems. CS 4410 Operating Systems. [R. Agarwal, L. Alvisi, A. Bracy, M. George, E. Sirer, R. Van Renesse]

File Systems. CS 4410 Operating Systems. [R. Agarwal, L. Alvisi, A. Bracy, M. George, E. Sirer, R. Van Renesse] File Systems CS 4410 Operating Systems [R. Agarwal, L. Alvisi, A. Bracy, M. George, E. Sirer, R. Van Renesse] The abstraction stack I/O systems are accessed through a series of layered abstractions Application

More information

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

makes floppy bootable o next comes root directory file information ATTRIB command used to modify name File Systems File system o Designed for storing and managing files on disk media o Build logical system on top of physical disk organization Tasks o Partition and format disks to store and retrieve information

More information

Understanding FAT12. Introduction to Computer Forensics. Kessler/Schirling

Understanding FAT12. Introduction to Computer Forensics. Kessler/Schirling Understanding FAT12 Introduction to Computer Forensics Kessler/Schirling Fall 2002 EXP 248 Project #3 You have a floppy disk image file Examine floppy to find an address and a password, and verify MD5

More information

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

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission 1 Filesystem Disclaimer: some slides are adopted from book authors slides with permission 1 Storage Subsystem in Linux OS Inode cache User Applications System call Interface Virtual File System (VFS) Filesystem

More information

15: Filesystem Examples: Ext3, NTFS, The Future. Mark Handley. Linux Ext3 Filesystem

15: Filesystem Examples: Ext3, NTFS, The Future. Mark Handley. Linux Ext3 Filesystem 15: Filesystem Examples: Ext3, NTFS, The Future Mark Handley Linux Ext3 Filesystem 1 Problem: Recovery after a crash fsck on a large disk can be extremely slow. An issue for laptops. Power failure is common.

More information

File System Implementation. Sunu Wibirama

File System Implementation. Sunu Wibirama File System Implementation Sunu Wibirama File-System Structure Outline File-System Implementation Directory Implementation Allocation Methods Free-Space Management Discussion File System Structure File

More information

Typical File Extensions File Structure

Typical File Extensions File Structure CS 355 Operating Systems File Systems File Systems A file is a collection of data records grouped together for purpose of access control and modification A file system is software responsible for creating,

More information

Lecture S3: File system data layout, naming

Lecture S3: File system data layout, naming Lecture S3: File system data layout, naming Review -- 1 min Intro to I/O Performance model: Log Disk physical characteristics/desired abstractions Physical reality Desired abstraction disks are slow fast

More information

Sources of Evidence. CSF: Forensics Cyber-Security. Part I. Foundations of Digital Forensics. Fall 2015 Nuno Santos

Sources of Evidence. CSF: Forensics Cyber-Security. Part I. Foundations of Digital Forensics. Fall 2015 Nuno Santos Sources of Evidence Part I. Foundations of Digital Forensics CSF: Forensics Cyber-Security Fall 2015 Nuno Santos Summary Reasoning about sources of evidence Data representation and interpretation Number

More information

File system internals Tanenbaum, Chapter 4. COMP3231 Operating Systems

File system internals Tanenbaum, Chapter 4. COMP3231 Operating Systems File system internals Tanenbaum, Chapter 4 COMP3231 Operating Systems Architecture of the OS storage stack Application File system: Hides physical location of data on the disk Exposes: directory hierarchy,

More information

File Systems: Fundamentals

File Systems: Fundamentals File Systems: Fundamentals 1 Files! What is a file? Ø A named collection of related information recorded on secondary storage (e.g., disks)! File attributes Ø Name, type, location, size, protection, creator,

More information

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

Long-term Information Storage Must store large amounts of data Information stored must survive the termination of the process using it Multiple proces File systems 1 Long-term Information Storage Must store large amounts of data Information stored must survive the termination of the process using it Multiple processes must be able to access the information

More information

COMP 530: Operating Systems File Systems: Fundamentals

COMP 530: Operating Systems File Systems: Fundamentals File Systems: Fundamentals Don Porter Portions courtesy Emmett Witchel 1 Files What is a file? A named collection of related information recorded on secondary storage (e.g., disks) File attributes Name,

More information

Da-Wei Chang CSIE.NCKU. Professor Hao-Ren Ke, National Chiao Tung University Professor Hsung-Pin Chang, National Chung Hsing University

Da-Wei Chang CSIE.NCKU. Professor Hao-Ren Ke, National Chiao Tung University Professor Hsung-Pin Chang, National Chung Hsing University Chapter 11 Implementing File System Da-Wei Chang CSIE.NCKU Source: Professor Hao-Ren Ke, National Chiao Tung University Professor Hsung-Pin Chang, National Chung Hsing University Outline File-System Structure

More information

File System Implementation

File System Implementation File System Implementation Jinkyu Jeong (jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu SSE3044: Operating Systems, Fall 2016, Jinkyu Jeong (jinkyu@skku.edu) Implementing

More information

INSTITUTO SUPERIOR TÉCNICO

INSTITUTO SUPERIOR TÉCNICO INSTITUTO SUPERIOR TÉCNICO DEPARTAMENTO DE ENGENHARIA INFORMÁTICA FORENSICS CYBER-SECURITY MEIC, METI Lab Guide II Evidence Examination 2015/2016 nuno.m.santos@tecnico.ulisboa.pt 1 Introduction This guide

More information

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

File System Implementation. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University File System Implementation Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Implementing a File System On-disk structures How does file system represent

More information

CS3600 SYSTEMS AND NETWORKS

CS3600 SYSTEMS AND NETWORKS CS3600 SYSTEMS AND NETWORKS NORTHEASTERN UNIVERSITY Lecture 11: File System Implementation Prof. Alan Mislove (amislove@ccs.neu.edu) File-System Structure File structure Logical storage unit Collection

More information

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

Segmentation with Paging. Review. Segmentation with Page (MULTICS) Segmentation with Page (MULTICS) Segmentation with Page (MULTICS) Review Segmentation Segmentation Implementation Advantage of Segmentation Protection Sharing Segmentation with Paging Segmentation with Paging Segmentation with Paging Reason for the segmentation with

More information

FILE SYSTEM IMPLEMENTATION. Sunu Wibirama

FILE SYSTEM IMPLEMENTATION. Sunu Wibirama FILE SYSTEM IMPLEMENTATION Sunu Wibirama File-System Structure Outline File-System Implementation Directory Implementation Allocation Methods Free-Space Management Discussion File-System Structure Outline

More information

4/19/2016. The ext2 file system. Case study: ext2 FS. Recap: i-nodes. Recap: i-nodes. Inode Contents. Ext2 i-nodes

4/19/2016. The ext2 file system. Case study: ext2 FS. Recap: i-nodes. Recap: i-nodes. Inode Contents. Ext2 i-nodes /9/ The ext file system Case study: ext FS Second Extended Filesystem The main Linux FS before ext Evolved from Minix filesystem (via Extended Filesystem ) Features (,, and 9) configured at FS creation

More information

File System: Interface and Implmentation

File System: Interface and Implmentation File System: Interface and Implmentation Two Parts Filesystem Interface Interface the user sees Organization of the files as seen by the user Operations defined on files Properties that can be read/modified

More information

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

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 Why a file system? Why a file system There is a general need for long-term and shared data storage: need to store large amount of information persistent storage (outlives process and system reboots) concurrent

More information

File Systems: Fundamentals

File Systems: Fundamentals 1 Files Fundamental Ontology of File Systems File Systems: Fundamentals What is a file? Ø A named collection of related information recorded on secondary storage (e.g., disks) File attributes Ø Name, type,

More information

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

CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed. CHAPTER 11: IMPLEMENTING FILE SYSTEMS (COMPACT) By I-Chen Lin Textbook: Operating System Concepts 9th Ed. File-System Structure File structure Logical storage unit Collection of related information File

More information

Project 3 Help Document

Project 3 Help Document Project 3 Help Document Hard disk drive structure Since the FAT32 file system is originally designed for hard disk drives, it is necessary to understand the structure of a hard drive because FAT32 organize

More information

THOMAS RUSSELL, Information Technology Teacher

THOMAS RUSSELL, Information Technology Teacher THOMAS RUSSELL, Information Technology Teacher Historical/Conceptual After installing the hard drive it needs to be partitioned. Partitioning is the process of electronically subdividing the physical hard

More information

Example Implementations of File Systems

Example Implementations of File Systems Example Implementations of File Systems Last modified: 22.05.2017 1 Linux file systems ext2, ext3, ext4, proc, swap LVM Contents ZFS/OpenZFS NTFS - the main MS Windows file system 2 Linux File Systems

More information

File Systems. File system interface (logical view) File system implementation (physical view)

File Systems. File system interface (logical view) File system implementation (physical view) File Systems File systems provide long-term information storage Must store large amounts of data Information stored must survive the termination of the process using it Multiple processes must be able

More information

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

Computer Forensics: Investigating Data and Image Files, 2nd Edition. Chapter 3 Forensic Investigations Using EnCase Computer Forensics: Investigating Data and Image Files, 2nd Edition Chapter 3 Forensic Investigations Using EnCase Objectives After completing this chapter, you should be able to: Understand evidence files

More information

Main Points. File layout Directory layout

Main Points. File layout Directory layout File Systems Main Points File layout Directory layout File System Design Constraints For small files: Small blocks for storage efficiency Files used together should be stored together For large files:

More information

OPERATING SYSTEMS CS136

OPERATING SYSTEMS CS136 OPERATING SYSTEMS CS136 Jialiang LU Jialiang.lu@sjtu.edu.cn Based on Lecture Notes of Tanenbaum, Modern Operating Systems 3 e, 1 Chapter 4 FILE SYSTEMS 2 File Systems Many important applications need to

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2017 Lecture 25 File Systems Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 FAQ Q 2 Data and Metadata

More information

Hong Kong Polytechnic University Department of Electronic and Information Engineering. Experiment On DOS File system

Hong Kong Polytechnic University Department of Electronic and Information Engineering. Experiment On DOS File system DOSFS/CC/v1 Hong Kong Polytechnic University Department of Electronic and Information Engineering Experiment On DOS File system Objectives : To study how an OS manages its file system in a floppy disk.

More information

ECE 650 Systems Programming & Engineering. Spring 2018

ECE 650 Systems Programming & Engineering. Spring 2018 ECE 650 Systems Programming & Engineering Spring 2018 File Systems Tyler Bletsch Duke University Slides are adapted from Brian Rogers (Duke) File Systems Disks can do two things: read_block and write_block

More information

Table 12.2 Information Elements of a File Directory

Table 12.2 Information Elements of a File Directory Table 12.2 Information Elements of a File Directory Basic Information File Name File Type File Organization Name as chosen by creator (user or program). Must be unique within a specific directory. For

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Spring 2018 Lecture 22 File Systems Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 Disk Structure Disk can

More information

Main Points. File layout Directory layout

Main Points. File layout Directory layout File Systems Main Points File layout Directory layout File System Design Constraints For small files: Small blocks for storage efficiency Files used together should be stored together For large files:

More information

Figure 1-1 Example of File System Layout

Figure 1-1 Example of File System Layout SATA-IP exfat reference design manual Rev1.1 5-Sep-13 1 Introduction The exfat file system is the successor to FAT32 in the FAT family of file systems. It incorporates several improvements over FAT32 such

More information

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

File System Internals. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University File System Internals Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics File system implementation File descriptor table, File table

More information

Microsoft File Allocation Table

Microsoft File Allocation Table Microsoft File Allocation Table CSC362, Information Security originally appeared in late 1970s for small disks with simple folder structures uses a FAT to index files (naturally) the original FAT- 12 gave

More information

Roadmap for This Lecture

Roadmap for This Lecture File Systems (I) 2 Roadmap for This Lecture File Systems supported by Windows NTFS Design Goals File System Driver Architecture NTFS Operation Windows File System On-Disk Structure 3 Windows File System

More information

File Systems. ECE 650 Systems Programming & Engineering Duke University, Spring 2018

File Systems. ECE 650 Systems Programming & Engineering Duke University, Spring 2018 File Systems ECE 650 Systems Programming & Engineering Duke University, Spring 2018 File Systems Abstract the interaction with important I/O devices Secondary storage (e.g. hard disks, flash drives) i.e.

More information

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).

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). Understanding FAT 12 You need to address many details to solve this problem. The exercise is broken down into parts to reduce the overall complexity of the problem: Part A: Construct the command to list

More information

Hard Disk Organization. Vocabulary

Hard Disk Organization. Vocabulary Hard Disk Organization Vocabulary Platter: one ceramic plate, covered with magnetizable film where the bits are actually stored. Both sides of a platter can be used. Increasing the number of platters is

More information

CS609 Final Term Solved MCQs with References Without Repetitions 14/02/2013

CS609 Final Term Solved MCQs with References Without Repetitions 14/02/2013 1 CS609 Final Term Solved MCQs with References Without Repetitions 14/02/2013 In BPB, root directory is saved in. (BIOS parameter block) Cluster#0 Cluster#1 (Ref) Cluster#2 Cluster#3 In NTFS, total sizes

More information

UNIX File Systems. How UNIX Organizes and Accesses Files on Disk

UNIX File Systems. How UNIX Organizes and Accesses Files on Disk UNIX File Systems How UNIX Organizes and Accesses Files on Disk Why File Systems File system is a service which supports an abstract representation of the secondary storage to the OS A file system organizes

More information

Case study: ext2 FS 1

Case study: ext2 FS 1 Case study: ext2 FS 1 The ext2 file system Second Extended Filesystem The main Linux FS before ext3 Evolved from Minix filesystem (via Extended Filesystem ) Features Block size (1024, 2048, and 4096) configured

More information

Preview. COSC350 System Software, Fall

Preview. COSC350 System Software, Fall Preview File System File Name, File Structure, File Types, File Access, File Attributes, File Operation Directories Directory Operations File System Layout Implementing File Contiguous Allocation Linked

More information

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

Chapter 11: Implementing File Systems. Operating System Concepts 8 th Edition, Chapter 11: Implementing File Systems, Silberschatz, Galvin and Gagne 2009 Chapter 11: Implementing File Systems File-System Structure File-System Implementation Directory Implementation Allocation Methods

More information

412 Notes: Filesystem

412 Notes: Filesystem 412 Notes: Filesystem A. Udaya Shankar shankar@cs.umd.edu December 5, 2012 Contents 1 Filesystem interface 2 2 Filesystem implementation 3 3 FAT (mostly from Wikepedia) 5 4 UFS (mostly from Wikepedia)

More information

File system internals Tanenbaum, Chapter 4. COMP3231 Operating Systems

File system internals Tanenbaum, Chapter 4. COMP3231 Operating Systems File system internals Tanenbaum, Chapter 4 COMP3231 Operating Systems Summary of the FS abstraction User's view Hierarchical structure Arbitrarily-sized files Symbolic file names Contiguous address space

More information

File System Implementation

File System Implementation File System Implementation Last modified: 16.05.2017 1 File-System Structure Virtual File System and FUSE Directory Implementation Allocation Methods Free-Space Management Efficiency and Performance. Buffering

More information

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University

Che-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University Che-Wei Chang chewei@mail.cgu.edu.tw Department of Computer Science and Information Engineering, Chang Gung University Chapter 10: File System Chapter 11: Implementing File-Systems Chapter 12: Mass-Storage

More information

Case study: ext2 FS 1

Case study: ext2 FS 1 Case study: ext2 FS 1 The ext2 file system Second Extended Filesystem The main Linux FS before ext3 Evolved from Minix filesystem (via Extended Filesystem ) Features Block size (1024, 2048, and 4096) configured

More information

we are here I/O & Storage Layers Recall: C Low level I/O Recall: C Low Level Operations CS162 Operating Systems and Systems Programming Lecture 18

we are here I/O & Storage Layers Recall: C Low level I/O Recall: C Low Level Operations CS162 Operating Systems and Systems Programming Lecture 18 I/O & Storage Layers CS162 Operating Systems and Systems Programming Lecture 18 Systems April 2 nd, 2018 Profs. Anthony D. Joseph & Jonathan Ragan-Kelley http://cs162.eecs.berkeley.edu Application / Service

More information

EI 338: Computer Systems Engineering (Operating Systems & Computer Architecture)

EI 338: Computer Systems Engineering (Operating Systems & Computer Architecture) EI 338: Computer Systems Engineering (Operating Systems & Computer Architecture) Dept. of Computer Science & Engineering Chentao Wu wuct@cs.sjtu.edu.cn Download lectures ftp://public.sjtu.edu.cn User:

More information

CS 318 Principles of Operating Systems

CS 318 Principles of Operating Systems CS 318 Principles of Operating Systems Fall 2018 Lecture 16: Advanced File Systems Ryan Huang Slides adapted from Andrea Arpaci-Dusseau s lecture 11/6/18 CS 318 Lecture 16 Advanced File Systems 2 11/6/18

More information

C13: Files and Directories: System s Perspective

C13: Files and Directories: System s Perspective CISC 7310X C13: Files and Directories: System s Perspective Hui Chen Department of Computer & Information Science CUNY Brooklyn College 4/19/2018 CUNY Brooklyn College 1 File Systems: Requirements Long

More information

CS 111. Operating Systems Peter Reiher

CS 111. Operating Systems Peter Reiher Operating System Principles: File Systems Operating Systems Peter Reiher Page 1 Outline File systems: Why do we need them? Why are they challenging? Basic elements of file system design Designing file

More information

CS 318 Principles of Operating Systems

CS 318 Principles of Operating Systems CS 318 Principles of Operating Systems Fall 2017 Lecture 16: File Systems Examples Ryan Huang File Systems Examples BSD Fast File System (FFS) - What were the problems with the original Unix FS? - How

More information

A Formal Logic for Digital Investigations: A Case Study Using BPB Modifications.

A Formal Logic for Digital Investigations: A Case Study Using BPB Modifications. A Formal Logic for Digital Investigations: A Case Study Using BPB Modifications. Abstract I. Mitchell Middlesex University, UK A Formal Logic is developed and the following presented: i) Notation for Formal

More information

Chapter 11: File System Implementation

Chapter 11: File System Implementation Chapter 11: File System Implementation File System Structure File System Implementation Directory Implementation Allocation Methods Free-Space Management Efficiency and Performance Recovery Log-Structured

More information

we are here Page 1 Recall: How do we Hide I/O Latency? I/O & Storage Layers Recall: C Low level I/O

we are here Page 1 Recall: How do we Hide I/O Latency? I/O & Storage Layers Recall: C Low level I/O CS162 Operating Systems and Systems Programming Lecture 18 Systems October 30 th, 2017 Prof. Anthony D. Joseph http://cs162.eecs.berkeley.edu Recall: How do we Hide I/O Latency? Blocking Interface: Wait

More information

mode uid gid atime ctime mtime size block count reference count direct blocks (12) single indirect double indirect triple indirect mode uid gid atime

mode uid gid atime ctime mtime size block count reference count direct blocks (12) single indirect double indirect triple indirect mode uid gid atime Recap: i-nodes Case study: ext FS The ext file system Second Extended Filesystem The main Linux FS before ext Evolved from Minix filesystem (via Extended Filesystem ) Features (4, 48, and 49) configured

More information

File systems Computer Forensics

File systems Computer Forensics Mag. iur. Dr. techn. Michael Sonntag File systems Computer Forensics E-Mail: sonntag@fim.uni-linz.ac.at http://www.fim.uni-linz.ac.at/staff/sonntag.htm Institute for Information Processing and Microprocessor

More information

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

File Directories Associated with any file management system and collection of files is a file directories The directory contains information about 1 File Management 2 File Directories Associated with any file management system and collection of files is a file directories The directory contains information about the files, including attributes, location

More information

File Management. Ezio Bartocci.

File Management. Ezio Bartocci. File Management Ezio Bartocci ezio.bartocci@tuwien.ac.at Cyber-Physical Systems Group Institute for Computer Engineering Faculty of Informatics, TU Wien Motivation A process can only contain a limited

More information