Static and System Mount Information Flashcards

(19 cards)

1
Q

Which three files manage mounted filesystems in Linux?

A

/proc/mounts, /etc/mtab, /etc/fstab

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

What does /proc/mounts show?

A

Real-time mounted devices from the kernel

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

Is /proc/mounts editable by users?

A

No, it is read-only

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

What command displays /proc/mounts?

A

cat /proc/mounts

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

Example output of /proc/mounts?

A

/dev/sda1 / ext4 rw,relatime,data=ordered 0 0

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

What does /dev/sda1 represent in /proc/mounts?

A

Block device

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

What does / represent in /proc/mounts?

A

Mount point

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

What does ext4 represent?

A

Filesystem type

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

What does rw indicate?

A

Read-write access

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

What does relatime mean?

A

Updates access times on reads

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

What does data=ordered mean?

A

Journaling option

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

What do 0 0 at the end mean?

A

Not backed up by dump, no fsck at boot

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

What is /etc/mtab used for?

A

Lists mounted devices as tracked by user-space tools

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

Is /etc/mtab historically writable?

A

Yes, but now often linked to /proc/self/mounts

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

What command displays /etc/mtab?

A

cat /etc/mtab

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

What does /etc/fstab define?

A

Static mount points for automatic mounting

17
Q

How many fields does each /etc/fstab entry have?

A

Six fields: block device, mount point, filesystem type, mount options, dump setting, fsck order

18
Q

What command mounts all /etc/fstab entries?

19
Q

Example /etc/fstab entry?

A

/dev/sdb1 /mnt/data ext4 defaults 0 2