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,「fdisk」指令没有「--mbr」参数能用。
