我正在虚拟机下运行Ubuntu12.04。我必须修改grub菜单,添加一些自定义条目。我尝试编辑/etc/grub.d/40_custom,然后运行update-grub;但是,没有显示新的菜单项。
这是我的40_custom文件的内容:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to cha
我试图隐藏Linux 19肉桂上的GRUB菜单。
我使用并输入我的管理密码两次编辑grub文件
gedit admin:///etc/default/grub
然后,我编辑了grub文件如下所示:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration
我在USB手柄上安装了grub。现在我想将"linux.iso“文件添加到USB中,以便在引导时可以从USB运行linux。
在引导时,会打开grub菜单,但是在尝试加载外部linux之后,会出现一条错误消息。
casper/vmlinuz not found
就会出现。
我相信这是由于以下原因之一:
.iso文件不在正确的目录中。可在以下网址找到:/装入_usb/ubuntu-13.04-桌面-i386.iso
grub.cfg文件未被正确编辑。cfg文件当前如下所示:设置timeout=10 set default=0 menuentry“menuentry”{环回循环/ubunt
升级到19.04之后,Grub菜单就隐藏起来了。它仍然工作,我可以启动到Windows 10和Ubuntu,通过盲目地找到入口和按enter。我试着编辑/etc/default/grub,然后运行sudo update-grub,但是没有改变。现在的情况如下:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f g