grub shell = 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命令的效果。

 

 

转载自:http://blog.chinaunix.net/space.php?uid=9098575&do=blog&id=2435859

posted @ 2012-04-10 23:16  itbird  Views(493)  Comments(0Edit  收藏  举报