Chapter 4 Flashcards
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
-
Which of the following mount points would not be used by a mount -a command?
/dos
Which of the following command lines would attempt to mount the /dev/sda5 partition?
All of the above
Which of the following command lines would attempt to mount a filesystem to the /mnt/boot directory?
mount -L /boot
What is the most likely reason that the third column of the last line contains the word auto?
Because a FAT or ext2 or otherwise formatted floppy could be inserted into the drive, the filesystem type should be probed for each mount.
What users would be able to mount the device /dev/fd0?
Any user on the system.
What does the noauto mount option imply?
The filesystem should not be mounted as part of the system startup process.
What command could be used to create the label referred to by the LABEL= syntax in the /etc/fstab file?
mke2fs
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
-
What is suspicious about the first column of this file, which leads you to believe that there must be some mistake?
The file implies that all 4 primary partitions contain a filesystem, but a logical partition exists as well.
What is suspicious about the second column of this file, which leads you to believe that there must be some mistake?
The mount point tmp is specified as a relative reference.
What is suspicious about the last column of this file, which leads you to believe that there must be some mistake?
The column contains multiple entries for the value “1”, when the value 1 is only supposed to be used for the root partition.