Chapter 4 Flashcards

1
Q

Use the following transcript to answer the next 5 questions.

[root@station root]# cat /etc/fstab
LABEL=/ / ext4 defaults 1 1
LABEL=/var/ftp/pub /var/ftp/pub ext4 defaults 1 2
LABEL=/home /home ext4 defaults 1 2
LABEL=/boot /mnt/boot ext4 defaults,noauto 1 2
/dev/sda5 /dos vfat defaults,noauto,user 0 2
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
LABEL=SWAP-sdb2 swap swap defaults 0 0
/dev/fd0 /media/floppy auto user 0 0

A

-

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

Which of the following mount points would not be used by a mount -a command?

A

/dos

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

Which of the following command lines would attempt to mount the /dev/sda5 partition?

A

All of the above

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

Which of the following command lines would attempt to mount a filesystem to the /mnt/boot directory?

A

mount -L /boot

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

What is the most likely reason that the third column of the last line contains the word auto?

A

Because a FAT or ext2 or otherwise formatted floppy could be inserted into the drive, the filesystem type should be probed for each mount.

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

What users would be able to mount the device /dev/fd0?

A

Any user on the system.

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

What does the noauto mount option imply?

A

The filesystem should not be mounted as part of the system startup process.

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

What command could be used to create the label referred to by the LABEL= syntax in the /etc/fstab file?

A

mke2fs

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

Use the following transcript to answer the next 3 questions.

[root@station root]$ cat /etc/fstab
/dev/sda6 / ext4 defaults 1 1
/dev/sda2 /boot ext4 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
/dev/sda1 tmp ext4 defaults 1 2
/dev/sda3 /var ext4 defaults 1 2
/dev/sda4 /var/data ext4 defaults 1 1

A

-

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

What is suspicious about the first column of this file, which leads you to believe that there must be some mistake?

A

The file implies that all 4 primary partitions contain a filesystem, but a logical partition exists as well.

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

What is suspicious about the second column of this file, which leads you to believe that there must be some mistake?

A

The mount point tmp is specified as a relative reference.

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

What is suspicious about the last column of this file, which leads you to believe that there must be some mistake?

A

The column contains multiple entries for the value “1”, when the value 1 is only supposed to be used for the root partition.

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