Interview Prep/Linux/Boot, time, cron and kernel

After a reboot the server drops to `You are in emergency mode. After logging in, type "journalctl -xb" to view system logs`.

IntermediateTroubleshootingBoot, time, cron and kernel
Answer

Likely causes → A required mount in /etc/fstab failed (wrong UUID, removed disk, typo, filesystem errors), so local-fs.target couldn't be reached.

Diagnose →

journalctl -xb | grep -Ei 'failed|dependency|mount'
systemctl --failed
cat /etc/fstab; lsblk -f

Fix → Fix or comment out the bad fstab line (mount -o remount,rw / first if root is read-only), run systemctl daemon-reload && mount -a to confirm, then systemctl default or reboot. If the filesystem is damaged, run fsck/xfs_repair on it.

Prevent → Use nofail for non-critical mounts and always run mount -a after editing fstab.

All Linux questions Roadmap: Linux

More on Boot, time, cron and kernel