Linux Grub修复全过程讲解

运维 系统运维
Linux grub,是linux下多个操作系统启动项的管理工具,电脑开机后,grub将会读取... 5:setup (hd0) 写入grub 如果此时系统显示成功,表示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
 

【编辑推荐】

  1. Ubuntu GRUB非常优秀的系统引导器
  2. Ubuntu GRUB開機選項修改
  3. Ubuntu grub利用安装光盘硬盘安装ISO文件
  4. Linux rescuev修复模式跨越控制台登录
  5. Linux rescue单用户模式修复模式

 

责任编辑:chenqingxiang 来源: linuxdiyf
相关推荐

2010-06-12 10:03:20

Ubuntu Grub

2010-06-13 16:58:11

Grub 命令行

2011-02-22 10:46:02

Samba配置

2010-06-17 12:57:27

如何修复Grub

2011-01-21 17:51:52

2009-04-13 12:37:18

2011-09-06 15:38:20

QT安装

2009-12-08 17:56:16

WCF配置

2011-04-18 15:56:10

软件测试

2021-04-24 09:02:36

Linux 内存分配

2011-03-11 10:39:02

YUM安装LAMP

2019-05-14 15:27:31

MongoDB自动备份数据库

2010-07-21 14:51:19

telnet-serv

2010-03-01 17:01:03

Python编程技巧

2010-03-10 13:24:45

Zend Debugg

2012-11-06 10:19:18

Java自定义加载Java类

2009-06-10 16:55:42

cygwin netb安装

2010-11-19 10:11:49

Oracle物化视图

2011-03-02 10:32:18

2010-03-30 10:11:53

CentOS源
点赞
收藏

51CTO技术栈公众号