Refresher on FileSys
Table of Contents
1 File Systems
- file-volume = content of a (hard-disk) partition organized into
- Directories and Files
- List of free blocks
- Parameters describing the volume
- file system = file volume + code
- A HDD or flash storage based file volumes are persistent.
- A RAM-"disk" based file volumes are not persistent, but commonly used.
1.1 Operations
- mkfs – one a given partition, make an initial file volume. Only the root and lost+found directories are created. List of free blocks etc initialized. Different mkfs for different fs-designs: mkfs.ext4, mkfs.vfat
- fsck – check the integrity of a file volume.
- mount – take an off-line file-volume and mount it on an existing directory, called mount-point. Depending on the options, the previous contents of the mount-point becomes invisible. The file-volume appears instead.
- umount (sic) – unmount, reverse of above.
1.2 ext4
- ext4 is a particular design of a Linux native file system. Windows "drivers" exist but may not be reliable. You need to download and install.
- ext4 is a journaling file system.
- Android formats its internal eMMC storage as ext4.
1.3 vfat
- vfat is a particular design of a Windows native file system. Linux is wholly reliable with it. vfat is now a standard part of Linux.
- Android formats its internal flash eMMC storage as ext4, and removable uSD cards as (typically) vfat.
1.4 Swap Space
- A file volume designed for use in virtual memory (pages, segments).
- When swap space is exhausted, machine will "crawl"
- If machine has large amounts of physical memory (RAM), swap space is unused.
1.5 Loop Device
- Simulation of a file as a block device
- file
ubuntu-trusty.iso
downloaded iso image # mkdir -p /root/A
create mount point# mount kubuntu-14.04-desktop-amd64.iso /root/A
% df
shows/dev/loop1 1041408 1041408 0 100% /root/A
2 References
- http://cecs.wright.edu/~pmateti/Courses/2350/ CEG 2350: OS
Concepts and Usage This course presents most of our prerequiste
materials. Lecture and lab notes are fully on-line.
CEG 2350 Catalog Description: Introduction to Linux and Windows systems. GUI and Windowing Systems. Files and Directories. Ownership and Sharing. Programs and Processes. System calls, Libraries. Loading. Dynamic linking. Command Line Shells. Scripting languages. Regular expressions. Clients and Servers. Web browser clients and servers. Secure shell, sftp. SSL/TSL. HTTPS. System Administration. 4 credit hours. 3 hours lectures, 2 hours labs. Prerequisites: CS 1180 or CS 2170 (older numbers CS 240 or CS 220) or equivalent.