Computer Forensics Hard Drive Format.

Slides:



Advertisements
Similar presentations
Chapter 12: File System Implementation
Advertisements

Operating Systems File Management.
Chapter 4 : File Systems What is a file system?
Computer System Basics 2 Hard Drive Storage & File Partitions Computer Forensics BACS 371.
SEMINAR ON FILE SLACK AND DISK SLACK
BACS 371 Computer Forensics
Computer Forensics Hard Drive Format.
Computer Forensics NTFS File System.
Chapter 10: File-System Interface
The FAT File System CSC 414. Objectives  Understand the structure and components of the FAT (12/16/32) File Systems  Understand what happens when a.
Digital Forensics Module 11 CS /26/2004Module 112 Outline of Module #11 Overview of Windows file systems Overview of ProDiscover Overview of UNIX.
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.
Ceng Operating Systems
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
Implementing Hard Drives Chapter 10
Computer Forensics DOS Partitioning. Partitioning Practices  We separate partition practices into those used by Personal Computers:  DOS  Apple Servers.
Chapter Sixteen Data Recovery and Fault Tolerance.
FAT Structure. File Allocation Table (FAT) File Systems Used with all flavors of Windows Supported by all Windows and UNIX varieties Used in flash cards.
Mastering Windows Network Forensics and Investigation Chapter 7: Windows File Systems.
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
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
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.
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.
Windows NTFS Introduction to Operating Systems: Module 15.
The disk surface is divided into tracks. into tracks. 1.
ENGI 3655 Lab Sessions 1Richard Khoury.  Linked Allocation ◦ Section Richard Khoury2.
Investigation of a USB Storage Device (FAT16)
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.
Computer Forensics SEED Overview Computer Forensics Reconstructs events from digital traces on a device such as Computer Router Switch Cell-phone,
Operating System Concepts and Techniques Lecture 18 Information management-2* FFS, UFS2, NTFS M. Naghibzadeh Reference M. Naghibzadeh, Operating System.
1 Floppy Drive Formatting ©Richard Goldman February, 2001.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
BOOT SECTOR, RDE AND FAT ANALYSIS AND STUDY. FLOPPY CONSTRUCTION 1.Write - Protect Notch. 2.Hub. 3.Shutter. 4.Outer Jacket. 5.Protective Woolen Film.
Chapter 7 Volume versus Partition. Cylinder, Head, and Sector (CHS) Hard or fixed disks store information on a revolving platter of metal or glass coated.
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.
Disk storage systems Question#1 (True/False) A track is divided into multiple units called sectors.
Chapter 8 File Systems FAT 12/16/32. Defragmentation Defrag a hard drive – Control Panel  System and Security  Administration tools  Defrag hard drive.
BACS 371 Computer Forensics
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
BITS Pilani Pilani Campus Pawan Sharma Lecture ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
Master Boot Record (MBR)
Day 28 File System.
UMBC CMSC 421 Spring 2017 The FAT Filesystem.
Computer Forensics NTFS File System.
Disks and Formatting Ch 3.
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
File System Structure How do I organize a disk into a file system?
A “Walk Through” Experiment
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Windows XP File Systems
Introduction to Computers
CS-401 Computer Architecture Assembly Language Programming
File Managements.
Booting Up 15-Nov-18 boot.ppt.
File Systems Implementation
FILE SYSTEM ANALYSIS Dr Fudong Li
Files Management – The interfacing
Computer Forensics NTFS File System.
Disk Structure Analysis
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
GUID Partition Table Unified Extensible Firmware Interface (UEFI)
Department of Computer Science
FAT File System.
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Computer Forensics Hard Drive Format

Hard Drive Partitioning Boot process starts in ROM. Eventually, loads master boot record from booting device. MBR located at well-known location.

Hard Drive Partitioning (Windows Only) MBR located always in the first sector of booting device. Cylinder 0, Head 0, Sector 1

MBR Structure First part bootstrap program. Is loaded into memory, then relocates itself in order to make room for another copy. Starting at offset 0x1be 16B partition table Last two bytes of sector are 0x55 and 0xaa.

Partition Table Entry Byte 1: active (0x80) or inactive (0x00) Bytes 2-3: Start of Partition Byte 4: Partition Type Bytes 5-7: End of Partition Bytes 8-12: LBA address of start sector relative to start of disk in little endian Bytes 13-16: Number of sectors in the partition

Partition Table Example 00 01 01 00 DE FE 3F 04 3F 00 00 00 86 39 01 00 Byte 1: 00 = inactive (not bootable) Bytes 2-3: Split up as | h7-h0 | c9 c8 s5-s0 | c7-c0 | In binary, we have 0000 0001 0000 0001 0000 So: H=1, C = 0, S = 0x10 = 16.

Partition Table Example 00 01 01 00 DE FE 3F 04 3F 00 00 00 86 39 01 00 Bytes 2-3: Split up as | h7-h0 | c9 c8 s5-s0 | c7-c0 | In binary, we have 0000 0001 0000 0001 0000 So: H=1, C = 0, S = 0x10 = 16.

Partition Table Example 00 01 01 00 DE FE 3F 04 3F 00 00 00 86 39 01 00 Bytes 4: Partition Type 0xDE. Look this one up in a table. It is a Dell PowerEdge Server utilities (FAT fs)

