我已经启动我的服务器,得到一些GRUB错误,我粘贴下面的错误。
错误代码:-
GNU GRUB version 0.97(502k Lower/496556K upper memory) [Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename] grub>
注意 : –
我试图通过以下步骤恢复GRUB。
GRUB重新安装在主引导logging上:
从安装引导介质引导系统。
在安装启动提示符处inputlinux rescue以进入救援环境。
inputchroot /mnt/sysimage来挂载根分区。
键入/sbin/grub-install /dev/hda以重新安装GRUB引导装载程序,其中/ dev / hda是引导分区。
重新启动系统。
我再次得到同样的错误。 我怎样才能让系统重新启动?
您的图片显示GRUB安装,这显然正常工作。 但是它没有configuration菜单,所以你只剩下一个命令行。
从操作系统安装合适的configuration是最简单的,您将通过安装GRUB来引导。 这意味着您必须在第一次手动input命令。 这是相当可行的,因为GRUB有可用的完成。
通常你只需要在GRUB提示符下input三个命令:
linux /path/to/kernel/image root=/path/to/root/device ro initrd /path/to/initrd/image boot
图像可能驻留在(hd0,0)/boot或(hd0,0)/ ,但也可以检查(hd0,1)/ 。 内核映像通常有一个以vmlinuz开头的名字,initrd以initrd开头,完成是你的朋友。