安裝了win10,而後又安裝了manjaro,最後又安裝了Ubuntu。開機默認就是進入的Ubuntu的grub,然而我比較喜歡manjaro的grub主題。在bios中設置manjaro的引導爲默認引導,可是此時manjaro的grub沒有Ubuntu,進入到manjaro系統,執行以下命令便可:ios
sudo update-grub
原文:https://askubuntu.com/questions/649816/add-new-menu-items-to-grub-boot-menuubuntu
Grub menu entries are auto-generated by sudo update-grub
. Have you tried to run it ? Doesn't it suite your needs ?bash
Otherwise, you can use /etc/grub.d/40_custom to add your custom entries. And then run sudo update-grub to update /boot/grub/grub.cfg.ui
You can however edit manually /boot/grub/grub.cfg to delete an entry. But your change will be lost the next time update-grub will be run by you or automatically by ubuntu when there is a kernel upgrade.code