Filesystem - VFS Flashcards

1
Q

What is an inode

A

Describes and stores file attributes

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

How are file names and inodes associated

A

Directory file, hard or soft links

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

Name the virtual pseudo filesystems

A

/proc, /sys, /dev (and /tmp and /run)

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

Describe the VFS

A

An abstraction layer which translates I/O calls to the code for the actual filesystem

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

Name some Linux (supported) filesystems

A

EXT4, XFS, BTRFS, fat, NTFS, pseudo filesystems, NFS

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

How can I list filesystem types?

A

cat /proc/filesystems

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

What is a journaling filesystem?

A

Changes to the filesystem are only effected after a transaction (grouped fs operations) is successful. A log is kept.

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

How can I find information on disk sectors etc.?

A

sudo fdisk -l /dev/sda

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

Describe disk geometry

A

cylinders are groups of tracks on platters. Tracks are collections of sectors, usually 512 bytes. Partitions are contiguous cylinders/sectors

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

Describe traditional partition organization

A

one MBR, with up to 4 primary partitions. One can be an extended partition, which can then hold up to 15 logical partitions

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

Describe modern partition organization

A

GPT can hold up to 128 primary partitions

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

Describe MBR partition table

A

446 bytes for boot record, then 16 bytes for each partition, then 2 more bytes for the magic number

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

What is contained in a partition table entry?

A

active bit, begin address, partition type (ext4), ending address, start sector, number of sectors

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

Describe GPT partition table

A

Protective MBR, GPT Header, Partition entries. GPT header and Partition entries at start and end of disk.

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