如何grub
解决方法:输入- sudo vi /etc/default/grub
复制代码
- # If you change this file, run 'update-grub' afterwards to update
- #如果更改此文件,请在之后运行“update-grub”以进行更新
- # /boot/grub/grub.cfg.
- # For full documentation of the options in this file, see:
- #有关此文件中选项的完整文档,请参阅:
- # info -f grub -n 'Simple configuration'
- GRUB_DEFAULT=0
- #默认操作系统启动项
- GRUB_TIMEOUT_STYLE=hidden
- #隐藏引导界面倒计时
- GRUB_TIMEOUT=0
- #引导界面等待时间,设定为-1为取消倒计时
- GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
- # 获得发行版名称
- GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
- #默认内核启动参数,只应用到普通模式的启动项
- GRUB_CMDLINE_LINUX=""
- #手动添加内核启动参数,将会应用到每个启动项(包括恢复模式启动项)的'linux'命令行
- # Uncomment to enable BadRAM filtering, modify to suit your needs
- #取消注释以启用BadRAM筛选,修改参数以满足您的需求
- # This works with Linux (no patch required) and with any kernel that obtains
- #适用于Linux(无需补丁)所有内核版本
- # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
- #GRUB中的内存映射信息(GNUMach,FreeBSD的内核…)
- #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
- # Uncomment to disable graphical terminal (grub-pc only)
- #取消注释以禁用图形终端(仅限grub pc)
- #GRUB_TERMINAL=console
- # The resolution used on graphical terminal
- #图形终端的分辨率
- # note that you can use only modes which your graphic card supports via VBE
- #请注意,您只能使用图形卡通过VBE支持的模式
- # you can see them in real GRUB with the command `vbeinfo'
- #您可以使用命令“vbeinfo”在真实的GRUB中看到它们
- #GRUB_GFXMODE=640x480
- # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
- #如果不希望GRUB将“root=UUID=xxx”参数传递给Linux,请取消注释
- #GRUB_DISABLE_LINUX_UUID=true
- # Uncomment to disable generation of recovery mode menu entries
- #取消注释以禁用恢复模式菜单项的生成
- #GRUB_DISABLE_RECOVERY="true"
- # Uncomment to get a beep at grub start
- #取消注释以在grub启动时收到嘟嘟声
- #GRUB_INIT_TUNE="480 440 1"
复制代码 修改以下内容并保存
更新
重启
REFERENCES:
[1] Ubuntu Documentation – Grub2
|