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.

Slides:



Advertisements
Similar presentations
Windows File Systems CGS2564. Who Cares? C:\Documents\Taxes\Tax04.DOC.
Advertisements

Computer Forensic Analysis By Aaron Cheeseman Excerpt from Investigating Computer-Related Crime By Peter Stephenson (2000) CRC Press LLC - Computer Crimes.
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.
Text Searches Slack Space Unallocated Space
SEMINAR ON FILE SLACK AND DISK SLACK
BACS 371 Computer Forensics
Computer Forensics BACS 371
File System Analysis.
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)
Digital Forensics Module 11 CS /26/2004Module 112 Outline of Module #11 Overview of Windows file systems Overview of ProDiscover Overview of UNIX.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
Connecting with Computer Science, 2e
1 File Management in Representative Operating Systems.
1 Friday, July 07, 2006 “Vision without action is a daydream, Action without a vision is a nightmare.” - Japanese Proverb.
Wince File systems. File system on embedded File system choice on embedded is important –File system size can be an issue –Different media are used –
1 CSCD 496 Computer Forensics Lecture 7 File Systems – Windows Winter 2010.
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
Computer System Basics 2 Hard Drive Storage & File Partitions Computer Forensics BACS 371.
Implementing Hard Drives Chapter 10
Chapter Sixteen Data Recovery and Fault Tolerance.
Objectives Learn what a file system does
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.
LIS508 lecture 5: storage devices Thomas Krichel
BACS 371 Computer Forensics
 FILE S SYSTEM  DIFFERENT FILE SYSTEMS  FILE SYSTEM COMPONENTS  FILE OPERATIONS  LOG STRUCTERD FILE SYSTEM  FILE EXAMPLES.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
1Fall 2008, Chapter 11 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more.
Lecture 9: The FAT and VFAT Filesystems 6/16/2003 CSCE 590 Summer 2003.
Mastering Windows Network Forensics and Investigation Chapter 7: Windows File Systems.
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 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.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Investigation of a USB Storage Device (FAT16)
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
The Functions of Operating Systems Desktop PC Operating Systems.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
DISK THEORY. Disk Theory n How information is stored on disk n How we can take advantage of that when bad things happen.
1 Floppy Drive Formatting ©Richard Goldman February, 2001.
OPERATING SYSTEMS Frans Sanen.  Analyze a FAT file system manually  FAT12 first and simplest version  Still used on smaller disks (e.g. floppies) 
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.
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.
File System Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314.
BITS Pilani Pilani Campus Pawan Sharma Lecture ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
Senior 3 Computer Studies
Master Boot Record (MBR)
Working with Disks Lesson 4.
Visit for more Learning Resources
Windows XP File Systems
Introduction to Computers
File Management.
File Managements.
Forensic Concept of Data
FILE SYSTEM ANALYSIS Dr Fudong Li
COMP1321 Digital Infrastructures
Disk Structure Analysis
Hard disk basics Prof:R.CHARLES SILVESTER JOE Departmet of Electronics St.Joseph’s College,Trichy.
FAT File System.
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

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 ● 1 ASCII Character ● Letters ● Word is a collection of letters/characters ● Is just string of bits.

Hard Drive Geometry Platter with 2 heads Top and Bottom Sector Track Second platter

Tracks, Heads, Sectors ● Heads, Tracks and Sectors – Head is one side of a platter ● Drives usually have 1 or 2 platters, hence 1 – 4 heads – Track is an narrow ring around a platter ● There upwards of 20,000 tracks per inch of platter. ● 3.5” hard drive has 1.2” of platter = 24,000 tracks – Sector is a pie shaped piece of the platter. ● 1” of track can hold about 200,000 bits of information ● 10 – 40 Gigabits per platter

Sectors ● Each sector has a unique address on the hard drive. ● Each sector is exactly 512 bytes. ● Minimum amount that can be read or written.

Time and Technology ● HDD Addressing – Olden days: head/sector/track ● Worked for small drives – Today: LBA – Logical Block Address ● Capable of addressing Tera bytes of dat

Read – Write ● The computer can access only one sector at a time. ● Must read or write exactly 1 sector (512 bytes). ● To change 1 character in a document: ● Read 1 sector ● Change the character ● Write 1 sector

Logical Structure of a HDD ● The hard drive can be subdivided into partitions or volumes. ● Partition structure is important for the integrity of the drive. ● It can be analyzed by WinHex. ● But not for this course

