Opened 11 months ago

Last modified 2 months ago

#18781 new bug

Bootloader (EFI) fails to find a valid BFS boot volume on bare metal

Reported by: win8linux Owned by:
Priority: normal Milestone: Unscheduled
Component: System/Boot Loader/EFI Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description (last modified by waddlesplash)

Attempting to boot Haiku on an EFI-based system fails due to the bootloader not being able to find a valid BFS boot volume. This has been done with multiple flash drives, via both imaging the drives and installing Haiku onto flash drives from a VM install. The usual process for setting up UEFI booting was done. Rescanning does not fix the problem.

Unable to replicate this bug in a virtual machine, only when booting directly on bare metal.

Attachments (21)

IMG_20240203_232500.jpg (2.7 MB ) - added by win8linux 11 months ago.
BFS mount check
IMG_20240203_233851.jpg (2.5 MB ) - added by win8linux 11 months ago.
GUID partitioning module scan fails
IMG_20240214_154406.jpg (3.8 MB ) - added by win8linux 10 months ago.
Start of boot log from a portable install
IMG_20240214_154419.jpg (4.1 MB ) - added by win8linux 10 months ago.
IMG_20240214_154425.jpg (3.7 MB ) - added by win8linux 10 months ago.
IMG_20240214_154438.jpg (4.1 MB ) - added by win8linux 10 months ago.
IMG_20240214_154447.jpg (3.8 MB ) - added by win8linux 10 months ago.
IMG_20240214_154506.jpg (3.9 MB ) - added by win8linux 10 months ago.
IMG_20240214_154519.jpg (4.1 MB ) - added by win8linux 10 months ago.
IMG_20240214_154530.jpg (3.9 MB ) - added by win8linux 10 months ago.
IMG_20240214_154638.jpg (3.4 MB ) - added by win8linux 10 months ago.
IMG_20240214_154818.jpg (3.8 MB ) - added by win8linux 10 months ago.
Start of boot log from drive directly images with a Haiku nightly ISO
IMG_20240214_154824.jpg (3.5 MB ) - added by win8linux 10 months ago.
IMG_20240214_154829.jpg (4.1 MB ) - added by win8linux 10 months ago.
IMG_20240214_154911.jpg (4.2 MB ) - added by win8linux 10 months ago.
IMG_20240214_154921.jpg (3.9 MB ) - added by win8linux 10 months ago.
IMG_20240214_154938.jpg (3.6 MB ) - added by win8linux 10 months ago.
IMG_20240214_154952.jpg (3.5 MB ) - added by win8linux 10 months ago.
IMG_20240214_155005.jpg (3.6 MB ) - added by win8linux 10 months ago.
no_valid_boot_volume.jpg (4.8 MB ) - added by begasus 2 months ago.
debug output
syslog.txt (104.2 KB ) - added by begasus 4 weeks ago.
Syslog data after a boot/reboot from 32bit install with a thumbdrive not wanting to boot, not even after selecting older installed state

Change History (40)

comment:1 by win8linux, 11 months ago

Description: modified (diff)

comment:2 by win8linux, 11 months ago

Description: modified (diff)

comment:3 by waddlesplash, 11 months ago

Keywords: bootman bootloader efi removed
Milestone: R1/beta5Unscheduled
Priority: criticalnormal

Please collect a bootloader log.

comment:4 by win8linux, 11 months ago

What are the steps to get a bootloader log?

comment:5 by waddlesplash, 11 months ago

Please read the documentation; it's one of the options in the bootloader menus.

comment:6 by win8linux, 11 months ago

That option only displays the current bootloader log. Haven't found an option to collect a log yet. What should I be looking for, if what's needed is a photo of part of the log?

comment:7 by waddlesplash, 11 months ago

Yes, the current bootloader log is what's needed here, especially if it can't find valid partitions.

by win8linux, 11 months ago

Attachment: IMG_20240203_232500.jpg added

BFS mount check

comment:8 by win8linux, 11 months ago

Haven't found yet an option to get the full log, so here's a photo of the BFS mount check.

by win8linux, 11 months ago

Attachment: IMG_20240203_233851.jpg added

GUID partitioning module scan fails

comment:9 by waddlesplash, 11 months ago

"could not find partition" is an interesting message.

comment:10 by madmax, 11 months ago

Both partitions are of type ebd0a0a2-b9e5-4433-87c0-68b6b72699c7, which is a Microsoft data partition, not a Haiku BFS one. Either recreate (not just format) the partition with DriveSetup or use your preferred partitioning tool to set its partition type to 42465331-3BA3-10F1-802A-4861696B7521.

comment:11 by win8linux, 11 months ago

This did not fix the issue. Same error still happens when attempted with flash drives, even with the correct part type. Also does not explain why directly imaging a drive with official images still causes the issue.

comment:12 by madmax, 11 months ago

Also does not explain why directly imaging a drive with official images still causes the issue.

It doesn't. Can you get the logs for that case? In the ones provided we have:

  • A GPT disk with two MS data partitions and what is reported as a dirty header. This one would not boot as is due to the partition type.
  • A GPT disk with 9 partitions, only the last two showing, one of them of the correct type, but for whatever reason it says it couldn't scan it. It looks like the disk is discarded? Can we have full logs?

comment:13 by win8linux, 11 months ago

Is there a way to save full bootloader logs to a disk? Otherwise, getting full logs would mean uploading multiple photos.

comment:14 by pulkomandy, 11 months ago

If you have an USB drive with a FAT32 partition connected, the bootloader should offer to save bootloader logs there. However, since the problem you are investigating is about detection of mass storage, it is quite likely that this won't work.

Another option is a serial port, if you have one, but this is very rare on modern machines.

So, only the taking pictures of the screen remains. Yes, it is not very fun to investigate and debug such problems.

by win8linux, 10 months ago

Attachment: IMG_20240214_154406.jpg added

Start of boot log from a portable install

by win8linux, 10 months ago

Attachment: IMG_20240214_154419.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154425.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154438.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154447.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154506.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154519.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154530.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154638.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154818.jpg added

Start of boot log from drive directly images with a Haiku nightly ISO

by win8linux, 10 months ago

Attachment: IMG_20240214_154824.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154829.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154911.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154921.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154938.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_154952.jpg added

by win8linux, 10 months ago

Attachment: IMG_20240214_155005.jpg added

comment:15 by madmax, 10 months ago

Is the HD the system boot device and does the EFI bootloader come from an old version? Remember that it is not updated automatically. I think some of the awkward things I see can only happen if no system is found in the BFS partition, which could happen due to a broken system or a very old loader not supporting current packages.

comment:16 by win8linux, 10 months ago

In both cases, the external drive is using an updated bootloader. The bootloader in the internal drive is not updated, however it is not being used here.

comment:17 by madmax, 10 months ago

Could you try this other loader and see if the log says something more interesting?

comment:18 by waddlesplash, 9 months ago

Description: modified (diff)
Summary: Bootman (EFI) fails to find a valid BFS boot volume on bare metalBootloader (EFI) fails to find a valid BFS boot volume on bare metal

by begasus, 2 months ago

Attachment: no_valid_boot_volume.jpg added

debug output

comment:19 by begasus, 2 months ago

OK, this looks very similar with the problem I'm having here also getting "Boot volume is not valid"

by begasus, 4 weeks ago

Attachment: syslog.txt added

Syslog data after a boot/reboot from 32bit install with a thumbdrive not wanting to boot, not even after selecting older installed state

Note: See TracTickets for help on using tickets.