Famous "Could not find boot partition"

Hi there,

this is the first time, that I tried to install Haiku-OS, and I got the famous “Could not find boot partition” kernel panic during boot. I wasn’t sure whiche device was meant: the destination devices, or the boot media? So I spend some time tinkering around with gparted and partition setup on the target device. But then, looked at the sources of vfs_mount_boot_file_system, an abandoned that idea. Tried another USB key, and now the setup is working as expected.

So, just for feature references, if someone encounters the same error: just try another USB device. :slight_smile:

4 Likes

Welcome :waving_hand:t2:

Don’t forget to let us know of your first impressions.

What I’ve done is:

  1. Initialize the drive using the GUID partition map scheme.
  2. Create the BeFS partition. Format that file system.
  3. Create the EFI partition as EFI. Format that file system as FAT 32.
  4. Install Haiku.
  5. In the installer’s menu bar, the EFI/FAT32 partition should show up for the install boot loader option.
  6. Reboot and remove installation media.
  7. Success!
2 Likes

If you can:

  • report the not working USB boot device (now that you have a working Haiku, use listusb to locate it and report listusb -v /dev/bus/usb/../… for this device in a ticket

  • maybe you don’t connect the new device in the same USB port, or it’s not running in the same USB speed. If you can report about potential difference here, it could help too.

2 Likes

Those are exactly right. !

In case non-EFI boot, if you install Haiku to USB thumbdrive or USB attached external drive, it matters which USB port you use to install and boot from, especially if you have more devices plugged in at boot time.

Generally you can install Haiku onto drives in any USB port, and boot from those drives plugged in any ports - especially if the drive is a thumbdrives or flashdrive in USB external case, without a motor, that would need a higher voltage too.
Previously - till USB 2.0 - there were ports provided these higher volts specified, but not all ports, so it was exactly named which port capable to attach an external HDD with one cable,
so then there were Y-type cables to attach such USB 2.0 cases - using 2 ports, instead one, to have enough voltage to spin the motor too, if there were no such ports in the machine.

Besides not all ports was connected to USB hubs with several speed, so there were separated by speed as well. So it mattered which port you used in case Haiku install.
Not just becase the speed of the access, but the several USB versions’ support status in Haiku. For example interestingly USB 3.0 and USB 2.0 services were differently regarding input devices, storage devices, or miscellanous devices. Especially nowadays when you can plug a cheaper USB 2.0 drive (that’s often cheaper due to the USB version, not the quality or capacity of the drive itself) and a more expensive 3.0 or 3.1/3.2 thumbdrives, and the port connected to both EHCI and XHCI hubs internally. In case Beta4 I had to switch from Sandisk to Samsung big capacity thumbdrives, as Samsung has a better fallback support to USB 2.0, that seemed that needed in case storage in case Beta4. On the Sandisk drive I had Haiku BFS corruption issues, meanwhile there were no yet memory errors (then) by the laptop system diagnostic. It had put an end with the Samsung FIT drives with the same 256 GB as the Sandisk had which was stricktly USB 3.0/3.1 drive - it seems. As general BFS drive now works for me as a backup archive drive, with USB A and USB C connector - flawlessly.

Haiku had not tolerated if I put another port when it was plugged during install - sometimes stalled at booting, I do not remember at which icon .. sometimes even none lit up.

In case legacy boot, if I just relied on to boot order to boot from USB storage device, then it had mattered in which port it was plugged in .. as BIOS wanted to find for boot device first in a specific port, and there were plugged in another USB storage device without any bootable drive (if not partitioned) or partition, then do not skipped that drive or partittion and went to the next, but immediately reported to not found any bootable partiton. THIS IS BIOS stuff NOT Haiku.

Of course, Haiku bootloader also can report that cannot find bootable partition, that’s another issue to resolve. I described potential issues before the bootloader run at all. Sometimes the Haiku already installed, just the partitioning issue should resolved, or a Bootman install would help to boot the Haiku - selecting the appropriate from many partitions, or the UEFI should be reconfigured, or created a ESP partition for it at all, and put the bootloader file(s) there. This way many possibilities can be that block the boot the Installed Haiku or boot the USB installer drive at all.

1 Like

@phoudoin

I did inspect the key under linux and now I see, it has a partition of type ISO9660 Filesystem. That explains the invalid SCSI probes.

I’m not sure how this could happen, it’s some time ago that I prepared that USB storage key by using balenaEtcher. Maybe it was the wrong installation media, or it was written with wrong filesystem type. With the second stick (which worked OK), I used the torrent download, while using the direct download for the stick that did not work out ok.

Also Linux marks the “faulty” USB stick filesystem as read-only.

befs: (sdd1): No write support. Marking filesystem read-only
befs: (sdd1): ag_shift disagrees with blocks_per_ag.

Yes, the USB stick is in service for several years, but I did not suspect it to have faulty hardware function.

I believe the filesystem is the key.

Will provide lsusb output later, but I doubt it’s really about the device.

Also, there is no indication that different USB ports would have improved the situation, I tried multiple ports with the same result.

I strongly suspect the filesystem, but why that was set to iso-9660 I can not reconstruct easy. However, it would totally make senso when burning the Haiku ISO to CD-ROM.

Linux doesn’t support writing to BFS, so this is a normal message to get. It doesn’t mean there’s anything wrong with the USB stick.

The anyboot image contains an ISO9660 portion to be able to be CD booted, yes. This is also normal.

1 Like

@phoudoin

“now that you have a working Haiku”

Well, I’m not there yet. Altough Haiku was installed, it looks like it did not manage to set the boot flag and so it still needs the USB key to start up. Also, it seems like software installation is not persistent. I’ll need to try a third installation. Definitly will report the listusb output then (But I need a connection to a system correctly setup, first things first).

Thanks for all the replies :-).

