nerdexam
CompTIA

LX0-103 · Question #151

Which of the following commands is run LAST during boot on a system with quotas enabled?

The correct answer is D. quotaon. The disk quota boot sequence follows a strict order: fsck, then mount, then quotacheck, and finally quotaon. quotaon must run last because it activates quota enforcement only after the filesystem is mounted and the quota database has been verified.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

Question

Which of the following commands is run LAST during boot on a system with quotas enabled?

Options

  • Afsck
  • Bmount
  • Cquotacheck
  • Dquotaon

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    10% (3)
  • C
    17% (5)
  • D
    70% (21)

Why each option

The disk quota boot sequence follows a strict order: fsck, then mount, then quotacheck, and finally quotaon. quotaon must run last because it activates quota enforcement only after the filesystem is mounted and the quota database has been verified.

Afsck

fsck runs first to check and repair filesystem integrity before the filesystem is mounted.

Bmount

mount runs after fsck to attach the filesystem to the directory tree, before any quota tools execute.

Cquotacheck

quotacheck runs after mount to scan the filesystem and build or verify the quota database, but before quotaon activates enforcement.

DquotaonCorrect

quotaon enables quota enforcement on a mounted filesystem by signaling the kernel to begin tracking and enforcing user and group disk limits. It must run after quotacheck has verified and updated the quota accounting files; enabling quotas before that check would risk enforcing against a corrupt or stale quota database.

Concept tested: Linux disk quota boot initialization sequence

Source: https://tldp.org/HOWTO/Quota.html

Topics

#boot process#disk quotas#filesystem management#quotaon

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice