A system administrator needs to run a file system check on user directories but wants to ensure user data is not affected during system uptime. Which of the following strategies would BEST achieve this?
You selected this option
Using the usermod command to lock user accounts and then performing a file system check.
You selected this option
Running a file system check during boot time on the partition mounted as /home.
You selected this option
Mounting the /home partition as read-only while users are logged in.
You selected this option
Scheduling a cron job to run a file system check on /home at midnight.
The correct answer is 'Running a file system check during a boot time on the partition mounted as /home'. This is because running file system checks can potentially disrupt user access to files. Performing these checks during boot time ensures user directories are not in use, preventing potential data loss or corruption. Mounting the partition as read-only won't accomplish a file system check but will prevent changes. Scheduling a cron job for file system check will still affect users if they are logged in and using their directories. Although usermod can manipulate user accounts, it doesn't facilitate a file system check on the /home directories.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is it important to run file system checks during boot time?
Open an interactive chat with Bash
What are the potential risks of performing file system checks while users are logged in?
Open an interactive chat with Bash
What is a cron job, and why might it not be suitable for file system checks on user directories?