1.3 Given a scenario, configure and manage storage using the appropriate tools Flashcards

1
Q

Define fdisk utility

A

Used to manage partitions on MBR disks

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

What does command fdisk -l do?

A

Lists the current partition configuration on the system

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

From the fdisk utility, what does “l” do?

A

Lists the the supported partition types, i.e. Linux, LVM, fat, etc….

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

From the fdisk utility, what does “m” do?

A

Displays the help screen which lists the available commands

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

From the fdisk utility, what does “n” do?

A

Creates a new partition

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

From the fdisk utility, what does “p” do?

A

Displays the partition table for that device

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

From the fdisk utility, what does “q” do?

A

Exits fdisk without saving (writing) the partition changes specified

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

From the fdisk utility, what does “w” do?

A

Writes the partition changes

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

From the fdisk utility, what does “d” do?

A

Deletes the partition

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

What command opens the fdisk utility?

A

fdisk [devicename, i.e. /dev/sda]

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

What command can be used to update the kernel with partition changes made without rebooting the system?

A

partprobe

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

Define mount

A

making a storage device accessible to system users through the directory tree

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

What must be done before a storage device can be mounted?

A

Must create a directory to which the device will be mounted

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

Name the 2 system directories that are used to store mount points

A

/mnt or /media depending on distribution

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

What happens if a device is mounted to a directory that contains data?

A

The data it contains will not be accessible

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

What must be done to make a mount point persistent and exist after system reboot?

A

An entry for the mount point must be added to /etc/fstab

17
Q

What are the 3 files monitor/manage mount points?

A
  1. /etc/fstab
  2. /etc/mtab
  3. /procs/mounts
18
Q

What are the 6 fields required for a mount point in /etc/fstab? What is the delimiter that must be used?

A
  1. device to mount
  2. mount point
  3. file system type
  4. options
  5. dump (0 or 1)
  6. fsck order (1 if root filesystem, 2 otherwise)

Tab delimited

19
Q

What entry in the “options” field of /etc/fstab can be used for the default options?

A

defaults

20
Q

What 7 options are set when “defaults” is used for mounting a device via /etc/fstab?

A
  1. rw - read/write
  2. suid
  3. dev - allow block files
  4. exec - allow program/script execution
  5. auto - automatically mount on system boot
  6. nouser - only root can mount file system
  7. async - changes written to device asynchronously by system
21
Q

Compare the “sync” and “async” options for mounting in /etc/fstab

A
  1. sync writes changes immediately to the device, typically specified for removable storage media
  2. async caches changes for system to write when not busy, improves performance, good for non-removable devices
22
Q

What is /etc/mtab file for?

A

tracks currently mounted volumes

23
Q

What is /proc/mounts file for?

A

contains entries for all currently mounted volumes