Welcome 微信登录
编程资源 图片资源库 蚂蚁家优选 PDF转换器

首页 / 操作系统 / Linux / Fedora grub修复

Fedora grub修复其实很简单,最关键的一步是进入rescue模式,我在Fedora下面怎么都不知道哦如何进入,在Ubuntu下面还能进入,不过不进入 rescue模式也是可以安装的。我是昨天安装xp系统的时候,这个版本我以前没用过,竟然不是ghost版本的,搞的我最终mbr被替换掉了。只好把 Fedora的grub修复一下了。修复的步骤如下:1,cd启动盘,Fedora 8,或者Fedora 9都可以,甚至其他的有图形界面安装的linux版本都可以的,启动后一直按照安装的步骤进入安装的桌 面,就是桌面上有一个文件夹,还有个计算机,还有个install的图标的桌面,这时候,你从左上角的Fedora菜单栏里面,找到系统工具,点击终端。2,终端里面如何输入请看我的输入。QUOTE:
[Fedora@localhost ~]$ grub
bash: grub: command not found
[Fedora@localhost ~]$ whereis grub
grub: /sbin/grub /usr/share/grub /usr/share/man/man8/grub.8.gz
[Fedora@localhost ~]$ su
[root@localhost Fedora]# /sbin/grub
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename.]
grub> root (hd0,7)
root (hd0,7)
Filesystem type is ext2fs, partition type 0×83
grub> setup (hd0)
setup (hd0)
Checking if “/boot/grub/stage1″ exists… yes
Checking if “/boot/grub/stage2″ exists… yes
Checking if “/boot/grub/e2fs_stage1_5″ exists… yes
Running “embed /boot/grub/e2fs_stage1_5 (hd0)”… 23 sectors are embedded.
succeeded
Running “install /boot/grub/stage1 (hd0) (hd0)1+23 p (hd0,7)/boot/grub/stage2 /boot/grub/grub.conf”… succeeded
Done.
grub>
3,解释如下,su切换到root用户,然后输入 /sbin/grub 来启动grub这样就能开始grub>,然后开始安装grub,输入root (hd0,7),这里面root后面有一个空格不要忘记了,hd后面的数字0,还有那个7要看你自己的情况来定了。0代表的是第几块硬盘,7代表的是第几 个分区,你对于这不能很确定的话,可以点击桌面上的install图标,一直到他让你选择分区什么的东西,你可以在那里看看你的Fedora是装在第几个 分区里面,我的是在第7个分区里面,然后setup (hd0)也有空格的,这个0和前面的0是必须一样的。这个我的Fedora9的grub修复完了,我可以从grub引导启动我的两个系统了,windows和Fedora了。有问题给我留言,我会尽快解决。 Fedora 8(内核版本2.6.23.9-85.fc8)安装ATI 7.12官方驱动,支持1440x900宽屏Fedora 9下emacs 22的中文设置相关资讯      Grub  Fedora知识 
  • Ubuntu下Grub配置详解  (今 14:57)
  • Linux系统教程:设置GRUB菜单密码  (12/15/2015 21:30:02)
  • Linux操作系统启动管理器-GRUB  (05/09/2015 12:06:59)
  • GRUB官方文档翻译-v1.01 PDF  (04月09日)
  • 修复Linux中的“提供类似行编辑的  (07/29/2015 13:18:34)
  • Ubuntu 通过 Live CD 更新Grub恢复  (04/19/2015 19:06:43)
本文评论 查看全部评论 (0)
表情: 姓名: 字数