恢复安装被破坏的grub

恢复安装被破坏的grub

知道了之后似乎很简单,用有grub的启动盘启动,或者用liveCD进入linux系统,或者就手工进入硬盘的linux的系统,然后运行#grub,进入grub>提示符界面,然后运行:

grub>root (hd0,3) #指定linux分区所在位置,我的这里是/dev/hda4即(hd0,3)

grub>setup (hd0) #将grub装到/dev/hda的MBR区。

grub>quit #大功告成,退出grub界面#reboot一下,OK,一切恢复正常,终于完全搞定,其实也很简单嘛,嘻嘻。 grub的安装也可以使用grub-install命令吧,具体可见命令帮助。

阅读(508 次)

2 Comments

  1. suifeng
    Posted 2008 二月 28 星期四 14:54 at 14:54 | Permalink

    求助!!重装Windows XP系统时,出现的问题.是一张克隆版的光盘。

    系统提示重启,最后重启之后是以下界面,

    GRUB40DS 0.4.3 2007-04-22.Memory:635K/245M,CodeEnd:0X3EOE8
    [ Minimal BASH-like line editng is supported. For the first word, TAB lists poosible command completions. Amywhere else TAB lists the possible completions of a device/filename. ESC at any time exits.]
    grub>

    这是什么意思啊,我该怎么办?
    我又按TAB键结果显示:

    Possible commands are: background blocklist boot bootp cat chainlader clear cmp color configfile debug dhcp displayapm displaymem embed find findroot fontfile foreground fstest geometry halt help hide ifconfig impsprobe initrd install iobrobe kernel lock makeactiveparttypc password pausc rarp rcad rcboot root rootnovcrify run savcdcfault scdrom serial setkey setup splashimage terminal terminfo testload testvbe tftpserver unhide uppermem vbeprobe

    grub> _

    这又是什么意思啊,我该怎么做啊,请教高手,感激 感激!!

    我的笔记本是外置光驱,在BIOS里设置光驱启动,它也不从光驱启,系统启不来,我该怎么办啊?

  2. zerged
    Posted 2008 二月 28 星期四 21:51 at 21:51 | Permalink

    输入 cat ( 再按tab键 至于不从光驱启动那是电脑bios问题

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*