Day 2 Flashcards

1
Q

What benefit does Journaling add to a file system?

A

Improves reliability by writing metadata that can be used to self-repair/self-recover a file system in the event of corruption.

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

Does the ext3 file system support file carving?

A

No - data is spread out across the drive in data blocks rather contiguously in clusters.

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

Are ext file systems affected by file slack?

A

No - Disk drives implementing ext file systems still use clusters, however the file system override this by allocating data blocks which are of a set size. As such, there is no redundant data at the tail of clusters which can contain previously deleted data.

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

What is the typical size of a data group? Are there any edge cases?

A
  1. The usual size of a data block is 4Kib (4096 bytes). However, the block size is determined by the superblock and may be smaller/larger.
  2. The last data block in the file system is usually smaller (it fills the remaining space available)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In an ext file system, what is a volume split into?

A

Block groups.

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

In an ext system, each file contains what three main file system structures in order to provide the file structure and metadata?

A
  • Directory Entry (File type, file name and the location of the iNode Table)
  • iNode Table (File metadata, the memory addresses of the blocks of data that make up the file contents)
  • Data block (the file content)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Does ext3 support created date metadata?

A

No, ext3 only supports last accessed metadata.

Created was only mandatory metadata in ext4.

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

Name the 6 areas that each block group can be split into:

A
  • Superblock.
  • Group descriptor.
  • Block bitmap.
  • INode bitmap.
  • INode table.
  • Data.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many bytes of offset preceded the superblock the start of the ext file system?

A

1024 bytes (1KiB)

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

Each block group contains its own copy of the superblock. True or False?

A

True.

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

How big is the superblock?

A

1024 bytes (1 KiB)

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

What 6 pieces of information does the superblock contain?

A
  • The superblock signature (0xEF53)
  • The number of inodes and blocks in the file system.
  • The block size (usually 4KiB)
  • The number of blocks on each group.
  • The last mount time for the volume the file system is embedded in.
  • The name of the volume (Volume label)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What 5main pieces of information does the group descriptor store in each block group?

A
  • Location/ Block number of the iNode table.
  • Location/Block number of the iNode table.
  • Number of directories in the block group.
  • Number of free blocks in the group.
  • Number of free iNode on the group.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Does the group descriptor point to the data blocks containing directory data?

A

No, this is handled by the iNode tables.

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

What do the Block and iNode bitmaps contained in each block group do?

A

They represent which data blocks/iNodes inside each block group are available/unavailable respectively.

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

When are the iNode tables created?

A

When the file system is first formatted.

17
Q

How big is an ext-3 iNode?

A

128 bytes.

18
Q

How big is an ext-4 iNode?

A

256 bytes.

19
Q

What 5 pieces of metadata does an iNode contain?

A
  • MAC times (Accessed, Modified, Deleted, Created (ext-4 only))
  • File Size
  • File Type.
  • Permissions (User, group, other)
  • Block pointers.
20
Q

What are the four types of block pointer in an iNode and how many are found in each iNode?

A
  • Direct bloc pointer (12x)
  • Single indirect block pointer (1x)
  • Double indirect (1x)
  • Triple indirect (1x£
21
Q

What are the 7 file types that a iNode/Directory entry can be assigned?

A
  • File
  • Directory
  • Character Device
  • Block Device
  • FIFO
  • UNIX Socket
  • Symlink
22
Q

What version of ext introduced journaling?

23
Q

What are the 3 journaling modes supported by ext?

A
  • Writeback
  • Ordered
  • Journal
24
Q

What is the default journaling mode?

25
Q

What are the features of writeback journaling?

A
  • Records metadata but writes at anytime.
  • Faster, but limited data integrity
26
Q

What is the main feature of ordered journaling?

A
  • Records metadata, writes data and updates metadata.
27
Q

What are the main features of Journal journaling?

A
  • Records both metadata and content for files.
  • Journals all data, is the safest option but slower.
  • Needs more storage to support due to large amount of journal writing.
28
Q

What are the two types of ext-4 extents?

A
  • Leaf
  • Index
29
Q

What are extents?

A

Contiguous blocks of data in block groups. Data is grouped together in leaves/indexes rather than spread out as per ext-3 for more efficient storage usage.