We know different environment uses different kind of version of Linux, EFI has EFI ones, and Legacy has Legacy one, same for 32 and 64 bit. But is it possible to have a Linux that can run oral kind of environment?

The 32 and 64 bit difference issue is easy to solve, we all know 32-bit software can run on 64-bit hardware. But how about EFI and Legacy? Is there any kind of linux, that can run on both UEFI and Legacy mode? I know installer can run on both environment, but a installed one can't. So is there any stable Linux that can support both environment while it's still supported (not too old to have some security exploit)?

closed as unclear what you're asking by Darius, djsmiley2k, music2myear, Pimp Juice IT, mpy Apr 4 '18 at 19:34

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • "ALL kind of platform" seems very broad. – Kamil Maciorowski Mar 22 '18 at 10:54
  • Are you actually looking for en.wikipedia.org/wiki/X86-64? – tripleee Mar 22 '18 at 11:13
  • @tripleee I'm finding Linux that can run on both Legacy and EFI mode without switching them in BIOS – Andrew-at-TW Mar 22 '18 at 12:02
  • 1
    You either run Legacy, or run EFI. Not both. If you want a Linux installer that can somehow detects the BIOS setting (EFI / Legacy) and install the correct one accordingly - then yes it does exist. – Darius Mar 22 '18 at 12:03

"All kinds of platforms"? There are dozens of platforms that Linux runs on, and you seem to be only talking about two of them. "UEFI" isn't just for x86/x64 – it's also used by other CPU architectures such as IA64 and arm64. It is impossible to have a single Linux kernel which runs on x64 and arm64, for example.

But can you have a Linux installation that runs on x86 in both "Legacy" and "UEFI" modes? Yes. Linux doesn't actually care all that much – 90% of the differences only affect the boot process (i.e. things which happen before Linux is started). The CPU architecture doesn't actually change, so the same Linux kernel and software will work.

All you need for dual compatibility with x86 BIOS and x86/x64 UEFI is to install two bootloaders to the system disk (they can be different, e.g. grub+elilo or syslinux+refind).

  • Then how to achieve it, since I've heard someone that you can't install two boot loader on one linux – Andrew-at-TW Mar 22 '18 at 13:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.