A system administrator is troubleshooting a RHEL 9 server that fails to boot and drops into emergency mode. The system console shows an error about mounting /dev/sdb1 on /data. The administrator enters emergency mode, checks /etc/fstab, and sees the line: /dev/sdb1 /data ext4 defaults 0 0. The /data directory exists but /dev/sdb1 is a partition on an external USB drive that was removed. The administrator needs the system to boot normally without the USB drive and plans to fix the mount configuration later. Which course of action should the administrator take?
Trap 1: Remove the line from /etc/fstab and run systemctl daemon-reload,…
Removing the line works, but daemon-reload does not reload fstab; reboot is needed, but the option includes daemon-reload which is unnecessary and incorrect.
Trap 2: Add the nofail option to the fstab line, then reboot.
nofail allows boot to continue, but the mount attempt will still fail silently; the requirement is to prevent the mount entirely, not just ignore failure.
Trap 3: Delete the /data directory and reboot.
Deleting the mount point does not prevent the system from trying to mount the missing device; the failure will still occur.
- A
Remove the line from /etc/fstab and run systemctl daemon-reload, then reboot.
Why wrong: Removing the line works, but daemon-reload does not reload fstab; reboot is needed, but the option includes daemon-reload which is unnecessary and incorrect.
- B
Add the nofail option to the fstab line, then reboot.
Why wrong: nofail allows boot to continue, but the mount attempt will still fail silently; the requirement is to prevent the mount entirely, not just ignore failure.
- C
Delete the /data directory and reboot.
Why wrong: Deleting the mount point does not prevent the system from trying to mount the missing device; the failure will still occur.
- D
Use a text editor to insert '#' at the beginning of the /dev/sdb1 line in /etc/fstab, then reboot.
Commenting the line prevents the mount attempt; system will boot normally.