Question 310
A quick workaround is proposed for this Linux problem: A host is stranded at the GRUB prompt after a disk change but the Linux partitions remain intact. Which assumption creates the most relevant technical risk?
Explanation
Correct Answer
Repartitioning a healthy disk is unnecessary when the bootloader simply has stale paths. This is the scenario's misleading assumption. An engineer should investigate: Inspect GRUB's visible devices and kernel and initramfs paths before changing partitions. Appropriate evidence afterward is: The machine boots the existing installation and the repaired permanent menu survives reboot.
Incorrect Answers
Changing /etc/default/grub without rebuilding the generated menu does not update the active entries. That would matter when an administrator edits /etc/default/grub but the kernel command line is unchanged after reboot. The relevant distinction in this case is: Repartitioning a healthy disk is unnecessary when the bootloader simply has stale paths.
Generating grub.cfg alone does not install a missing first-stage bootloader. That would matter when a newly installed Linux root filesystem contains GRUB packages but the disk lacks executable bootloader installation. It does not address this case's requirement: A host is stranded at the GRUB prompt after a disk change but the Linux partitions remain intact.
GRUB Legacy menu.lst and GRUB 2 grub.cfg are not interchangeable configuration formats. That would matter when an older GRUB Legacy server uses menu.lst, but the operator follows GRUB 2 syntax from a new runbook. That separate mechanism does not verify the needed Linux administration outcome in this case.