How to update grub on a dual boot machine? - Ask Ubuntu


i have machine installed ubuntu 16.04 on 1 partition , ubuntu 16.10 on another. have 200m partition mounts /boot/efi.

basically use 16.04 , use grub installed 16.04.

sometimes on 16.10 , update kernel. however, cannot update grub of 16.04 without entering it. have grub-install on 16.10 in order boot new kernel. when come 16.04, update-grub , grub-install, stupid think.

how can update grub of 16.04 without entering it, there solution?

can updating grub config file or using partition /boot? kind of operation dangerous?

you can directly boot partition, not specific kernel. debian based (not sure others distributions) add link in / newest kernel , second newest also. boot link newest kernel. turn off os-prober, copy boot stanza drive & partition 40_custom.

backup current grub.cfg , edit 40_custom

sudo cp -a /boot/grub/grub.cfg /boot/grub/grub.cfg.backup sudo nano /etc/grub.d/40_custom 

add entry 40_custom, use drive & partition in place of (hd1,1) & sdb1:

menuentry "install on sdb1" {     set root=(hd1,1)     linux /vmlinuz root=/dev/sdb1 ro quiet splash     initrd /initrd.img } 

edit grub turn off os-prober:

sudo nano /etc/default/grub 

add line grub not add entries , update grub:

grub_disable_os_prober=true 

and update grub changes:

sudo update-grub 

older similar entry, has uuid version:

how add grub2 menu entry booting installed ubuntu on usb drive?

details: how to: create customized grub2 screen maintenance free.- cavsfan

https://help.ubuntu.com/community/maintenancefreecustomgrub2screen

https://help.ubuntu.com/community/grub2/custommenus


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User