05 Linux Filesystems and File Management Flashcards

1
Q

What utilities can be used to partition a disk in Linux

A

fdisk and gparted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

T/F EXFAT is the new default filesystem for Linux

A

FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

which type of device will a USB memory stick inserted into a Linux system normally be?

A

NOT /dev/hdc,vda or usb0, sd usually

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many partitions can a GPT-partitioned disk have?

A

128

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following programs can convert a PC-DOS partitioned disk to a GPT partitioned disk?

A

NOT fdisk, gparted, format, or gnome-disks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

T/F the file name is contained in the directory inode

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

T/F the file name is contained in the file inode

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the VFS

A

universal translator for filesystems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the path for reads/writes on the way to the disk?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are filesystem control blocks known as and what do they do?

A

Inodes. They keep file metadata such as owner, access time, creation time, and more. They point to the data blocks used by the file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In a filesystem context, what is the purpose of journaling?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

in device names, /dev/xxny what do the xx, the n, and the y correspond to?

A

xx is type of device, y is the letter indicating discovery order, and n is the partition number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True/False, disk names are always assigned the same way at every boot

A

False, this can change if the order the computer discovers them is changed somehow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is UUID

A

Universally Unique Identifier, assigned to each disk to give it a 100% unique identification

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

in MBR, what are the three partition types and what do they do?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is GPT when discussing filesystems?

A

GUID Partition Table. GUID is the glbally unique identifier

17
Q

How many partitions can you have with a GPT partitioning scheme?

A

128

18
Q

What are the 5 disk formatting utilities and what are their particular use cases?

A
  1. fdisk, text, menu based and flexible
  2. sfdisk, text, non interactive and useful for scripting
  3. parted, text, GNU partition manipulation program
  4. gnome-disk, graphical,
  5. gparted: gnome graphical version of parted
19
Q

what are the 4 main fields of information contained in a directory inode?

A
  1. inode: unique number identifying the file object
  2. name_len: length of file name
  3. file_type: 0=unknown, 1=refular file, 2= directory, 3=charachter-device, 4=block-device, 5=FIFO, 6=socket, 7=symlink
  4. name: file name
20
Q

what command can you use to see all the meta information for a file?

A

stat

21
Q
A