Академический Документы
Профессиональный Документы
Культура Документы
Project 3: An Introduction
to File Systems
1
Introduction
2
Outline
Background
Setting up your environment
Mounting file systems
Project 3
Specification
Downloading and testing file system image
General FAT32 data structures
Endian-ness
3
Environment Setup
4
Project 3 Environment
5
Project Environment
6
Running out of room?
$> df -h
7
df -h
8
Cleaning up space
9
Mounting File Systems
10
Unix File Hierarchy
mount
mount <device> <mount directory>
12
Mount Example
Mount point /
13
Mount Example
Root / file
system
mounted
14
Mount Example
15
File Hierarchy Example
16
Mount Example
17
Mount Example
Thumb drive
mounted
here
18
Un-mount Command
umount <dir>
19
Figuring out names of devices
20
Project 3
21
Project 3
22
FAT32 Manipulation Utility
open cd
close ls
create mkdir
rm rmdir
size read
write
23
File System Image
24
File System Image
25
File System Image
26
File System Image Mount Example
fat32.img
27
File System Image Mount Example
28
File System Image Mount Example
29
File System Image Mount Example
30
General FAT32 Data
Structures
31
Terminology
32
FAT32 Disk Layout
3 main regions
Sector
Reserved Region
Additional
FS Information
Boot Sector Reserved Sectors
Sector
(Optional)
FAT Region
Big or little?
37
Machine Endianness
index 0 1 2 3
little
0xC9 0x07 0xCC 0x00
endian
big
0x00 0xCC 0x07 0xC9
endian
Additional Project 3 Information
44
Project 3 Partners
45
Until Next Time
46