UEFI boot Ubuntu 12.10 on 520-series
Posted: Tue Nov 13, 2012 3:15 am
I'm having trouble booting straight into Ubuntu 12.10 (64bit) on a GPT disk which also has Windows 8 on it. Windows was installed first, followed by Ubuntu (maybe that was a mistake!). I have the latest BIOS from Lenovo, 1.39 (29th Oct 2012).
Both Windows and Ubuntu created entries in NVRAM, which can be seen in the BIOS setup, and also when I press F12 on bootup. I can boot Ubuntu from the F12 menu -- in that case the computer boots up Grub2 with no problems, and then from Grub2 I can either boot Ubuntu or Windows 8 (actually, to get Windows 8 to boot from Grub, I had to run boot-repair in Ubuntu because the standard Ubuntu dual-boot install didn't get this right). But if I set the NVRAM "Ubuntu" entry as the first (default) entry in the BIOS, then on bootup the W520 can't boot straight into Grub2, and instead presents me with the startup choices screen (the same one you get if you press F12). Manually choosing the Ubuntu entry boots into Grub2 OK. The same behaviour occurs if I disable the "Windows Boot Manager" entry in BIOS, and even if I delete it -- I am forced to choose the Ubuntu entry manually, it won't boot automatically into Grub2. On the other hand, if the Windows entry is the default in BIOS, then the computer boots straight into Windows. (NB Don't delete the Windows entry if you can't boot Windows from Grub!!)
I've tried leaving the "Windows" entry as default and replacing the .efi file it points to (bootmgfw.efi in the /EFI/Microsoft/Boot/ folder of the EFI system partition) with the Ubuntu file (grubx64.efi from the /EFI/ubuntu/ folder). But the Lenovo BIOS seems to realize what I'm up to and won't let me boot it automatically (it forces me to select the entry). In this configuration, selecting the "Windows Boot Manager" entry boots into Grub2, as expected. But I don't get why the BIOS won't boot straight to Grub and forces me to choose it manually.
My ideal is to get the Grub2 menu to appear automatically at boot time, from which I can then choose either Ubuntu or Windows. I know I can do this with the F12 bypass, so "why bother?". But it's a matter of principle. Windows shouldn't be the only operating system to boot up automatically.
Any thoughts or experience with setting this up correctly?
Both Windows and Ubuntu created entries in NVRAM, which can be seen in the BIOS setup, and also when I press F12 on bootup. I can boot Ubuntu from the F12 menu -- in that case the computer boots up Grub2 with no problems, and then from Grub2 I can either boot Ubuntu or Windows 8 (actually, to get Windows 8 to boot from Grub, I had to run boot-repair in Ubuntu because the standard Ubuntu dual-boot install didn't get this right). But if I set the NVRAM "Ubuntu" entry as the first (default) entry in the BIOS, then on bootup the W520 can't boot straight into Grub2, and instead presents me with the startup choices screen (the same one you get if you press F12). Manually choosing the Ubuntu entry boots into Grub2 OK. The same behaviour occurs if I disable the "Windows Boot Manager" entry in BIOS, and even if I delete it -- I am forced to choose the Ubuntu entry manually, it won't boot automatically into Grub2. On the other hand, if the Windows entry is the default in BIOS, then the computer boots straight into Windows. (NB Don't delete the Windows entry if you can't boot Windows from Grub!!)
I've tried leaving the "Windows" entry as default and replacing the .efi file it points to (bootmgfw.efi in the /EFI/Microsoft/Boot/ folder of the EFI system partition) with the Ubuntu file (grubx64.efi from the /EFI/ubuntu/ folder). But the Lenovo BIOS seems to realize what I'm up to and won't let me boot it automatically (it forces me to select the entry). In this configuration, selecting the "Windows Boot Manager" entry boots into Grub2, as expected. But I don't get why the BIOS won't boot straight to Grub and forces me to choose it manually.
My ideal is to get the Grub2 menu to appear automatically at boot time, from which I can then choose either Ubuntu or Windows. I know I can do this with the F12 bypass, so "why bother?". But it's a matter of principle. Windows shouldn't be the only operating system to boot up automatically.
Any thoughts or experience with setting this up correctly?