fedora 系統(tǒng)下grub修復(fù)
修復(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這樣就能開始grub>,然后開始安裝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是必須一樣的。
版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。