Start up haiku from gpt harddisk

I have a problem. My new computer runs haiku very well, if i start it from usb , but i can not start it from harddisk, because it is gpt (no mbr).

Any solution?

FreeBCD does not allow to add haiku or other systems (only windows) to the boot menu.

1 Like

You can initialize the disk as mbr in drive setup (initialize->intel), but be warned: all data will be gone.
But why dont you use efi to boot Haiku?

How to do that? it is my first system without mbr.

Ok i found this: UEFI Booting Haiku | Haiku Project

Yep, most of the answers are only one search-query away.
Btw if your computer came with some OS preinstalled then chances you already have an EFI partition on that disk. In that case you only have to make space for Haiku (resize the existing non-EFI parititions with 3rdparty tools, use your favorite search engine to get more info how to do that), create a Haiku partition, install Haiku onto it and copy the BOOTX64.EFI file to the EFI partition (into the correct subfolder).
Then either your firware will recognize it automatically or you can install Refind, or you can use any linux distribution to add it to the firmware bootmenu, etc.

I can confirm that Haiku is installable and bootable on GPT partition. One hint worth mentioning is if you make room for Haiku partition by shrinking some other partition, make sure not only its filesystem is BeFS (this is handled by Installer provided by Haiku) but also its type is EB00 (for GPT partition or EB for MBR partition) as Haiku Installer does not do it.

1 Like

Following this, I installed Ubuntu on an older laptop that is using EFI, created a seperate partition for Haiku and ran the Installer from USB stick, install is ok, I can boot into the installed Haiku, but just need some pointers on how to include Haiku on the EFI partition :slight_smile:

Mount the efi partition on the install usb drive (available only on 64 bit install media), also mount the efi partition on your target disk and copy over the folders from the install media to the target.

You can use efibootmgr in Linux to add boot entries. It is recommended that you create a dir haiku in the EFI directory on your EFI partition. Copy our bootloader BOOTX64.EFI and name it haiku.efi. Then you would need to add the boot entry with efibootmgr in Linux. See my info here: GitHub - tqh/efi-example: Self-contained minimal example of building an EFI app (under 64 bit Linux atm) without external build dependencies.

Also most laptops has a way to select boot entry to boot by ESC or some Function key.

I can’t seem to find it on the USB (Recent 64bit nightly)?

Did you mounted the second partition on the install media?

It might not be exactly named like that I just wrote it from memory. It would be on an anyboot image on its EFI partition. Probably /EFI/BOOT/BOOT*.EFI

Seems I had some ‘preformated’ USB stick, removed all and created a new anyboot install to USB
Now I can’t seem to mount the “installed” Haiku and Ubuntu doesn’t seem to see all the partitions on the stick?

Check that bfs driver is loaded with
sudo modprobe befs

OK, managed to get the *.EFI file and copied it over to /boot/EFI/haiku as haiku.efi will try to see for the next step :slight_smile:

1 Like

Did we warned you about the regression in the nightly efi loader? You should ise the one supplied with the last beta.

Maybe this is solved already…

Didn’t manage so far to get this working, one thing I saw is that it’s using some *A (Ubuntu) and *B (Haiku) when I check efibootmngr, wip but don’t have a lot of time to continue, will keep this updated as I go along :slight_smile:

Running efibootmngr shows this atm:

BootCurrent: 000A
Timeout: 0 seconds
BootOrder: 000B,000A,0008,0005,0004,0006,0007,0009
Boot0000 Setup
Boot0001 Boot Menu
Boot0002 Diagnostic Splash
Boot0003 Acer D2D
Boot0004* HDD0: KINGSTON SUV400S37480G
Boot0006* USB FDD:
Boot0007* Network Boot: BRCM MBA Slot 0200 v14.6.9
Boot0008* USB HDD:
Boot0009* USB CDROM:
Boot000A* ubuntu
Boot000B* haiku

efibootmngr -v shows:

BootCurrent: 000A
Timeout: 0 seconds
BootOrder: 000B,000A,0008,0005,0004,0006,0007,0009
Boot0000 Setup FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0001 Boot Menu FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0002 Diagnostic Splash FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0003 Acer D2D FvFile(bcc93540-7ea9-11df-8c4a-0800200c9a66)
Boot0004* HDD0: KINGSTON SUV400S37480G PciRoot(0x0)/Pci(0x11,0x0) Ata(0,0,0)…bYVD.A…O.
ATAPI CDROM: HL-DT-STDVDRAM GT32N PciRoot(0x0)/Pci(0x11,0x0)/Ata(1,0,0)…!N.:^G.V.T
Boot0006* USB FDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0007* Network Boot: BRCM MBA Slot 0200 v14.6.9 BBS(Network,BRCM MBA Slot 0200 v14.6.9,0x0)…^…C…A…
Boot0008* USB HDD: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0009* USB CDROM: VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot000A* ubuntu HD(1,GPT,ec454ac0-883b-4e4d-b0a0-fb648b89a242,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
Boot000B* haiku HD(1,GPT,ec454ac0-883b-4e4d-b0a0-fb648b89a242,0x800,0x100000)/File(\EFI\ubuntu\grub.efi)EFI/haiku/haiku.efi

I can select haiku from the BIOS but it only shows a black screen when booting (nothing showing)