当我启动 Ubuntu 时,会出现一条消息“Ubuntu 的高级格式”作为启动的第二选择。我应该使用那个还是继续使用上面的那个?我是一个 80 岁的懒虫!!!!
答案1
答案2
您现在可以忽略“ Advanced options for Ubuntu
”菜单。如果出现“错误”,您可能需要启动较早版本的 Ubuntu Linux 内核,或者使用不同的选项启动。这种情况很少见,可能永远不会发生。
在我的系统的终端窗口中,我执行了:
grep -E 'menuentry|submenu' /boot/grub/grub.cfg
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
menuentry_id_option=""
export menuentry_id_option
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7e2beb8f-393b-4445-ab82-69824a812d6c' {
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-7e2beb8f-393b-4445-ab82-69824a812d6c' {
menuentry 'Ubuntu, with Linux 4.15.0-43-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-43-generic-advanced-7e2beb8f-393b-4445-ab82-69824a812d6c' {
menuentry 'Ubuntu, with Linux 4.15.0-43-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-43-generic-init-upstart-7e2beb8f-393b-4445-ab82-69824a812d6c' {
menuentry 'Ubuntu, with Linux 4.15.0-43-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-43-generic-recovery-7e2beb8f-393b-4445-ab82-69824a812d6c' {
menuentry 'Ubuntu, with Linux 4.15.0-42-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-42-generic-advanced-7e2beb8f-393b-4445-ab82-69824a812d6c' {
menuentry 'Ubuntu, with Linux 4.15.0-42-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-42-generic-init-upstart-7e2beb8f-393b-4445-ab82-69824a812d6c' {
menuentry 'Ubuntu, with Linux 4.15.0-42-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-42-generic-recovery-7e2beb8f-393b-4445-ab82-69824a812d6c' {
menuentry 'Memory test (memtest86+)' {
menuentry 'Memory test (memtest86+, serial console 115200)' {
看看我的选择是什么。
我找到了更好的解决方案这个 AskUbuntu 答案:
$ awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
Ubuntu
Ubuntu, with Linux 4.15.0-45-generic
Ubuntu, with Linux 4.15.0-45-generic (upstart)
Ubuntu, with Linux 4.15.0-45-generic (recovery mode)
Ubuntu, with Linux 4.15.0-43-generic
Ubuntu, with Linux 4.15.0-43-generic (upstart)
Ubuntu, with Linux 4.15.0-43-generic (recovery mode)
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)