Linux Grub修復全過程講解
Linux grub,是Linux 下多個操作系統(tǒng)啟動項的管理工具,電腦開機后,grub將會讀取... 5:setup (hd0) 寫入grub 如果此時系統(tǒng)顯示成功,表示Linux Grub修復完成。
Linux Grub修復 系統(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 (以下簡稱FC6)
- (hd1,0)-> /boot
- (hd1,1)->
- (hd1,2)-> /
Linux Grub修復 修復過程:
1:把引導設置成CD引導
2:插入linux安裝光盤/修復盤,按F4/FC6是F5,后輸入linux rescue ->回車
3:grub ->回車,敲下回車鍵后,回出現(xiàn)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
【編輯推薦】
- Ubuntu GRUB非常優(yōu)秀的系統(tǒng)引導器
- Ubuntu GRUB開機選項修改
- Ubuntu grub利用安裝光盤硬盤安裝ISO文件
- Linux rescuev修復模式跨越控制臺登錄
- Linux rescue單用戶模式修復模式