给GRUB添加新的项目
安裝了win10,然后又安裝了manjaro,最后又安裝了Ubuntu。開機默認就是進入的Ubuntu的grub,然而我比較喜歡manjaro的grub主題。在bios中設置manjaro的引導為默認引導,但是此時manjaro的grub沒有Ubuntu,進入到manjaro系統,執行如下命令即可:
sudo update-grub 原文:https://askubuntu.com/questions/649816/add-new-menu-items-to-grub-boot-menu
Grub menu entries are auto-generated by sudo update-grub. Have you tried to run it ? Doesn't it suite your needs ?
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.
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.
轉載于:https://www.cnblogs.com/feipeng8848/p/10735947.html
總結
以上是生活随笔為你收集整理的给GRUB添加新的项目的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: npm i和npm install的区别
- 下一篇: 如何轻松搞定机构资格准入?