Introduction to File System Flashcards

1
Q

What is a File System?

A

A file system is a set of structured databases that contains file and directories

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

What are the uses of a File system?

A
  1. To store user and system data
  2. Creation, deletion and modification of files
  3. Managing disk space
  4. Control access to files and directories
  5. Organization of files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What kind of structure does a file system have?

A

A hierarchical, tree-like structure where internal nodes are directory files and external nodes are non-directory files.

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

What are i-nodes?

A

Each file system in UNIX has at least one table that identifies files in it.
The entries in this table are known as i-nodes.

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

File attributes that I-nodes contain

A
  1. Group
  2. Permission allowed on the table
  3. Number of links
  4. The time of the last modification
  5. The size of byte of the file
  6. The ID of the device on which the file resides
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

OS (Unix) associates an i-node to

A

each file

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

What are the properties of a file system?

A
  1. Files are stored on a disk and they don’t disappear when the user logs off
  2. Files have name and access permission
  3. Files can be arranged into complex structures to show their relationship.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

List file attributes and explain them

A
  1. Name (The only attribute that is readable by humans)
  2. Identifier (Unique number given to each file in a file system)
  3. Location (The location of the file in the drive)
  4. Size (The size of the file)
  5. Protection (assigns and controls read, write, and execute permissions of a file)
  6. Time, date and security (used for protection, security and monitoring)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is partitioning?

A

Partitioning is splitting a disk into several regions so they can be used as separate disks

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

Why do we use partitions?

A

Because we don’t want to use the disk as a single unit with a single function

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

What are the partitioning schemes?

A
  1. Master Boot Record (MBR) scheme
  2. Guid Partition Table (GPT) scheme
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is firmware?

A

A Firmware is a software that is embedded into an electronic device to provide low-level control.

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

What information does MBR partitioning contain?

A
  1. The boot loader (a simple program to initiate the boot process)
  2. The partition table (information about your partition)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

MBR partitioning

A

Is a partitioning scheme where the first sector of the disk contains essential data for booting up your system.

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

GPT partitioning

A

Is a partitioning scheme where all its partitions are given a globally unique identifier.

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

What is the difference between MBR and GPT?

A
  1. On MBR you can have only 4 primary partitionings while in GPT you can have unlimited partitioning or 128 partitioning on Windows.
  2. GPT can not work as the primary drive of a system that is legacy-based while MBR can
17
Q

Windows FS

A

FAT32, NTFS

18
Q

Linux FS

A

ext2, ext3, and ext4

19
Q

Mac OS FS

A

HFS, HFS+, and APFS

20
Q

Portable storage devices(hard disks, USB drives) FS

A

exFAT

21
Q

Which OS used FAT?

A

MS-DOS and Windows 9x

22
Q

Which OS use NTFS?

A

Windows NT family(2000, XP, Vista, 7, 10, etc.)

23
Q

Why use NTFS over FAT?

A
  1. Supports bigger files
  2. Allowing longer filenames
  3. Data encryption
  4. Access management
  5. Journaling
24
Q

Why use exFAT over NTFS?

A

Because you can only read the contents of a non-Windows environment in NTFS while exFAT supports read and write.

25
Q

Which FS is designed for platform compatibility?

A

exFAT

26
Q

What is EXT4 and Explain its benefits?

A

EXT4 is a file system made for Linux OS with journaling capabilities.
EXT4 is the default FS for most Linux distributions.
Supports files and file systems up to 16 terabytes in size.
Supports an unlimited number of sub-directories.

27
Q

What is the Linux command used to list your ext4-formatted partitions?

A

findmnt -t ext4

28
Q

How to create a file system

A

mkfs FS partition name or device name

29
Q

How do you create an ext4 FS?

A

mkfs -t ext4 /dev/sdal

30
Q

Attributes of ZFS FS

A
  1. Pooled storage
  2. Copy-on-write
  3. Snapshots
  4. Data integrity verification and automatic repair
  5. RAID-Z
  6. Maximum 265 Quadrillion Zettabytes of storage
31
Q

What is pool Storage?

A

using multiple disks.

32
Q

What is Copy-on Write?

A

When data is overwritten it keeps the new information on a different block and then the file system metadata points to it when the writing is finished.
This helps so that data won’t be lost forever.

33
Q

What is a Snapshot?

A

Snapshots are designed to track file changes, but not the addition and creation of files.

34
Q

What are Data integrity verification and automatic repair

A

Whenever new data is written to ZFS, it creates a checksum for that data.

When that data is read, the checksum is verified.

If the checksum does not match, then ZFS knows that an error has been detected and will then automatically attempt to correct the error.

35
Q

What is RAID-Z

A

RAID is a way of storing the same data in different places on multiple hard disks or solid-state drives (SSDs) to protect data in the case of a drive failure.

ZFS has its own implementation of RAID: RAID-Z.