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.

題解

選項A,雖然在單純的情況下可以直接使用「dd」來恢復MBR分割區,但如果在MBR備份之後硬碟分割區有做一些變動,將會出現一些新的問題。

選項B,雖然是可以使用LILO(Linux Loader)來開機,但並不代表不能使用GRUB了。

選項C,「mformat」指令用於在軟碟中建立MS-DOS的檔案系統。

選項D,正確答案。

選項E,「fdick」指令沒有「--mbr」參數能用。