Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 7896  / 3 Years ago, wed, july 21, 2021, 11:26:24

At installation it did not detect Windows. I mounted the Windows partition and have run os-prober with no results returning.



I am able to boot Windows or Ubuntu by specifying the partition in UEFI boot order. The bios does not appear to allow booting with legacy. SecureBoot is on.



This is with Ubuntu 12.04 LTS on a Inspiron 15.



Here is the gdisk:



   1            2048         1026047   500.0 MiB   EF00  EFI system partition
2 1026048 1107967 40.0 MiB FFFF Basic data partition
3 1107968 1370111 128.0 MiB 0C01 Microsoft reserved part
4 1370112 2394111 500.0 MiB 2700 Basic data partition
5 2394112 544743423 258.6 GiB 0700 Basic data partition
6 606183424 625140399 9.0 GiB 2700 Microsoft recovery part
7 544743424 545230847 238.0 MiB 0700 (/boot)
8 545230848 556949503 5.6 GiB 8200 (swap)
9 556949504 606181375 23.5 GiB 0700 (/)


When installing ubuntu, I believe I specified that the bootloader be installed on /dev/sda.



I added the following to /etc/grub.d/40_custom but booting ubuntu did not offer a grub menu:



menuentry "Windows 8" {
set root = "(hd0,4)"

chainloader +1

}


When booting I think I see "EFI Disk error" flash very quickly before Ubuntu starts booting.


More From » boot

 Answers
0

First, try disabling Secure Boot. Although Ubuntu theoretically supports Secure Boot, there are still a lot of problem reports concerning Secure Boot, particularly in dual-boot configurations. I think it's unlikely that disabling Secure Boot will immediately solve your problems, but it will make it more likely that any given thing you try to fix your problem will succeed.



Second, there are a number of things you can try to fix your boot problem, including:




  • Install my rEFInd boot manager. Note that there are USB flash drive and CD-R images you can try before trying the whole thing; however, they won't boot your Linux kernels directly unless you hit F2 or Insert twice and add ro root=/dev/sda9. If you install the Debian package, you should no longer need to do this. The USB/CD-R images should also boot both Windows and Linux via GRUB successfully.

  • Run the Boot Repair tool. This program can fix a lot of boot problems, although it does sometimes fail, and on rare occasion it can actually make matters worse by rendering Ubuntu unbootable.

  • Create a proper /etc/grub.d/40_custom entry for Windows. The one in your original question might work on a BIOS-based system, but under EFI, it will fail. You'd want something that looks more like this:



.



menuentry "Windows" {
insmod part_gpt
insmod chain
set root='(hd0,gpt1)'
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}


Note that this exact 40_custom entry doesn't always work; you may need to tweak it for your system. (What works on one computer often fails miserably on another.)


[#28628] Friday, July 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iedncommon

Total Points: 200
Total Questions: 95
Total Answers: 132

Location: Tonga
Member since Mon, Aug 2, 2021
3 Years ago
;