Linux Grub修複全過程講解

來源:互聯網
上載者:User

Linux grub,是Linux 下多個作業系統啟動項的管理工具,電腦開機後,grub將會讀取... 5:setup (hd0) 寫入grub 如果此時系統顯示成功,表示Linux Grub修複完成。

Linux Grub修複 系統磁碟分割/安裝環境
(按GRUB方式表述):
60G:Microsoft Windows XP
 

 
  1. (hd0,1)-> NTFS C:  
  2. (hd0,2)-> NTFS D:  
  3. (hd0,3)-> NTFS E:  
  4. (hd0,4)-> NTFS F:  
  5. 20G: Fedora Core 6 (以下簡稱FC6)  
  6. (hd1,0)-> /boot  
  7. (hd1,1)->   
  8. (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
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.