Which sequence of commands would verify that the root partition is mounted with the correct options and remove its entry from /etc/fstab?

Prepare for the Red Hat Certified Systems Admin Exam EX200. Enhance your skills with interactive quizzes, flashcards, and detailed explanations. Ace your certification exam today!

Multiple Choice

Which sequence of commands would verify that the root partition is mounted with the correct options and remove its entry from /etc/fstab?

Explanation:
You’re testing how the system shows the actual mount options for the root partition and then how to apply a change to the filesystem table. Start by inspecting the live system’s mounts to confirm what root is currently using. The command that lists mounted filesystems and their options, filtered to show the root entry, is the right choice here. It reveals exactly how the root partition is mounted (for example, rw, relatime, or other options) as it exists now. After you’ve confirmed the current options, edit the file that controls persistent mounts and remove the line for the root filesystem. This ensures future boots won’t mount root from the file-system table. Finally, refresh the mounted filesystems to reflect the updated configuration. Running the command to mount all filesystems described in the fstab file re-reads the file and applies changes to the remaining mounts, given that the root entry has been removed. This sequence—verify with the live mount output, remove the root line from fstab, then re-mount according to fstab—fits the task of both checking the current root options and updating the system’s persistent configuration.

You’re testing how the system shows the actual mount options for the root partition and then how to apply a change to the filesystem table. Start by inspecting the live system’s mounts to confirm what root is currently using. The command that lists mounted filesystems and their options, filtered to show the root entry, is the right choice here. It reveals exactly how the root partition is mounted (for example, rw, relatime, or other options) as it exists now.

After you’ve confirmed the current options, edit the file that controls persistent mounts and remove the line for the root filesystem. This ensures future boots won’t mount root from the file-system table.

Finally, refresh the mounted filesystems to reflect the updated configuration. Running the command to mount all filesystems described in the fstab file re-reads the file and applies changes to the remaining mounts, given that the root entry has been removed. This sequence—verify with the live mount output, remove the root line from fstab, then re-mount according to fstab—fits the task of both checking the current root options and updating the system’s persistent configuration.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy