您尚未登录。

#1 2013-12-08 16:45:25

Antergone
会员
注册时间: 2013-12-08
帖子: 1

grub-mkconfig -o /boot/grub/grub.cfg 出错。

# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
error:out of memory。
error:syntax error。
error:Incorrect command。
error:syntax error。
Syntax error at line 161
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/grub/grub.cfg.new file attached.done

离线

#2 2013-12-08 19:34:56

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,489
个人网站

Re: grub-mkconfig -o /boot/grub/grub.cfg 出错。

内存不足?

离线

#3 2013-12-08 21:48:06

hotea
会员
所在地: 宇宙尽头的餐馆
注册时间: 2013-08-19
帖子: 36
个人网站

Re: grub-mkconfig -o /boot/grub/grub.cfg 出错。

翻译一下,咳咳,grub.cfg的161行语法错了

离线

#4 2013-12-10 19:28:18

liudanbi
会员
注册时间: 2013-12-10
帖子: 1

Re: grub-mkconfig -o /boot/grub/grub.cfg 出错。

在 /etc/default/grub 里加上 GRUB_DISABLE_SUBMENU=y 然后再使用grub-mkconfig
试试。

离线

#5 2013-12-15 11:56:28

balalaxmx
小魔仙小组组长
所在地: 河南郑州
注册时间: 2013-08-07
帖子: 29

Re: grub-mkconfig -o /boot/grub/grub.cfg 出错。

liudanbi 说:

在 /etc/default/grub 里加上 GRUB_DISABLE_SUBMENU=y 然后再使用grub-mkconfig
试试。

除了这个方法还可以直接用下面的命令:

grub-mkconfig > /boot/grub/grub.cfg

也能成功,只不过会多出一行无用菜单。


喜欢小魔仙的男孩子

离线

页脚