服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Fedora - fedora 系统下grub修复

fedora 系统下grub修复

2019-10-14 15:13fedora教程网 Fedora

fedora 系统下grub修复

修复的步骤如下:

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

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

  1. [fedora@localhost ~]$ grub 
  2. bash: grub: command not found 
  3. [fedora@localhost ~]$ whereis grub 
  4. grub: /sbin/grub /usr/share/grub /usr/share/man/man8/grub.8.gz 
  5. [fedora@localhost ~]$ su 
  6. [root@localhost fedora]# /sbin/grub 
  7. Probing devices to guess BIOS drives. This may take a long time. 
  8. GNU GRUB version 0.97 (640K lower / 3072K upper memory) 
  9. [ Minimal BASH-like line editing is supported. For the first word, TAB 
  10. lists possible command completions. Anywhere else TAB lists the possible 
  11. completions of a device/filename.] 
  12. grub> root (hd0,7) 
  13. root (hd0,7) 
  14. Filesystem type is ext2fs, partition type 0×83 
  15. grub> setup (hd0) 
  16. setup (hd0) 
  17. Checking if “/boot/grub/stage1″ exists… yes 
  18. Checking if “/boot/grub/stage2″ exists… yes 
  19. Checking if “/boot/grub/e2fs_stage1_5″ exists… yes 
  20. Running “embed /boot/grub/e2fs_stage1_5 (hd0)”… 23 sectors are embedded. 
  21. succeeded 
  22. Running “install /boot/grub/stage1 (hd0) (hd0)1+23 p (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是必须一样的

延伸 · 阅读

精彩推荐
  • FedoraSamba中文显示乱码解决办法

    Samba中文显示乱码解决办法

    Samba显示中文乱码,添加下面的内容到smb.conf中 client code page = 936 dos charset = cp936 unix charset = cp936...

    脚本之家4112019-10-14
  • Fedora如何在 Fedora Linux 上安装 Brave 浏览器

    如何在 Fedora Linux 上安装 Brave 浏览器

    在本教程中,你将学习如何在 Fedora Linux 上安装 Brave。你还将学习如何更新和删除它。...

    Linux中国4552021-11-29
  • FedoraFC8下备份linux系统

    FC8下备份linux系统

    linux系统可以使用tar来备份。 我在FC8上装好了totem, mplayer, audacious, 并搞定了wifi后,我觉得该备份一下FC8系统。 IBM R31+TP-LINK 310G Windows XP+FC8 备份前在FC8下卸...

    脚本之家4282019-10-12
  • FedoraFedora20 32位系统中安装搜狗拼音输入法图文教程

    Fedora20 32位系统中安装搜狗拼音输入法图文教程

    这篇文章主要介绍了Fedora20 32位系统中安装搜狗拼音输入法图文教程,64位系统有一个RPM包可以直接安装,32位系统没有,所以要手动安装,需要的朋友可以参考下...

    Fedora技术网6102019-10-16
  • Fedorafedora7下共享上网

    fedora7下共享上网

    家里有2台机器,一台linux,一台xp,为了共享上网,linux作为主机,我安装的是fc7,下载firestarter,安装这个之前安装xmlparser。安装好了后,出来一个界面配...

    fedora教程网4332019-10-12
  • FedoraFC7中用yum自动搜索安装软件

    FC7中用yum自动搜索安装软件

    有些包在http://rpm.livna.org上,要先安装http://rpm.livna.org/livna-release-7.rpm这个包才能用yum安装 #yum install stardict mplayer gftp zip unrar multiget azureus amsn wine gnochm 不过...

    fedora教程网4832019-10-12
  • Fedorafedora8 linux挂载DVD光盘或ISO镜像为源的方法

    fedora8 linux挂载DVD光盘或ISO镜像为源的方法

    1、先挂载DVD光盘或ISO镜像文件 2、修改/etc/yum.repos.d/fedora.repo 用root权限修改/etc/yum.repos.d/fedora.repo,原文件的第一部分如下: [fedora] name=Fedora $releasever - $b...

    fedora教程网5802019-10-14
  • FedoraUbuntu和Fedora上通过图形化界面或源码安装软件包的方法

    Ubuntu和Fedora上通过图形化界面或源码安装软件包的方法

    这篇文章主要介绍了Ubuntu和Fedora上通过图形化界面或源码安装软件包的方法,Ubuntu和Fedora分别是Debian系和CentOS系Linux系统中自带桌面环境比较优秀的代表,需要...

    开源中文社区5212019-10-17