文件位置

    1. sudo /etc/default/grub
    1. # If you change this file, run 'update-grub' afterwards to update
    2. # /boot/grub/grub.cfg.
    3. # For full documentation of the options in this file, see:
    4. # info -f grub -n 'Simple configuration'
    5. GRUB_DEFAULT=0
    6. #属性名:默认启动项(就是我要的开机默认启动系统)
    7. #值说明:
    8. # 数字:从0开始(按照开机选择界面的顺序对应)
    9. # saved:默认上次的启动项
    10. #GRUB_HIDDEN_TIMEOUT=0
    11. #属性名:是否隐藏菜单(grub2不再使用)
    12. #值说明:0:不隐藏,1:隐藏
    13. GRUB_HIDDEN_TIMEOUT_QUIET=true
    14. #属性名:是否显示等待倒计时
    15. #值说明:true:不显示,false:显示
    16. GRUB_TIMEOUT=10
    17. #属性名:进入默认启动项的等候时间
    18. #值说明:单位:秒,默认10秒,-1表示一直等待
    19. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    20. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    21. #属性名:内核启动参数的默认值
    22. #值说明:quiet splash为不显示启动信息,安静的启动,如值为空则显示启动信息
    23. GRUB_CMDLINE_LINUX=""
    24. #属性名:手动添加内核启动参数
    25. #值说明:默认为空,可以添加你需要的参数,以 “name=value” 的格式添加,多个参数用空格隔开
    26. #例如:GRUB_CMDLINE_LINUX="name1=value1 name2=value2"
    27. # Uncomment to enable BadRAM filtering, modify to suit your needs
    28. # This works with Linux (no patch required) and with any kernel that obtains
    29. # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    30. #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
    31. # Uncomment to disable graphical terminal (grub-pc only)
    32. #GRUB_TERMINAL=console
    33. #属性名:是否使用图形介面
    34. #值说明:默认使用图像界面,去掉前面的“#”则使用控制台终端
    35. # The resolution used on graphical terminal
    36. # note that you can use only modes which your graphic card supports via VBE
    37. # you can see them in real GRUB with the command `vbeinfo'
    38. #GRUB_GFXMODE=640x480
    39. #属性名:图形界面分辨率
    40. #值说明:分辨率啦(还要怎么说明),修改时记得去掉前面的“#”
    41. # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    42. #GRUB_DISABLE_LINUX_UUID=true
    43. #属性名:grub命令是否使用UUID
    44. #值说明:不知道是干什么的,不常用(如果你知道,欢迎留言,谢谢)
    45. # Uncomment to disable generation of recovery mode menu entries
    46. #GRUB_DISABLE_RECOVERY="true"
    47. #属性名:是否创建修复模式菜单项
    48. #值说明:true:禁用,false:使用,默认false
    49. # Uncomment to get a beep at grub start
    50. #GRUB_INIT_TUNE="480 440 1"
    51. #属性名:启动时发出哔哔声
    52. #值说明:默认不发声,去掉“#”则发声,值是什么意思不明白(应该是发出声音方式吧)