Partition Table Example 00 01 01 00 DE FE 3F 04 3F 00 00 00 86 39 01 00 Bytes 5-7: End of Partition Split up as | h7-h0 | c9 c8 s5-s0 | c7-c0 | 1111 1110 0011 1111 0000 0100 So: h=0xE, c=0x04, s = 0x1f

Partition Table Example 00 01 01 00 DE FE 3F 04 3F 00 00 00 86 39 01 00 Bytes 8-12: LBA 3F 00 00 00 in Little Endian That is 00 00 00 3F is the real start LBA Go to Sector 63 and find indeed the FAT boot sector.

Partition Table Example 00 01 01 00 DE FE 3F 04 3F 00 00 00 86 39 01 00 Bytes 13-16: Number of Sectors in the partition (in Little Endian). Value is 0X 86 39 01 00. Translate into true value: 0x 00 01 39 86 = 80262 sectors

Partition Table Example We have a Dell partition of size 40MB. This partition is invisible to Windows and could be used to hide data. Dell uses this area to help with recovery from OS disasters.

Master Boot Record By creating a partition and then editing the MBR I can create hidden partitions. The data on these hidden partitions is not visible from Windows.

Master Boot Record The partitions do not have to fill up the disk completely, there can be unused sectors (which could contain hidden data.)

Extended Partitions Overcome the four partition limit.

Extended Partitions Marked by a partition code of 0x05 or 0x0f. First sector of an extended partition contains a partition table with up to two entries. Extended partition is a container for secondary extended partition.

Extended Partitions First sector contains partition table, structured like MBR Entries are 16B with the same structure First entry is for primary extended partition. Optional second entry is for secondary, extended partition.

Extended Partitions Primary extended partition contains the secondary extended partition.

Extended Partitions

Unassigned sectors Many sectors on a disk are not assigned to a partition. Cannot be seen from OS. Good hiding place for a virus.

64b Future Itanium uses 64b. Completely different structure.

FAT “File Allocation Table” gives the name. 3 different varieties, FAT12, FAT16, FAT32 in order to accommodate growing disk capacity Tightly packed data structure

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

FAT Boot Sector Jump instruction (EB 34 90) OEM Manufacturer name BIOS Parameter Block (BPB) Extended BPB Bootstrap code End of Sector Marker (in reality a signature)

BPB Learn how to read it. Field Definition in LNs Lab now.

BPB There are utilities that translate the data

BPB The data allows us to draw a picture of the partition:

FAT File System Root directory File Allocation Table (FAT) 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.

Cluster Size Large clusters waste disk space because only a single file can live in a cluster. Small clusters make it hard to allocate clusters to files contiguously and lead to large FAT.

FAT Table To save space, limit size of entry. That limits total number of clusters. FAT 12: 12 bit FAT entries FAT 16: 16 bit FAT entries FAT 32: 32 bit FAT entries

FAT Table Entry FAT 12 FAT 16 Meaning 000 0000 available 001 0001 not used FF0 FFF0-FFF6 reserved FF8-FFF FFF7 bad cluster 0xhhh 0xhhhh next cluster used by file

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

Root Directory Entries Offset Length Meaning 0x00 8B File Name 0x08 3B Extension 0x0b 1B File Attribute 0x0c 10B Reserved 0x16 2B Time of last change 0x18 Date of last change 0x1a First cluster 0x1c 4B File size.

Root Directory Entries File Name: First character means 0x00: Entry never used, end of directory 0xe5: File deleted 0x2e: Directory

Root Directory Entries File Attribute

Root Directory Entries Hidden file: not displayed. System file: special treatment for deletion. Volume: Name of the volume if this bit is set. Rest of the name is in the reserved portion. Subdirectory: File is not a file but a directory (looks like the root directory).

Root Directory Entries Time and Date of Access

FAT Deleted files / directories with entries intact can be easily reconstructed. If entry is overwritten, then pieces might be found in the FAT. Large storage devices make it impossible to do it without a tool.

FAT 32 Root Directory Uses 4B to store the files first cluster. Adds access date and modification date and time Modification, Access, Creation (MAC) give important hints during an investigation

FAT 32 Root Directory 0x00 8B File Name, padded with zeroes 0x08 3B 3 byte extension 0x0b 1B File attribute 0x0c Reserved 0x0d Millisecond stamp at file creation time. 0x0e 2B File creation time. 0x10 File creation date. 0x12 File access date. 0x14 High word of file’s first cluster 0x16 Last write time. 0x18 Last write date. 0x1a Low word of the file’s first cluster 0x1c 4B File size in bytes.

Long File Names Support for long file names needs to be backwards compatible. Long file names should be stored next to the corresponding short entry. Disk utilities should not misdiagnose long file name entries as faulty Unicode support

Long File Name Entries Encode long file name in several long entries Precede immediately short entry Have entry order number. Last entry order number is or’d with 0x40 to mark it.

Long File Name Support Create a 8B short file name from long one. Calculate checksum from short name and store in all long records

Long File Name Entries 0x00 1B Entry order number. 0x01 10B Characters 1-5 of name entry. 0x0b File Attribute. MUST be 0F. 0x0c Should be 00. 0x0d Checksum of short file name. 0x0e 12B Characters 6-11 of name entry. 0x1a 2B MUST be 00 00 to be compatible. 0x1c 4c Characters 12-13 of name entry.

Long File Name Entries Entry Order Number Attribute

Subdirectories Are files with the same structure as root directory. Contain two special entries .. Has name “..” and refers to parent directory . Has name “.” and refers to itself.