Linux Grub修复全过程讲解


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
 

相关内容

    暂无相关文章