Filesystem Basics Flashcards
What kind of filesystems are supported by Linux?
- Conventional disk filesystems, like ext3, NTFS, vfat
- Flash storage filesystems, like ubifs, jffs2
- Database filesystems
- special purpose filesystems, like sysfs, tmpfs, debugfs
What is a partition?
- dedicated subsection of physical storage media
- “fixed area” to be treated as a whole
What is a filesystem?
- method of storing and accessing files
- can span more than one partition if a symbolic link is used
What is the Filesystem Hierarchy Standard (FHS)
- standard layout that says how important files are to be stored by linux systems
- maintained by Linux Foundation
Where can one find more information about the FHS?
https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.pdf
How are multiple drives and partitions mounted?
- as directories in a single filesystem
Where are removable media like usb drives shown in the filesystem?
Mounted at
/run/media/yourusername/disklabel
for recent distros
/media for older distros
What folders are part of the FHS?
/bin/
/boot/
/dev/
/etc/
/home/
/lib/
/media/
/mnt/
/opt/
/sbin/
/srv/
/tmp/
/usr/
/var/
/root/
/proc/
What is the following directory used for?
/bin/
Essential user command binaries
What is the following directory used for?
/boot/
Static files of the boot loader
What is the following directory used for?
/dev/
device files
What is the following directory used for?
/etc/
Host-specific system configuration
What is the following directory used for?
/home/
User home directories
What is the following directory used for?
/lib/
Essential shared libraries and kernel modules
What is the following directory used for?
/media/
Mount point for removable media