Linux Grub修復(fù)全過(guò)程講解
Linux grub,是Linux 下多個(gè)操作系統(tǒng)啟動(dòng)項(xiàng)的管理工具,電腦開(kāi)機(jī)后,grub將會(huì)讀取... 5:setup (hd0) 寫(xiě)入grub 如果此時(shí)系統(tǒng)顯示成功,表示Linux Grub修復(fù)完成。
Linux Grub修復(fù) 系統(tǒng)分區(qū)/安裝環(huán)境
(按GRUB方式表述):
60G:Microsoft Windows XP
 
- (hd0,1)-> NTFS C:
 - (hd0,2)-> NTFS D:
 - (hd0,3)-> NTFS E:
 - (hd0,4)-> NTFS F:
 - 20G: Fedora Core 6 (以下簡(jiǎn)稱(chēng)FC6)
 - (hd1,0)-> /boot
 - (hd1,1)->
 - (hd1,2)-> /
 
Linux Grub修復(fù) 修復(fù)過(guò)程:
1:把引導(dǎo)設(shè)置成CD引導(dǎo)
2:插入linux安裝光盤(pán)/修復(fù)盤(pán),按F4/FC6是F5,后輸入linux rescue ->回車(chē)
3:grub ->回車(chē),敲下回車(chē)鍵后,回出現(xiàn)grub>,這就進(jìn)入了修復(fù)。
4:(這里我只簡(jiǎn)單的說(shuō)我的操作過(guò)程了。因?yàn)楹芏嗟胤?,偶也不懂?
grub> rootnoverify (hd1,0) ->回車(chē)
grub> setup (hd0) ->回車(chē)
Checking if "/boot/grub/stage1" exists...no
Checking if "/grub/stage1" exists...yes
Checking if "/grub/stage2" exists...yes
Checking if "grub/e2fs_stage1_5" exists...yes
Runing "embed /grub/e2fs_stage1_5 (hd0)"...sectors are embedded.
succeeded
Runing "install /grub/stage1 d (hd0) (hd0)1+15 p (hd1,0)/grub/stage2 /grub/grub.conf"...succeeded
Done.
grub> install /grub/stage1 d (hd0) (hd0)1+15 p (hd1,0)/grub/stage2 /grub/grub.conf ->回車(chē)
5:從啟計(jì)算機(jī),OK!
附上我的grub.conf的代碼
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb3
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title FC System (2.6.18-1.2798.fc6)
root (hd1,0)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title MS System
rootnoverify (hd0,0)
chainloader +1
 
【編輯推薦】
- Ubuntu GRUB非常優(yōu)秀的系統(tǒng)引導(dǎo)器
 - Ubuntu GRUB開(kāi)機(jī)選項(xiàng)修改
 - Ubuntu grub利用安裝光盤(pán)硬盤(pán)安裝ISO文件
 - Linux rescuev修復(fù)模式跨越控制臺(tái)登錄
 - Linux rescue單用戶(hù)模式修復(fù)模式
 















 
 
 
 
 
 
 