A GRUB boot loader installed in the MBR was accidentally overwritten. After booting with a rescue
CD-ROM, how can the lost GRUB first stage loader be recovered?
A.
Use dd to restore a previous backup of the MBR
B.
Install LILO since there is no easy way to recover GRUB
C.
Running mformat will create a new MBR and fix GRUB using info from grub.conf
D.
Run grub-install after verifying that grub.conf is correct.
E.
Run fdisk –mbr /dev/had assuming that the boot harddisk is /dev/hda.
Explanation:
From the man pages:
Grub-install copies GRUB images into /boot/grub (or /grub on NetBSD and OpenBSD), and uses grubsetup to install grub into the boot sector.
D.
Run grub-install after verifying that grub.conf is correct.