修復的步驟如下:
1,cd啟動盤,fedora8,或者fedora9都可以,甚至其他的有圖形界面安裝的linux版本都可以的,啟動后一直按照安裝的步驟進入安裝的桌 面,就是桌面上有一個文件夾,還有個計算機,還有個install的圖標的桌面,這時候,你從左上角的fedora菜單欄里面,找到系統工具,點擊終端。
2,終端里面如何輸入請看我的輸入。
QUOTE: |
[fedora@localhost ~]$ grub bash: grub: command not found [fedora@localhost ~]$ whereis grub grub: /sbin/grub /usr/share/grub /usr/share/man/man8/grub.8.gz [fedora@localhost ~]$ su [root@localhost fedora]# /sbin/grub Probing devices to guess BIOS drives. This may take a long time. 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,7) root (hd0,7) Filesystem type is ext2fs, partition type 0×83 grub> setup (hd0) setup (hd0) Checking if “/boot/grub/stage1″ exists… yes Checking if “/boot/grub/stage2″ exists… yes Checking if “/boot/grub/e2fs_stage1_5″ exists… yes Running “embed /boot/grub/e2fs_stage1_5 (hd0)”… 23 sectors are embedded. succeeded Running “install /boot/grub/stage1 (hd0) (hd0)1+23 p (hd0,7)/boot/grub/stage2 /boot/grub/grub.conf”… succeeded Done. grub> |
3,解釋如下,su切換到root用戶,然后輸入 /sbin/grub 來啟動grub這樣就能開始grub>,然后開始安裝grub,輸入root (hd0,7),這里面root后面有一個空格不要忘記了,hd后面的數字0,還有那個7要看你自己的情況來定了。0代表的是第幾塊硬盤,7代表的是第幾 個分區,你對于這不能很確定的話,可以點擊桌面上的install圖標,一直到他讓你選擇分區什么的東西,你可以在那里看看你的fedora是裝在第幾個 分區里面,我的是在第7個分區里面,然后setup (hd0)也有空格的,這個0和前面的0是必須一樣的。
新聞熱點
疑難解答