我设置了一个新的 ubuntu 量子系统并编辑/etc/default/grub
如下:
# If you change this file, run update-grub afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo
#GRUB_GFXMODE=640x480
# Uncomment if you dont want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=false
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_LINUX_RECOVERY=false
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
之后我跑了update-grub
,没有报错。但是/boot/grub/menu.lst
在内核命令行中仍然有“quiet splash”:
title Ubuntu, kernel 3.5.0-17-generic
uuid 3f26e165-5167-43e5-8fa2-aa55f7919d2a
kernel /boot/vmlinuz-3.5.0-17-generic root=UUID=3f26e165-5167-43e5-8fa2-aa55f7919d2a ro quiet splash
initrd /boot/initrd.img-3.5.0-17-generic
quiet
title Ubuntu, kernel 3.5.0-17-generic (recovery mode)
uuid 3f26e165-5167-43e5-8fa2-aa55f7919d2a
kernel /boot/vmlinuz-3.5.0-17-generic root=UUID=3f26e165-5167-43e5-8fa2-aa55f7919d2a ro single
initrd /boot/initrd.img-3.5.0-17-generic
如何修复它,从而摆脱“安静”和“飞溅”选项?
正如您所知,12.10(以及几乎大多数其他 Ubuntu 版本)使用 Grub2 而不是 Grub。Grub 和 Grub2 软件包之间的主要区别之一是没有
/boot/grub/menu.lst
文件,它已被替换为/boot/grub/grub.cfg
.您对 的更改
/etc/default/grub
不会更新/boot/grub/menu.lst
文件,命令update-grub
实际上只会更新/boot/grub/grub.cfg
文件。因此,如果您检查该
/boot/grub/grub.cfg
文件,您会注意到内核命令行中不再有“quiet splash”。