admin管理员组文章数量:1530951
2024年6月24日发(作者:)
开机出现grub的解决方法
一开始我也是用重装系统来解决的,这个解决方法虽然可以,但是很痛苦。 在下面
讲解开机出现grub的解决方法。
如果只有window系统的话,win 7 同样适用。
第一行在grub的后面输入:rootnorerify(hd0,0)
第二行在grub的.后面输入:chainloader +1
第三行在grub的后面输入:boot
这样window的系统就会启动。
对于linux的系统来说就要麻烦一些特别时fedora的系统
一般linux的系统:
就如grub以后先要查找boot分区的位置。
第一行查找boot分区的位置,find /boot/grub/stage1 按enter后会出现一行类
似 (hd0,2)的字符 。
那么第二行:root (hd0,2)
第三行:kernel /boot/grub/vmlinuz然后按tab键补齐后面的一长串字符,这一串
字符我通常是不记的。接着后面输入 ro root=LABEL=/
第四行:initrd /boot/grub/initrd然后也是按tab键补齐后面的一长串字符,接着
在后面输入.img
第五行:boot启动该系统。
注意:有些电脑boot分区和/分区在一起的前面就不用加/boot
下面是我的/boot/grub/nf文件
# nf generated by anaconda
#
# Note that you do not have to rerun grub after ma-ki-ng changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,2)
# kernel /boot/vmlinuz-version ro root=/dev/sda3
# initrd /boot/initrd-[generic-]
#boot=/dev/sda
default=1
timeout=2
splashimage=(hd0,2)/boot/grub/
hiddenmenu
title Fedora (14.i686)
root (hd0,2)
kernel /boot/14.i686 ro root=UUID=1af3421f-561c-
4927-9d8c-04dca4a81ef0 rdNOLUKS rdNOLVM rdNOMD rdNODM
LANG=-8 KEYTABLE=us rhgb quiet
initrd /boot/
title window xp 杨培豪
rootnoverify (hd0,0)
chainloader +1
title RedFlag6sp3
root (hd0,6)
kernel /boot/vmlinuz-2.6.31-5 ro root=LABEL=/
initrd /boot/
linux开机出现grub>的解决方案xx-03-22 16:02 |
啥也不说先摆出命令:
1、set root=(hd0,gptx)
2、linux /boot/vml(输入完vml以后马上按tab补全,补全优先版本高的)
root=/dev/sdax ro
3、initrd /boot/init(输入完init以后马上按tab补全,补全优先版本高的)
4、boot
x是你安装linux的分区,比方我安装linux的分区是sda11,所以
1、set root=(hd0,gpt11)
2、linux /boot/vml(我忘了具体的名字了。。。按tab补全) root=/dev/sdax ro
3、initrd /boot/init(我忘了具体的名字了。。。按tab补全)
4、boot
版权声明:本文标题:开机出现grub的解决方法 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1719211485a763234.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论