Professional Documents
Culture Documents
Computer Forensics I
Lab Package # 3
Part I
Materials Needed:
Introduction:
In the lab, we will examine the physical and logical structure of the disk in detail.
The physical structure deals with the geometry of the disk. The logical structure
deals with how data is stored, where the data is stored, and how to retrieve the
data.
It is very important for a computer forensic analyst to examine boot record, file
allocation tables, directory structures and data area for evidence.
There are various file systems such as FAT 12, FAT 16, FAT 32, NTFS, and
EXT 3.
The File Allocation Table (FAT) file system is one of the most simple file systems
found in common operating systems. FAT is the primary file system of the
Microsoft DOS and Windows 9x operating systems. FAT is frequently found in
compact flash cards for digital cameras and USB “thumb drives”.
This lab focuses on the FAT12 file system, which is predominately found in
floppy diskettes. You will be using the Norton Diskedit (DOS) program to
examine the physical and logical disk structure.
Procedures:
4. Select alt and “O” (Object) and select “Drive” and press “enter”.
Select drive “___” and press “enter” again.
Table 1
8. The “system area” of the disk area is divided and it is divided into boot
record, file allocation tables, and directory structure.
The layout of the File Allocation Table (FAT) file system has three
physical sections to it, which can be seen in the table below. The first
section is the “reserved area”, and it includes data in the “file system”
category. In FAT 12 and FAT 16 the reserved area is typically only 1
sector in size, but the size is defined in the boot sector. The second
section is the FAT area, and it contains the primary (Fat 1) and
backup (Fat 2) FAT tables.
CFOR 101 4 Fall 2010
The File Allocation Table (FAT) starts in the sector following the
reserved area. The size of the FAT table is displayed in the boot
record. The third section is the “data area”, and it contains the clusters
that will be allocated to store file and directory content.
Table 2
One of the first things you need to know when analyzing a FAT file system
is the location of the three physical layout areas. The “reserved area”
starts in sector “0” of the file system and its size is given in the boot
sector. For “FAT 12” (typically floppy disk) the reserved area is typically
only “1” sector, but in “FAT 16/32” the reserved area will typically reserve
many sectors.
The FAT file system contains two File Allocation Tables (Fat 1 and Fat 2),
and the first File Allocation Table (FAT1) begins in the sector after the
reserved area.
Table 3
The basic concept of FAT file system is that each file and directory is
allocated a “data structure”, called a “directory entry”, that contains the
file name, size, starting address of the file content, and other metadata.
Table 4
10. Finding the Metadata of directories and files:
Finding the location of the first cluster, which is “Cluster 2”, is harder than
it sounds because it is not at the beginning of the file system; it is in the
“data area”. You can be certain of this because the “reserved” and “FAT”
areas, which occur before the data area, do not use cluster addresses.
With a FAT12 and FAT16 file system, the first sectors of the “data area”
are for the “root directory” (created during the “format” command), which
is allocated when the file system is created and has a fixed size. After the
root directory entry, “Cluster 2” starts in the next sector.
Next, you will examine the disk’s “directory structure” and “data area”.
The first two directory entries in a directory are for the dot “.” and double
dots “..” directories. The dot, “.” name is used to address the current
directory in which you are working (i.e. “you are here”)and the double dots,
“..” is used to address the parent directory (i.e. “this is where you came
from”- in most instances the root directory).
Table 5
In the “Lab3” directory what do dot “.” and double dot “..” indicate?
The directory entry contains the “starting cluster” of each file, and the File
Allocation Table (FAT) structure is the process used by the computer
operating system to find the remaining clusters for each file.
The “non-zero” entries in the File Allocation Table (FAT) contain:
a. the address of the “next” cluster in the file containing data related to
the selected file “contents”;
b. an “end of file” marker (EOF) which tells the computer that it is not
required to search for any more data to complete the file;
To find the next cluster in a file, you will need to look at the cluster’s entry
in the FAT and determine if it is the last cluster in the file (EOF), or if
another cluster exists in the file in which data related to the file is located.
12. Examine and analyze the File Allocation Table (FAT) structure and
“cluster chains” by viewing different files in the disk directory.
Examine the “hello.txt” file and analyze the file information: Use Table 5
to get data.
Table 7
Select alt + “O” and select “1st FAT” and press “enter”. The program
displays the content of the “1st FAT”. The bottom right side of the
program shows the cluster number and bottom left side of the program
display shows the drive and “file” name. Move the cursor to the right ( use
the Tab key) so that starting cluster number of the file is displayed at the
bottom right side of the program. Note: Your display values may be
different from the diagram below.
In the “1st FAT” view of the File Allocation Table (FAT), what value or data
is stored at the “starting” cluster of hello.txt? Explain.
13. Press alt + “O” and select “directory” and press “enter”. Select “___:\”
drive, then highlight “lab 3” and press “enter”. Highlight “hello.txt” and
press “enter”. The program displays the contents of the “hello.txt” file in
Table 9
14. Examine the “car.jpg” file and analyze the file information. Select alt and
“O” and choose “drive”. Select “____:” drive and press “enter”.
Choose the “Lab3” directory and press “enter”. Select “car.jpg”.
Table 10
15. Select alt + “O” and select "1st FAT". Move the cursor to the starting
cluster number of the “car.jpg” file. As soon as, you move the cursor to
the starting cluster of the file, part of FAT table will turn “red”, showing
all of the clusters that are used by the “car.jpg” file.
View the diagram below. Verify that the highlighted clusters for the
“car.jpg” file are correct using Table 11 below.
Write down all the cluster numbers occupied by the “car.jpg” file
beginning with the “starting” cluster number.
16. By viewing the “1st FAT” table, explain whether the “car.jpg” file content
is stored on the disk “contiguously” or “non-contiguously”.
17. Press alt +”O”, select ”directory”, then highlight “___:” drive and
“Lab3” and press “enter”. Highlight the “car.jpg” file and press “enter”.
The Diskedit program displays the contents of the “car.jpg” file in
hexa-decimal and ASCII format beginning with the starting cluster number.
Press “PgDn” key to view the rest of the contents of the “car.jpg” file, its
related cluster numbers and location. Compare the cluster numbers for the
“car.jpg” file displayed in the “1st FAT” table shown in Part I. Procedure
15 above with the cluster numbers that you are now viewing using the
Diskedit program. Explain any differences or similarities:
Table 12
Write down all of the cluster numbers occupied by the “forensic.txt” file
beginning with the “starting” cluster number.
Table 13
3. Using the “1st FAT” table view, explain whether the “forensic.txt” file
content is stored “contiguously” or “non-contiguously” on the disk?
Press the “PgDn” key to view the rest of the “forensic.txt” file contents, its
related cluster numbers and location. Compare the cluster numbers for
the “car.jpg” file displayed in the “1st FAT” table shown in Part II.
Procedure 2 above with the cluster numbers that you are now viewing
using the Diskedit program. Explain any differences or similarities:
5. Examine the “solar.jpg” file and analyze the file information. To examine
the “solar.jpg” file, select alt + “O”, then select “___:” drive, select
“Lab3” and press “enter”. Select the “solar.jpg” file. Write the following
file information.
Table 14
6. To examine the File Allocation Table (FAT) of the “solar.jpg” file, select
alt + “O” and select "1st FAT". Move the cursor (using the “Tab” key) to
the “starting” cluster number of the “solar.jpg” file. As soon as you
move the cursor to the “starting” cluster of the file, part of FAT table
contents will turn “red” showing all of the clusters that are being used by
the “solar.jpg” file.
Write down all of the cluster numbers occupied by the “solar.jpg” file
beginning with the “starting” cluster number.
7. Using the “1st FAT” table view, explain whether the “solar.jpg” file
content is stored “contiguously” or “non-contiguously” on the disk?
8. Press alt+ “O”, select “directory”, select “ ___:” drive, highlight “Lab3’
and press “enter”. Highlight the “solar.jpg” file and press “enter”. The
Diskedit program displays the contents of the “solar.jpg” file in hexa-
decimal and ASCII format beginning with the “starting” cluster number.
CFOR 101 13 Fall 2010
Press the “PgDn” key to view the rest of the “solar.jpg” file contents, its
related cluster numbers and location. Compare the cluster numbers for
the “solar.jpg” file displayed in the “1st FAT” table shown and recorded
in Part II. Procedure 6 above with the cluster numbers that you are now
viewing using the Diskedit program. Explain any differences or
similarities:
9. Examine the “Galileo.txt” file and analyze the file information. To examine
the “Galileo.txt” file, select alt + “O”, then select “__:” drive, select
“Lab3” and press “enter”. Select the “Galileo.txt” file.
Write the following file information.
Table 15
10. To examine the File Allocation Table (FAT) of the “Galileo.txt” file, select
alt + “O” and select "1st FAT". Move the cursor (using the “Tab” key) to
the “starting” cluster number of the“Galileo.txt” file. As soon as you
move the cursor to the “starting” cluster of the file, part of FAT table
contents will turn “red” showing all of the clusters that are being used by
the “Galileo.txt” file.
Write down all of the cluster numbers occupied by the “Galileo.txt” file
beginning with the “starting” cluster number.
11. Using the “1st FAT” table view, explain whether the “Galileo.txt” file
content is stored “contiguously” or “non-contiguously” on the disk?
12. Press alt+ “O”, select “directory”, select “___:” drive, highlight “Lab3’
and press “enter”. Highlight the ““Galileo.txt” file and press “enter”.
The Diskedit program displays the contents of the “Galileo.txt” file in
hexa-decimal and ASCII format beginning with the “starting” cluster
number.
Table 16
16. Shut down the guest operating system (OS) and exit from VMWare Server
Console.
2. Ensure your area is returned to normal conditions for the next class.
1. File System
FAT1-
FAT2-
3. Meta-data of a file
4. Sector(s)
5. Root Directory
6. Tracks
7. Cluster(s)
Explain the following computer forensics terms and concepts in simple everyday
language, using helpful analogies when necessary.
1. What is a cluster?
4. What is a track and what significance does a “track” have with regard to sectors
on a disk?
6. Explain what is meant by the term “file system” when referring to computer
forensics?