Grub2-mkconfig报错解决一例
报错内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@Derek derek.s]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.8.8-202.fc18.i686.PAE Found initrd image: /boot/initramfs-3.8.8-202.fc18.i686.PAE.img Found linux image: /boot/vmlinuz-3.8.8-202.fc18.i686 Found initrd image: /boot/initramfs-3.8.8-202.fc18.i686.img Found linux image: /boot/vmlinuz-3.6.10-4.fc18.i686 Found initrd image: /boot/initramfs-3.6.10-4.fc18.i686.img Found Windows 7 (loader) on /dev/sda1 错误:syntax error。 错误:Incorrect command。 错误:syntax error。 Syntax error at line 154 Syntax errors are detected in generated GRUB config file. Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files or please file a bug report with /boot/grub2/grub.cfg.new file attached.done |
大D在查看/boot/grub2/grub.cfg文件的154行后,汗都下来了。。。。
/*学会了VIM显示行号 :set nu*/
1 |
set root='hd0,msdos3' |
这是要闹哪样啊我去。。。
后来经过一番搜索,原来是一个包的Bug(Bug 929384)引起的。
这个包的名字叫做tboot。/*貌似是一种引导管理程序*/
解决的方式自然是update。。。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#大D有怪癖,即使升级一个软件包也喜欢用yum update [root@Derek derek.s]# yum update 更新完毕: emacs-filesystem.noarch 1:24.2-18.fc18 espeak.i686 0:1.47.07-1.fc18 gdb.i686 0:7.5.1-38.fc18 kernel-headers.i686 0:3.8.9-200.fc18 kmod.i686 0:12-3.fc18 kmod-libs.i686 0:12-3.fc18 libnm-gtk.i686 0:0.9.8.1-2.git20130327.fc18 ncurses.i686 0:5.9-10.20130413.fc18 ncurses-base.noarch 0:5.9-10.20130413.fc18 ncurses-libs.i686 0:5.9-10.20130413.fc18 network-manager-applet.i686 0:0.9.8.1-2.git20130327.fc18 nm-connection-editor.i686 0:0.9.8.1-2.git20130327.fc18 selinux-policy.noarch 0:3.11.1-92.fc18 selinux-policy-devel.noarch 0:3.11.1-92.fc18 selinux-policy-doc.noarch 0:3.11.1-92.fc18 selinux-policy-targeted.noarch 0:3.11.1-92.fc18 tboot.i686 1:1.7.3-3.fc18 完毕! |
升级完毕之后,重新生成配置文件,一切正常~
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[root@Derek derek.s]# grub2-mkconfig -o /boot/grub2/grub.cfg Generating grub.cfg ... Found linux image: /boot/vmlinuz-3.8.9-200.fc18.i686.PAE Found initrd image: /boot/initramfs-3.8.9-200.fc18.i686.PAE.img Found linux image: /boot/vmlinuz-3.8.9-200.fc18.i686 Found initrd image: /boot/initramfs-3.8.9-200.fc18.i686.img Found linux image: /boot/vmlinuz-3.8.8-202.fc18.i686.PAE Found initrd image: /boot/initramfs-3.8.8-202.fc18.i686.PAE.img Found linux image: /boot/vmlinuz-3.8.8-202.fc18.i686 Found initrd image: /boot/initramfs-3.8.8-202.fc18.i686.img Found linux image: /boot/vmlinuz-3.6.10-4.fc18.i686 Found initrd image: /boot/initramfs-3.6.10-4.fc18.i686.img Found Windows 7 (loader) on /dev/sda1 done |
/*我要不要新建立个类别,专门用于写不足350字的博文*/
版权声明
转载保留版权: 大D技研室 | 《Grub2-mkconfig报错解决一例》
本文链接地址:https://www.dadclab.com/archives/3413.jiecao
转载须知:如果您需要转载本文,请将版权信息,版权授权方式,以及本文的链接地址注明,谢谢合作。
本文被贴上了: Bug 929384 , Grub2 , 报错 标签
话说有没有类似管道的东西捏 类似于findstr的这种
@xushine 兔兔在说神马~
同意最后那个注释里所说的东西。
算上代码远远超过350字了
@52computer 当然不算代码,否则随便贴个东西就够字数了。
@刀之魂 乃的装备好高端