轉自[http://hi.baidu.com/chenliangzzu/item/fe14ac060efe346bd45a11dd]
出於學習的需要在原來windows的基礎上安裝了linux 系統。。昨天想把linux系統刪掉。。直接把linux系統所在盤格式化了,結果再次啟動的時候就進不去windows系統了出現以下情況:
GNU GRUB VERSION 0.95 (638Klower/195520K upper momory) [Minimal BASH-like line editing is supported.For the first word,TAB lists possibble completions of a device/filename.] grub>
按下TAB鍵后有如下提示: Possible commands are:blocklist boot cat chainloader cmp color configfile debug displayapm displaymem embed find fstest geometry halt help hide impsprobe in initrd install ioprbe kernel lock makeactive map md5crupt module modlenounzip pager partnew parttype password pause reboot root rootnoverify savedefault serial setkey setup terminal terminfo testload testrbe unhide uppermem vbprobe grub>
-----------------------------------------------------------------------------------------------------------------------------------
解決方案:
GNU是程序開放協定,也就是一種反版權協定,可以不管他
Grub是Linux操作系統自帶的系統加載程序,也可以用在其他操作系統的加載上,比如Windows,特點是可以管理和加載多個系統
Grub出錯了就需要手動用grub命令的形式加載系統 啟動windows的命令是
grub> rootnoverify (hd0,0) grub> makeactive grub> chainloader +1
grub> boot
注:這里的hd0,0可能會根據你的硬盤分區情況不同而不同,hd0是指第一塊硬盤,后邊的0是指第一個分區。 恢復Windows的啟動菜單的話還要這么輸入一遍命令:
grub> title windows grub> root (hd0,0) grub> chainloader +1
或者把c盤格式化后重新安裝系統,不用輸入什么代碼直接解決問題。。所以以后裝完系統做個備份遇到問題恢復還是很方便的