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.
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)- A3% (1)
- B10% (3)
- C17% (5)
- D70% (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.
fsck runs first to check and repair filesystem integrity before the filesystem is mounted.
mount runs after fsck to attach the filesystem to the directory tree, before any quota tools execute.
quotacheck runs after mount to scan the filesystem and build or verify the quota database, but before quotaon activates enforcement.
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
Community Discussion
No community discussion yet for this question.