CompTIA Linux+ (XK0-005) — Question 271

A Linux administrator edits a file that a system uses during the startup process to mount all the required partitions and volumes. The administrator wants to ensure no errors are in the file and the system will restart properly. Which of the following commands should the administrator use?

Answer options

Correct answer: B

Explanation

The correct answer is B, as the 'mount -a' command is used to mount all filesystems specified in the /etc/fstab file, which ensures that the necessary partitions are mounted without errors. Option A, 'fsadm -v', is used for managing filesystem attributes, but not for mounting. Option C, 'fsck -N', shows what would be done without actually checking the filesystem, and Option D, 'mountpoint -d', is used to determine if a directory is a mount point, which does not help in mounting partitions.