nerdexam
LPI

010-160 · Question #74

Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?

The correct answer is D. /var. This question tests knowledge of the Linux Filesystem Hierarchy Standard and which directories contain data that must be writable at runtime.

The Linux Operating System

Question

Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?

Options

  • A/opt
  • B/lib
  • C/etc
  • D/var
  • E/usr

How the community answered

(51 responses)
  • A
    2% (1)
  • B
    10% (5)
  • C
    4% (2)
  • D
    82% (42)
  • E
    2% (1)

Why each option

This question tests knowledge of the Linux Filesystem Hierarchy Standard and which directories contain data that must be writable at runtime.

A/opt

/opt holds optional third-party application software that can remain static and be mounted read-only without impacting normal system operation.

B/lib

/lib contains shared libraries and kernel modules that do not need to be written to during normal runtime and can be mounted read-only.

C/etc

/etc holds system configuration files that, while occasionally modified by administrators, can be mounted read-only in certain hardened or container environments without breaking runtime operation.

D/varCorrect

/var is defined by the FHS as the directory for variable data - including logs (/var/log), spool files (/var/spool), runtime data (/var/run), and package databases - all of which are written to continuously during normal system operation. If /var resides on its own filesystem, it must be mounted read-write or the system will fail to function properly.

E/usr

/usr contains user-land binaries, libraries, and documentation that are static after installation and can safely be mounted read-only.

Concept tested: Linux FHS /var directory read-write requirement

Source: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05.html

Topics

#filesystem hierarchy#/var directory#mount options#read-write

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice