Which file is checked to determine what partitions should be automatically mounted?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The file that is checked to determine what partitions should be automatically mounted is the /etc/fstab file. This configuration file contains information about all available disk partitions and their mount points, along with other options. Each line in the /etc/fstab file corresponds to a different filesystem, specifying where the filesystem should be mounted, which device it corresponds to, the type of filesystem, and any options related to its mounting behavior.

When the system boots or when a command is issued to mount filesystems, the system reads this file to know what to mount automatically and how. It is an essential part of managing filesystems in a Linux environment, ensuring that necessary partitions are available for use as soon as the system starts up.

The other files listed serve different purposes: /etc/hosts is used for hostname resolution, /etc/passwd stores user account information, and /etc/init.d contains scripts for starting and stopping services during system initialization.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy