05 Linux Filesystems and File Management Flashcards
What utilities can be used to partition a disk in Linux
fdisk and gparted
T/F EXFAT is the new default filesystem for Linux
FALSE
which type of device will a USB memory stick inserted into a Linux system normally be?
NOT /dev/hdc,vda or usb0, sd usually
How many partitions can a GPT-partitioned disk have?
128
Which of the following programs can convert a PC-DOS partitioned disk to a GPT partitioned disk?
NOT fdisk, gparted, format, or gnome-disks
T/F the file name is contained in the directory inode
True
T/F the file name is contained in the file inode
False
What is the VFS
universal translator for filesystems
What is the path for reads/writes on the way to the disk?
First sent to VFS, the command is translated by the VFS for use by the device driver, then sent to the device for the actual read/writes to happen
What are filesystem control blocks known as and what do they do?
Inodes. They keep file metadata such as owner, access time, creation time, and more. They point to the data blocks used by the file
In a filesystem context, what is the purpose of journaling?
Write info to a journal first, then writes the data to the correct location in the inode. If the process is interrupted the journal can still be executed on boot. If that completes the journal is dumped. Journaling metadata is highly recommended
in device names, /dev/xxny what do the xx, the n, and the y correspond to?
xx is type of device, y is the letter indicating discovery order, and n is the partition number
True/False, disk names are always assigned the same way at every boot
False, this can change if the order the computer discovers them is changed somehow.
What is UUID
Universally Unique Identifier, assigned to each disk to give it a 100% unique identification
in MBR, what are the three partition types and what do they do?
Primary, one FS or logical drive. Associated with swap or boot
Extended: several partitions can be contained within this, has its own partition table
Logical, limited by device type