Thursday, February 15, 2018

Weird system behaviour after enabling UEFI boot mode



Currently I'm running dual boot system (Windows 10 and Ubuntu 14.04) both booting in legacy mode by windows boot manager. My notebook is hp8560w. My notebook comes with no operating system so I have installed them both myself. I have no secure-boot option in BIOS menu (I mean the menu with system options, I don't know how to call it exactly because it's written at startup as "F10 Bios Setup" but I read somewhere that UEFI completely replace BIOS, so I'm confused a little about terminology).



Some time ago I discovered there is an option in BIOS menu called UEFI Boot mode
enter image description here



So I assume that my motherboard supports it.



Weird Thing





  • After enabling it - when I boot Windows then restart the computer, my Boot Manger turns from



enter image description here



to



enter image description here




Note: these are not exact screens of my boot managers, my entry labels are the same, I just want to show the look.




  • My windows installation boot a lot faster, from 30 seconds to 8, compared with Ubuntu installation that boots in 28 seconds without any changes. It seems like windows turns itself to UEFI but in Windows System Information I can read under "BIOS mode" that is still legacy.

  • When I boot ubuntu then restart PC, my boot manager turns into old one.

  • Same thing if I disable UEFI boot mode



Can someone explain to me what happens.





  • Is it Windows boots with UEFI or not?

  • If not, from where comes this windows boot speed up and change in boot manager appearance?

  • Why Ubuntu doesn't change its behavior after enabling that option?

  • Is there a way to boost ubuntu startup like Windows does.

  • Is there a way to make ubuntu installation not changing boot behaviour, I mean switching to the old boot manger and slowing down Windows boot. Maybe some grub configuration?



Any useful answer will be appreciated. Also sorry for my English I'm not a native speaker.




First, terminology: EFI/UEFI is a replacement for BIOS. They work in completely different ways, although some EFIs (especially early ones for PCs) try to emulate the look of the BIOS configuration menus. Unfortunately, many manufacturers refer to their EFIs as "BIOSes." IMO, this just creates confusion, because people drag in their BIOS assumptions, and as often as not, they end up making mistakes as a result. I suspect, but do not know for a fact, that manufacturers chose to do this because it's a sort of shortcut -- people who are even slightly computer-literate know what a BIOS is, so it's easier to just call an EFI a BIOS (because they fill roughly the same role) than to explain what an EFI is.



One extra point: Most EFIs on x86-64 computers provide a feature called the Compatibility Support Module (CSM), which enables the EFI to boot using BIOS-mode boot loaders. This feature is provided as a convenience and a means to help bridge the gap as OSes slowly add EFI support; you can boot DOS, Windows XP, BeOS, NetBSD, and so on using a CSM on an EFI-based computer. You can also boot Windows or Ubuntu using a CSM, although both of these OSes also support EFI-mode booting.



As to what you're seeing, it's possible to switch between EFI/UEFI-mode and BIOS/CSM/legacy-mode booting of a single OS installation. This requires having both EFI-mode and BIOS-mode boot loaders installed. This is relatively straightforward to do for Ubuntu, if you know what you're doing. Windows, though, pretty much ties its boot mode to the partition table type -- an MBR partition table dictates a BIOS-mode boot and a GPT dictates an EFI-mode boot. At least, that's been my understanding. I recently encountered a report of somebody who claimed to have Windows booting in EFI mode from an MBR disk, but he had no idea how this setup had been managed. I suppose there's a chance that you've stumbled into a similar situation, which enables you to switch between EFI-mode and BIOS-mode booting. Another possibility is that you're not changing boot modes but you're switching something that's causing the boot-time graphic to change.



If you have stumbled into a way to easily switch the Windows boot mode, the reason it's not doing the same for Ubuntu is that you need to have both BIOS-mode and EFI-mode boot loaders installed for such switching to work, and you've presumably got just one (probably for BIOS mode) for Ubuntu.



I must advise you that you're heading into potentially dangerous territory, especially if you're really switching between EFI-mode and BIOS-mode booting. Such switching for Windows is not commonly done, so you're unlikely to be able to find any help if you take some extra step that causes it all to stop working. On the Ubuntu side, attempting to install an EFI-mode version of GRUB (assuming you've got a BIOS-mode install now) could lead to problems, since they might both try to use the same configuration file, but require slightly different options. To top it off, a lot of HPs have broken EFIs that tend not to honor their boot manager entries, which can complicate dual-boot scenarios. Thus, if you switch completely from BIOS-mode to EFI-mode booting, you may be in for a struggle to get it working properly.




In sum, pay careful heed to the saying, "if it ain't broke, don't fix it!"


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...