Can't boot Ubuntu after successful installation

Ubuntu Version:
Example: 24.04 LTS

Problem Description:
I installed Ubuntu 24.04 LTS on the computer (HP Elite) of my aunt, where there was Windows installed until then. The installation (from a Live USB) went well but after restarting the computer, booting failed. I had a message from the BIOS telling me to install an OS because it didn’t find a Device Boot. Yesterday I used Boot Repair to have a summary info then made the repair, it still wouldn’t boot. It indicated that the problem could be that the boot files where too far for the BIOS to detect them, so I created a boot partition closer to the start of the disk, reran Boot Repair, still didn’t work. This morning I reinstalled Ubuntu, this time choosing manual installation to set my partitions, and I did (more or less) as told in the (french) Ubuntu documentation on manual installation (https://doc.ubuntu-fr.org/tutoriel/partitionner_manuellement_avec_installateur_ubuntu). Following the doc, I created a 36Mo partition in ext4 (since I had no option to select FAT32) and a 35Mo partition (intended for the BIOS-Boot), then a 2Go partition mounted to /boot, then the rest of the Mos (100+Go) mounted to the root /. Installation again went successfully and restarting again failed. Reran Boot Repair, still doesn’t work… I’m really not a hardware person and I’m at loss for solutions, so I hope finding help with you. My aunt tells me it could come from the computer itself, which is an “old” (at least 6 years) company computer (it belonged to the French social security), which she bought in a repair shop. What could be the solution?

Relevant System Information:
You can find everything in the two last Boot Repair summaries: one before last repairing it (https://paste.ubuntu.com/p/jrgGDwB9TC/) and one after last repairing it (https://paste.ubuntu.com/p/CPYcH7pbnz/).

Thanks a lot for any help or advice you could give me!

If it is really 6 years old, then you should install in UEFI mode with GPT

Power on and quickly tap F10 to access the HP BIOS/UEFI set up
Main > Born on date?
System Configuration > Boot Options > UEFI Boot Order or Legacy Boot Order?

1 Like

Thank your for your reply!

Yes it’s at least 6 years because she bought it in 2019 and it was not new. I didn’t find “Born on date”, but “Current BIOS Release Date” which is 04/12/2018. There’s also “Video BIOS Revision” which is ATI 08/22/14 (maybe it’s not a date actually). Boot Mode is set to Legacy, and Legacy Boot Order is indeed in black font (when UEFI Boot Order is in gray). Should I change Boot Mode to UEFI and reinstall Ubuntu? (What is actually the difference between these two modes?)

Yes, absolutely
Also, allow the installer to automatically create the partitions (GPT is the default)

You can check that you have booted the installation disk in UEFI mode with this terminal command:-

[ -d /sys/firmware/efi ] && echo "UEFI" || echo "Legacy"

UEFI mode offers faster boot times, support for modern hardware, including drives larger than 2TB
Plenty of info on the internet when you have time to investigate

1 Like

It will probably be simpler with a GPT disk to install in UEFI mode and to do that, you need to have that option in the BIOS and select it on boot.

Installing in legacy mode on a GPT disk requires a 1-2MB partition that must be unformatted and is generally best near the beginning of the drive. I don’t know what the first 2 partitions are, maybe one a separate boot but your bios_boot is sda4.

1 Like

Microsoft has required vendors to install in UEFI boot mode to gpt (only) partitioned drives since 2012. The old BIOS mode required MBR partitioning. Newer laptops since about 3020 are UEFI only, even if called “BIOS”. My Dell says BIOS, but once in BIOS it says UEFI boot only.

HP also has a unique requirement. When grub installs in UEFI mode, it uses efibootmgr to ad an entry to systems UEFI one time & default boot entries. But HP resets back to Windows. Those with HP have said they can go into HP’s system setting & under boot, select Ubuntu as first in boot order. Grub will boot working Windows, but that means, no hibernation, no fast startup, no bitlocker & no chkdsk required. If you want those you should be able ot dual boot from HP’s one time boot menu. Windows is known to turn fast startup back on, so if grub does not boot Windows, you can directly boot from HP’s UEFI one time boot menu to make repairs.

3 Likes

Thanks for your answer and advice! I forgot to ask though… should I select “UEFI Hybrid (With CSM)” or “UEFI Native (Without CSM)”?

Thanks for your answer! Yeah I forgot to tell but there was indeed this 1-2MB partition that was automatically added one the first automatic install of Ubuntu, and then automatically added in the manual partitioning after I had added the sda3 partition mounted on /boot. (sda1 and sda2 I created to “match” what was asked in the documentation on manual installation, but I clearly missed something because it seems there weren’t used in the end)

Select UEFI Native

Before you install, don’t forget to back up your aunt’s data
During the installation, choose Erase Disk and Install, allowing the installer to automatically create the necessary partitions.

Here’s a guide if you need it
Install Guide

Thank you A LOT! It worked!!

Splendid - I hope your aunt is pleased with your efforts

If a post answers a question, please check the “solved” box. It means that the poster is recognised for their help and it makes it easier for others to find the solution.

The above quote is found Here - First section Item 8

Yes very, she can’t stop repeating she’s happy she’s gotten rid of Microsoft :smiling_imp: and I’ve just installed Ubuntu on her second laptop!

Sorry, I previously checked the solved box but I had 503 errors. I’m trying again right away! Thanks again for your appreciated help. :blush:

1 Like

This topic was automatically closed 6 hours after the last reply. New replies are no longer allowed.