Lecture #2 Storage Devices and File Systems
Learner Outcomes
Partition a hard disk drive to support the file system requirements for a UNIX/Linux installation
Describe the uses for multiple partitions on a storage device
Create, mount and unmount file systems from mount points on the directory structure.
Activities
Use
fdisk
to view your hard disk setup and create an extended and logical partition.
Disk storage and file system
handout
File System exercise
Assignment
Read Chapter 7 pp. 198-210 and Chapter 8 pp. 223-232.
Be able to answer the following questions:
What would be the device name of the fifth SCSI disk on a system? What would the name of its first partition?
What is the purpose of swap space in Linux or UNIX? What is the system type number for a Linux swap partition?
What is the fdisk utility used for?
Where do file systems reside?
What is the /etc/fstab file used for?
What are the six entries on each line of the above file?
What is the difference between a file system, a partition, and a mount point?
What is the name of the configuration file for GRUB? For LILO?
What would GRUB call the fourth partition ont he first hard drive?
What are the similarities and differences between GRUB and LILO?
Storage Devices and File Systems
Hard Disk Geometry
IDE vs. SCSI
Sectors
Tracks (heads)
Cylinders
Disk Partitioning
Master Boot Record
Partitions
Primary
Extended
Volume
Device files
File System Terminology
Filename
Inode
Disk blocks
Directory
Subdirectory
Absolute and Relative Pathnames
File systems
Superblock
Inode Table (List)
Data blocks
lost+found
directories
Mounting and Unmounting File Systems
mount [device-file] [directory]
umount [device-file | directory]
Mount information
/etc/fstab
/etc/mtab
The
dd
Command
Can copy data within or outside of file system structures
Syntax:
dd if=
input-file
of=
output-file
bs=
blocksize
count=
#-of-blocks
Example:
dd if=/dev/hda of=mbb bs=512 count=1
Copies the master boot block to the file
mbb
Relevant Commands and Files
Commands
Files
fdisk
- disk partitioning
mkfs
- makes file systems
/etc/fstab
mount
- mounts filesystems
/etc/mtab
umount
- unmounts filesystems
dd
- dumps data to devices
xxd  
- displays data in hexadecimal format