修復(fù)的步驟如下:
1,cd啟動(dòng)盤,fedora8,或者fedora9都可以,甚至其他的有圖形界面安裝的linux版本都可以的,啟動(dòng)后一直按照安裝的步驟進(jìn)入安裝的桌 面,就是桌面上有一個(gè)文件夾,還有個(gè)計(jì)算機(jī),還有個(gè)install的圖標(biāo)的桌面,這時(shí)候,你從左上角的fedora菜單欄里面,找到系統(tǒng)工具,點(diǎn)擊終端。
2,終端里面如何輸入請(qǐng)看我的輸入。
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 來(lái)啟動(dòng)grub這樣就能開(kāi)始grub>,然后開(kāi)始安裝grub,輸入root (hd0,7),這里面root后面有一個(gè)空格不要忘記了,hd后面的數(shù)字0,還有那個(gè)7要看你自己的情況來(lái)定了。0代表的是第幾塊硬盤,7代表的是第幾 個(gè)分區(qū),你對(duì)于這不能很確定的話,可以點(diǎn)擊桌面上的install圖標(biāo),一直到他讓你選擇分區(qū)什么的東西,你可以在那里看看你的fedora是裝在第幾個(gè) 分區(qū)里面,我的是在第7個(gè)分區(qū)里面,然后setup (hd0)也有空格的,這個(gè)0和前面的0是必須一樣的。
新聞熱點(diǎn)
疑難解答
圖片精選