I have a new Lenovo Thinkpad E560, running Windows 7. I installed Ubuntu 16.10, creating partitions for root, home, tmp, and swap. A partition called "bios_grub" was created automatically.
Now whenever I boot the system it boots to Windows 7. My boot menu does not seem to be from grub, it shows only four items:
Windows ATAPI CD0 – boots from DVD ATA HDD0 – does nothing PCI LAN – does nothing
My question is not "how do I install Ubuntu". I have done that several times, without any major problems. This time, however, although Ubuntu has been installed on my disk, it does not appear in the boot menu.
I booted from an Ubuntu live DVD and ran boot-repair but it tells me it cannot deal with a BIOS boot, only UEFI. So I tried to change the Windows boot to UEFI. The result is no booting system at all, with the following message:
File: \EFI\Microsoft\Boot\BCD Status: 0xc000000d Info: An error occurred while attempting the boot configuration data.
When I changed the boot menu back to BIOS Windows worked again. No Ubuntu boot option.
\EFI\Microsoft\Boot\BCD exists on the EFI system partition, and the partition is flagged as "boot" and "esp" (shown by gparted). There is no other partion flagged as "boot". The disk is GPT. The Windows partition administration says the partition has status "no errors (EFI system partition)". It is the first partition on the disk.
I see two possible ways to proceed:
(1) Can I change my Windows boot to UEFI, so I can run boot-repair successfully?
(2) Alternatively, is there a way to get a dual boot (grub or whatever) running with BIOS?
Any help is appreciated. Please inform me if there is more information I should provide.
Edit: Output from "sudo lsblk -f":
NAME FSTYPE LABEL … sda ├─sda1 vfat SYSTEM_DRV … ├─sda2 ├─sda3 ntfs Windows7_OS … ├─sda4 ntfs Lenovo_Recovery … ├─sda5 ├─sda6 swap … ├─sda7 ext4 … ├─sda8 ext4 … ├─sda9 ext4 … ├─sda10 ext4 … sr0 tso9960 Ubuntu 16.04.1 LTS amd64 … /cdrom loop0 squashfs … /rofs
sudo lsblk -fm additionally gives the following sizes:
sda 931.5G sda1 100M sda2 128M sda3 232.9G sda4 14G sda5 95M sda6 14.9G sda7 9.3G sda8 14.9G sda9 540.2G sda10 105.1G
I installed Ubuntu 16.10 from a live DVD, which I booted via the second item in my boot menu (ATAPI CD0). How can I "start installer in UEFI mode", as oldfred suggested? If I can do that, maybe it resolves my problem.
Sorry, I cannot answer in a comment (size limitation), so I have to edit my original question.
@ubfan1's hint to change my boot options from "BIOS first" to "UEFI first" solved my problem. I re-installed Ubuntu after changing this, and now I have a Grub menu. – ubfan1, if you re-enter this as an answer rather than a comment I will gladly give you credit.