Linux grub,是Linux 下多個作業系統啟動項的管理工具,電腦開機後,grub將會讀取... 5:setup (hd0) 寫入grub 如果此時系統顯示成功,表示Linux Grub修複完成。
Linux Grub修複 系統磁碟分割/安裝環境
(按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 (以下簡稱FC6)
- (hd1,0)-> /boot
- (hd1,1)->
- (hd1,2)-> /
Linux Grub修複 修複過程:
1:把引導設定成CD引導
2:插入linux安裝光碟片/修複盤,按F4/FC6是F5,後輸入linux rescue ->斷行符號
3:grub ->斷行符號,敲下斷行符號鍵後,回出現grub>,這就進入了修複。
4:(這裡我只簡單的說我的操作過程了。因為很多地方,偶也不懂。)
grub> rootnoverify (hd1,0) ->斷行符號
grub> setup (hd0) ->斷行符號
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 ->斷行符號
5:從啟電腦,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