Score:0

How does this system boot ubuntu?

nl flag

I have an Impish system that cannot boot in EFI mode but CSM/BIOS/Legacy compatibility only due to some firmware setup issues (CAN'T SAVE ANY SETTINGS). However, I have 3 OSes on this GPT drive as you can see below. I am trying to understand :) my system and I found very valuable resources from this community for instance ''EFI boot partition'' and ''biosgrub'' partition.

or this with @oldfred: Legacy boot only available

I ended up on this scenario after I reinstalled Impish and at the end of the installation failed to install grub on /dev/sda. I tried to create a small boot partition with bios_grub flag on the first sector but failed. Before that, I moved to ubuntu fs (sda1) to make room for this new (sda9) partition. I knew that should be unformatted but I think only ext4 has been accepted. I am not remembering exactly what I did, but it boots OK now just don't understand how. Only Rod S will know that :)

My question is how does this system boot since the bios_grub flag partition is not what is supposed to be: grub2core.img.

enter image description here

root@zika:/etc/apache2# efibootmgr
EFI variables are not supported on this system.
root@zika:/etc/apache2# efivar -l
efivar: error listing variables: Function not implemented
root@zika:/etc/apache2# root@zika:/boot/grub/x86_64-efi# ll
total 300
drwxr-xr-x 2 root root  12288 Jan 31 17:39 ./
drwxr-xr-x 7 root root   4096 Jan 31 20:44 ../
-rw-r--r-- 1 root root 143360 Jan 31 17:39 core.efi
-rw-r--r-- 1 root root 143360 Jan 31 17:39 grub.efi
-rw-rw-r-- 1 root root     98 Jan 31 17:39 load.cfg
oldfred avatar
cn flag
Your bios_grub must be unformatted, not ext4. But you are showing an ESP, and if drive is gpt, then Windows only boots in UEFI mode. So then you should install Ubuntu in UEFI mode. What is issue with UEFI? And what brand/model system. Some do need extra settings. But if you always want to boot from UEFI boot menu, not grub you can have Ubuntu in BIOS mode & Windows in UEFI mode. UEFI & BIOS are not compatible or once you start booting you cannot change. Or a BIOS grub cannot offer to dual boot UEFI Windows.
Brad Thompson avatar
nl flag
BIOS setup issues (CAN'T SAVE SETTINGS)
Brad Thompson avatar
nl flag
How to install ubuntu in UEFI mode when my machine starts in Legacy?
oldfred avatar
cn flag
What brand/model? Some require you to set UEFI password (never lose that or reset to blank when done). Some like Acer require control S to get to extra settings. Many also need UEFI update to latest available and many with SSD need SSD firmware update. My Samsung NVMe drive had a separate bootable ISO with latest update.
Brad Thompson avatar
nl flag
HP15 and BIOS F.18
Brad Thompson avatar
nl flag
@oldfred can be an option instead reinstall ubuntu to install grub in efi mode on the same esp partition along W10? efibootmgr output: EFI variables are not supported on this system.
Satoshi Nakamoto avatar
lc flag
You clearly have broken your EFI partition, depending on the scenarios it's possible or not to reinstall. The problem I think is you mixed UEFI with BIOS, that's one reason for the conflicts between OSes. To configure your BIOS sometimes you have to set a "security password" BUT BEWARE TO NOT FORGET THAT PASSWORD. Once the password is set it will be allowed to change settings inside that BIOS.
oldfred avatar
cn flag
Found that error on other systems. You may need to install efivars. https://itectec.com/unixlinux/efi-variables-are-not-supported-on-this-system/ Which should be available if in UEFI boot mode.
Brad Thompson avatar
nl flag
@Type-O do not confuse my actual issue with old issues. I do not have EFI on ubuntu partition.
ru flag
Just going to make a point but if your system doesn't let you save BIOS options you're going to be *extremely* limited with how you can get everything booting properly and working. Legacy or UEFI modes are enforced by BIOS. if the BIOS won't let you save the UEFI or Legacy MBR mode settings, then you need to start by handling that part which will require you to go to HP for support to repair the BIOS problems first.
Brad Thompson avatar
nl flag
@Thomas Ward thank you for confirming what I knew for almost 6 years. And yes HP support is 'ZERO' as expected if you do not buy the extended warranty, In fact, this is a 2014 purchase so what would expect?
Brad Thompson avatar
nl flag
I can enter to BIOS but I can not save any changes. I tried to upgrade but failed. It is a HP14 but this is another story. Now the question is how come I am able to boot when bios_grub partition is empty?
Brad Thompson avatar
nl flag
@Tyþë-Ø if you do not mind I will like to explore the option you suggested previously. I mean BIOS "security password"
Satoshi Nakamoto avatar
lc flag
`/dev/sda3` "EFI system partition" -- it's ridiculous you telling me that you don't have an EFI partition, sure it explains why it doesn't work, there's even an error sign beside. Since I already successfully booted 300 machines in my previous experiences, I strictly recommend that you FIX your EFI partition. It simply will never work without it.
Satoshi Nakamoto avatar
lc flag
You have to set a password for the administrator of BIOS not simply put a user password.
Satoshi Nakamoto avatar
lc flag
Now that I read your post carefully and completely, I have seen many mistakes there. Since you cannot change BIOS settings (and you need to know for sure that you can). You tried to install UEFI OS into a CMS BIOS (notice that CMS/BIOS are not the same as the old BIOS legacy). You left broken partitions like unrecognized EFI. You have assign flag for a partition which you're not supposed to do(the system is the only who should do that automatically) which will lead to breaking other OSes. Make a full backup, erase your full partition using Gparted and make sure you re-install EFI at beginning
Brad Thompson avatar
nl flag
do you know why I have an EFI partition in my present settings?
Brad Thompson avatar
nl flag
let's say I assigned an admin password in firmware settings. The next step is to save and exit. But my firmware does not save ANY settings. How this will solve?
Brad Thompson avatar
nl flag
I am still not getting an answer to my question: How does this system boot? I am not interested to find how many mistakes are in partitioning my HDD because I know there are a few or how to fix them because in this present machine state not much can be done without compromising other OSs.
Brad Thompson avatar
nl flag
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/133978/discussion-between-brad-thompson-and-tye-o).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.