首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >grub不使用/etc/default/grub中的设置

grub不使用/etc/default/grub中的设置
EN

Server Fault用户
提问于 2012-11-12 11:06:36
回答 1查看 7.3K关注 0票数 1

我设置了一个新的ubuntu系统,并按如下方式编辑了/etc/default/grub

代码语言:javascript
复制
# 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在内核命令行中仍然有“安静的启动”:

代码语言:javascript
复制
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

如何才能解决它,所以摆脱“安静”和“飞溅”的选项?

EN

回答 1

Server Fault用户

回答已采纳

发布于 2012-11-12 13:17:29

正如您所知,12.10 (以及几乎大多数其他Ubuntu版本)使用的是Grub2,而不是Grub。其中一个Grub和Grub 2包的主要区别是没有/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文件,您可以注意到内核命令行将不再有“安静的启动”。

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/447784

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档