- 论坛徽章:
- 0
|
原帖由 nemopang 于 2008-9-28 10:09 发表 ![]()
我之前装了Centos和xp,后来装ubuntu的时候就出现上面的情况
ubuntu的/boot下没有安装grub
后来grub-install也没装上,期待答案中
在机器的grub信息丢失或者损坏时,用rescue模式进入然后再grub-install /dev/sda重新安装一下。
由于某种原因grub-install /dev/sda在执行时会出现或多或少的问题。我们还可以用另一种方式代替那就是
进入grub shell模式。
如下 :
GNU GRUB version 0.97 (640K lower / 3072K 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> root (hd0,4) #为/boot目录所在的分区
grub> setup (hd0) #grub要安装在的位置
这种方式同样可以启动如下grub-install /dev/sda命令的效果。 |
|