System Management
After a failed disk replacement, a BIOS-based Linux server shows "No bootable device". The partitions, including /boot, were restored intact from backup, but the bootloader code in the disk's boot sector was not. What is the best way to fix it?
Show the answer
Correct answerC. Boot from live media, chroot into the installed system, and run grub-install against the boot disk
grub-install writes the bootloader code to the disk's boot sector, and running it from a chroot targets the installed system. update-grub only regenerates grub.cfg and does not install boot code, so it is the tempting but insufficient choice.