fedora 系统下grub修复

2025-05-29 0 78

修复的步骤如下:

1,cd启动盘,fedora8,或者fedora9都可以,甚至其他的有图形界面安装的linux版本都可以的,启动后一直按照安装的步骤进入安装的桌 面,就是桌面上有一个文件夹,还有个计算机,还有个install的图标的桌面,这时候,你从左上角的fedora菜单栏里面,找到系统工具,点击终端。

2,终端里面如何输入请看我的输入。

  1. [fedora@localhost~]$grub
  2. bash:grub:commandnotfound
  3. [fedora@localhost~]$whereisgrub
  4. grub:/sbin/grub/usr/share/grub/usr/share/man/man8/grub.8.gz
  5. [fedora@localhost~]$su
  6. [root@localhostfedora]#/sbin/grub
  7. ProbingdevicestoguessBIOSdrives.Thismaytakealongtime.
  8. GNUGRUBversion0.97(640Klower/3072Kuppermemory)
  9. [MinimalBASH-likelineeditingissupported.Forthefirstword,TAB
  10. listspossiblecommandcompletions.AnywhereelseTABliststhepossible
  11. completionsofadevice/filename.]
  12. grub>root(hd0,7)
  13. root(hd0,7)
  14. Filesystemtypeisext2fs,partitiontype0×83
  15. grub>setup(hd0)
  16. setup(hd0)
  17. Checkingif“/boot/grub/stage1″exists…yes
  18. Checkingif“/boot/grub/stage2″exists…yes
  19. Checkingif“/boot/grub/e2fs_stage1_5″exists…yes
  20. Running“embed/boot/grub/e2fs_stage1_5(hd0)”…23sectorsareembedded.
  21. succeeded
  22. Running“install/boot/grub/stage1(hd0)(hd0)1+23p(hd0,7)/boot/grub/stage2/boot/grub/grub.conf”…succeeded
  23. Done.
  24. 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是必须一样的

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

快网idc优惠网 建站教程 fedora 系统下grub修复 https://www.kuaiidc.com/87655.html

相关文章

发表评论
暂无评论