Partitions Partition 1Partition 2 Partition Table Extended Partition

Windows – Drives ● In Windows drives are specified by a letter followed by a colon. ● C:, D:, etc. ● Each drive is either a partition or an actual hard drive. ● Often referred to as logical drives.

Files ● A File is data that is related, as such it is a logical grouping of data. ● Files are allocated storage space on a drive when it is created. ● As a file is used it is allocated more space as needed. ● File names usually have a first name that is descriptive of its contents. ● And a second name, the file extension, that indicates the type of file, such as.txt,.pdf,.exe, etc.

Clusters ● Space is allocated to a file one cluster at a time – A cluster is a fixed number of sectors ● Must be a power of 2 (1,2,4,8,... 64) – Unused sectors retain the data that was on them prior to allocation – A cluster is the minimum file allocation unit

Disk Storage Review ● Data is stored on disks one entire sector at a time – A sector is usually 512 bytes – If you use only one byte, the system still provides the other 511 bytes for you – A sector is the minimum size read from, or written to, a disk – A sector is the minimum I/O unit

Clusters Sector 1 Sector 2 Sector 3 Sector 4 Cluster 1 Sector 1 Sector 2 Sector 3 Sector 4 Cluster 2

File Data Sector 1 Sector 2 Sector 3 Sector 4 Cluster 1 Sector 1 Sector 2 Sector 3 Sector 4 Cluster 2

Slack ● Slack is the space allocated to a file, but unused – Space at the end of a sector that remains unused by the file – Sectors allocated to the file that the file hasn’t yet used ● Slack space often contains useful evidence – Unused bytes in an allocated sector are less useful – Unused sectors in an allocated cluster retain their original contents and are very useful ● Current operating systems write 0’s in the slack space per sector, often leaving the residual data in the unused sectors in the allocated cluster.

File Data Sector 1 Sector 2 Sector 3 Sector 4 Cluster 1 Sector 1 Sector 2 Sector 3 Sector 4 Cluster 2 Slack Space

Unallocated Clusters ● Many clusters on a modern hard drive are unallocated ● Some have never contain data ● Unallocated clusters may have been allocated earlier though and since been deleted –These clusters retain their data until they are reallocated to a new file –Deleted files are still recoverable!

File Systems ● High-level formatting creates file system data structures –Root directory –Data that tracks which clusters are unused, allowing the OS to find available clusters quickly File Allocation Table (FAT) on older Windows systems $Bitmap in the Master File Table (MFT) on newer Windows –Exact details depend on operating system

FAT ● FAT – File Allocation Table ● Keeps a table of clusters and connects the ones used for a file and which are unallocated. ● Also keeps a directory in the data area of the partition. ● MAC times ● File name ● First cluster – FAT tells the rest of the clusters

File Allocation Table Concepts Partition 1Partition 2 FAT File System Reserved Area FAT AreaData Area FAT Boot Sector Primary and Backup FATs Clusters FAT Entry 000 … … … 072 FFF … … next cluster Cluster 001 … not allocated next cluster end of file

FAT Directories Partition 1Partition 2 FAT File System Reserved Area FAT AreaData Area FAT Boot Sector Primary and Backup FATs Clusters DirectoryFiles Directory Entry Long File Name 8.3 Filename File attributes (read only, hidden, system, archive, etc.) Created time/day Accessed day Modified time/day First cluster address Size of file (0 for directory)

Deleting a FAT File Deleting C:taxes.txt Find the FAT, and Data areas Locate taxes.txt in the Directory for C:; determine its starting cluster Go to the FAT Set FAT entries for taxes.txt cluster to 0 Therefore not allocated Follow the links Change filename to  axes.txt in C: directory –First character becomes 0xE5

WinHex to the Rescue ● Presents the file system ● Lets you look at the individual files ● Shows files that have been deleted ● Attempts to recover deleted files ● Gathers slack space

Deleted Files

Go Find The File

Note the First Character of Name

Attempts to Recover File

Unallocated Space ● After deleting a file the previously allocated clusters become unallocated. ● They ready to be allocated to some other file. ● They have not been touched. ● They still contain the data from the original file. ● You can recover the data so long it hasn’t been written over by a new file.

Media Details

Disk Analysis Space Alphabet

Text Search

Files and Drives ● Hard drive geometry ● File systems ● Files ● WinHex