Chapter 14 - Managing Storage Flashcards

1
Q

What is MBR?

A

It is the Master Boot Record partitioning Scheme. It is a system used to define hard disk layout.

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

what is the boot procedure?

A

While booting a computer, the Basic Input Output System (BIOS) was loaded to access hardware devices. From the BIOS, the bootable disk device was read, and on this bootable device, the MBR was allocated. The MBR contains all that is needed to start a computer, including a boot loader and a partition table.

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

What is the default sector size?

A

512 bytes

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

How many partitions could be created in the MBR?

A

Four

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

What is GPT?

A

It is a Partitioning scheme introduced for very big storage devices, eg 2TiB or more than this.
GUID Partition Table - GPT

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

What is the difference between megabyte and a mebibyte?

A

a megabyte is a multiple of 1,000, and a mebibyte is a multiple of 1,024

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

What are the different partitioning utilities in RHEL8?

A

fdisk, gdisk and parted
fdisk is used to create MBR partitions
gdisk is used to create GPT partitions

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

Which directory or file do you see the kernal partition table?

A

cat /proc/partitions

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

Which command to see the non-kernel partition table?

A

fdisk -l /dev/sda

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

What command to use to write the changes to kernel partition table?

A

partprobe /dev/sda

Assuming the partitioning changes were done on /dev/sda

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

What are the 8 steps to create a MBR partition with fdisk utility?

A
  1. Open a root shell and run the fdisk command with the name of the device disk as argument. eg fdisk /dev/sda
  2. Check how much disk space you have available. Press p to see an overview of current disk allocation. In particular look for the total number of sectors and the last sector that is currently used. If the last partition does not end on the last sector, you have available space to create a new partition.
  3. Type n to add a new partition and press p to create a primary partition.
  4. Specify the first sector on disk that the new partition will start on, The first available sector is suggested by default
  5. Specify the last sector that the partition will end on. By default, the last sector available on disk is suggested.
  6. define the partition type. By default, a Linux partition type is used.
  7. If you are happy with the modifications, press w to write them to disk and exit fdisk.
  8. Type partprobe /dev/sda to write the changes to the kernel partition table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How many primary partitions can you create on a MBR and what to do if you need beyond that?

A

Four primary partitions. Beyond that you need to create extended partitions

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

What are the different partition types in GPT?

A

8200: Linux swap
8300: Linux file system
8e00: Linux LVM
Notice that these are the same partition types as the ones that are used in MBR,
with two 0s added to the IDs. You can also just press Enter to accept the default
partition type 8300.

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

which command to use to format a partition with a supported file system?

A

mkfs command using the -t option to specify which filesystem to use

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

Which command to format partition with XFS file system?

A

mkfs -t xfs

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

Which command is a generic tool for managing Ext4 file system properties?

A

tune2fs

Example: tune2fs -l /dev/sda3

17
Q

what does tune2fs command do?

A

It is filesystem properties management command. It shos different fule system properties

18
Q

What is a label in the filesystem properties?

A

Labels are used to set a unique name for a file system

19
Q

Which filesystem management command to use to set a label on the filesystem?

A

tune2fs -L

20
Q

Which command is a generic tool for managing XFS file system properties?

A

xfs_admin
Example : xfs_admin -L mylabel
to set the file system label to mylabel

21
Q

How is a swap partition or swap memory useful in Linux?

A

Using swap on Linux is a convenient way to improve Linux kernel memory usage. If a shortage of physical RAM occurs, non-recently used memory pages can be moved to swap, which makes more RAM available for programs that need access to memory
pages.

22
Q

What is mounting a filesystem?

A

By mounting a partition (or better, the file system on it), you make its contents accessible through a specific directory.

23
Q

Which command is used to manually mount and remove mount of a file system?

A

mount and umount
Example: mount /dev/sda5 /mnt
umount /dev/sda5 /mnt or umount /mnt

24
Q

Which command to use to get an overview of the current file systems on your system and the UUID that is used by that file system?

A

blkid

25
Q

How to automate the file system mounting?

A

Using the /etc/fstab file