Yes, of course.

Installation was easy and really fast, - except the USB key error, but I wouldn’t blame Haiku for that. Booting and Haiku seems to be some story that you can spend some time with. For example, there is rEFInd Boot Manager, which looks quite interesting as a boot manager for haiku.

The Haiku GUI is fast and “snappy”, it all looks integrated into the GUI concept and it has the right amount of simplicity. All in all it seems to be an OS with soul in it. If you like retro OS/Computers for their simplicity, Haiku seems to be the right choice for x86/x64 computers, in addition it opens up the possibility to use it for daily tasks, - as it comes with many modern software packages. Networking (LAN and WLAN) worked right out of the box, printing seems to be possible via IPP (but I didn’t come that far, yet).

Definitly not a bad choice to have Haiku running, it’s a place where you want to stay.

Of cource, thats just first impressions and once you go down the rabbit hole, you probably find annoying things, too. :slight_smile:

1 Like

Indeed. Try to set the “Message” screensaver. Recently I found that It causes kernel panic on my machine. I want to confirm that before sending an issue ticket.

I created a ticket, it’s #20438.


Sidenote:

Now printing in color via the LPR protocol. I’m using an Samsung C460w printer. In Haiku I selected Gutenprint/Samsung C620 as the device, as the C460w was not listed.

1 Like

No problems with that screensaver here (Intel NUC).

This crash in Message screensaver was fixed in nightly by @waddlesplash

1 Like

I deduce that you’re using a nightly version of Haiku, right?

Now printing in color via the LPR protocol. I’m using an Samsung C460w printer. In Haiku I selected Gutenprint/Samsung C620 as the device, as the C460w was not listed.

Does it works fine?

Do you use a Nightly version?

Yes, the test page printed fine.

@Ostrowski

Do you use a Nightly version?

I don’t think so. It’s R1/beta6 hrev59866+92

One thing you can not stress enough:

it all starts with the partition tables, one must recognize that this will influence all the way.

Maybe it’s best to keep both tables in sync: USB and SSD, either GPT OR MSDOS/Intel/MBR Scheme.

When mixing these schemes, you may have to switch often between these modes (which requires entering and adjusting the boot configuration of your computer), while getting used to Haiku installation.

Right now I’m stuck with an legcy MsDos scheme on the SSD. Before installation, you may want to think twice about it and change the partition scheme of your harddisk to GPT, as most modern tools support that scheme.

Anyway, you must pay sharp attention on how automatically boot your installation.

The installer won’t do this for you in every case.

For example there are tools like “BootManager” (not to be confused with the boot loader that every haiku installation comes with, that shows up when pressing shift during startup) and “makebootable” - these come with the OS. Chances are good, that you will need to invoke these tools (but I can only speak for the legacy mode for now).

And about different USB ports: different partition schemes may result in requirement of different USB port. The one that worked for setup A (MSDOS) may no is the right one for setup B (GPT).

EFI has its own path and there too you have to look closely, I’m not saying it’s easier, but it’s probably the more comfortable way.

(This post is not about the error message of the topic, it’s just an general observation)

Also, I’m not complaining about Haiku here, I really like how haiku does not make assumptions and lead you to a whol lot of choices, which it does not decide for you :grinning_face: .

makebootable is involved very early in the boot process, when loading stage 2 of the bootloader. If you get to “could not find bott partition”, you are way past that, already running the kernel. In that case, makebootable will not help.

I think we can remove it from the equation in most cases, since Installer already runs it automatically. However its name sounds like it may fix such problems, it doesn’t, unless you are trying to perform an install manually without using Installer, or if you are trying to move or resize a partition with an existing install.

1 Like

Sorry for confusion :slight_smile: .

As I said, no complaints here. The USB storage key is a problematic one, but I exchanged it and installation went through.

Yes, you are right about makebootable. It’s just that you have to understand, when running installation in UEFI mode - for a destination that has legacy MSDOS partition scheme, reboot will lead you to nowhere, without switching modes in UEFI/BIOS.

It probably possible to lookup the partition scheme of the destination drive, but without digging, you won’t know which scheme it is.

1 Like