Filesystem - VFS Flashcards
What is an inode
Describes and stores file attributes
How are file names and inodes associated
Directory file, hard or soft links
Name the virtual pseudo filesystems
/proc, /sys, /dev (and /tmp and /run)
Describe the VFS
An abstraction layer which translates I/O calls to the code for the actual filesystem
Name some Linux (supported) filesystems
EXT4, XFS, BTRFS, fat, NTFS, pseudo filesystems, NFS
How can I list filesystem types?
cat /proc/filesystems
What is a journaling filesystem?
Changes to the filesystem are only effected after a transaction (grouped fs operations) is successful. A log is kept.
How can I find information on disk sectors etc.?
sudo fdisk -l /dev/sda
Describe disk geometry
cylinders are groups of tracks on platters. Tracks are collections of sectors, usually 512 bytes. Partitions are contiguous cylinders/sectors
Describe traditional partition organization
one MBR, with up to 4 primary partitions. One can be an extended partition, which can then hold up to 15 logical partitions
Describe modern partition organization
GPT can hold up to 128 primary partitions
Describe MBR partition table
446 bytes for boot record, then 16 bytes for each partition, then 2 more bytes for the magic number
What is contained in a partition table entry?
active bit, begin address, partition type (ext4), ending address, start sector, number of sectors
Describe GPT partition table
Protective MBR, GPT Header, Partition entries. GPT header and Partition entries at start and end of disk.