I’ve put Haiku on a hard drive using the .iso image a few times, but one thing always stumps me: getting the bootloader to where the computer can see it.
Apparently copying files from a BFS partition runs the risk of corrupting the destination partition, and I don’t want to ruin the setup I already have (a dual-boot of Windows 10 and Xubuntu). Which leaves me at an impasse: no other system can read Haiku partitions, so how do I get the file safely from the Haiku installation to my boot partition?
It doesn’t help that Haiku doesn’t have the lsblk command either.
an iso image is special disk image, if your OS provides this you will have to mount it somewhere as a loopback device to make the internal partitions visible, and then mount it.
The easier option is to boot from the haiku installer and copy the file from the installers esp to the hard drives esp directly.
The partitions are named “Haiku” and “Haiku ESP”, no way to miss it.
If you go Haiku, just “Try” instead of “Install”, right-click on the desktop and choose from the mount submenu.
If you don’t and you are not keen on the command line, just insert the USB with your preferred system booted. If it is not automounted, go to wherever the disks are shown in that system or fire your preferred disk utility (gnome-disks would do) and mount it from there. You can do the same with the iso.
I meant my computer’s esp, but yeah, Ventoy has its own boot partition. Starting to think I should use something else to reduce the number of surprises.
Still the same but pointing to your computer disk. If using Haiku and the partition doesn’t have a recognizable name or you are not sure, scroll to the right in DriveSetup to see the partition types. The EFI one should be “EFI system data”. You can mount it from within DriveSetup.
You don’t have to copy the bootloader from Haiku, you can do so from any of your other systems if you feel more comfortable there. I don’t know about Windows, but I guess Xubuntu has the same gnome-disks utility I used in my screenshots, so you can get it from the iso or the usb and put it in your system disk EFI partition, which is probably already mounted under /boot/efi.
Have you had a look at UEFI Booting Haiku | Haiku Project? You will have a “system” partition where the different bootloaders will be and should already contain the ones for Windows and Xubuntu, and select the appropriate one on boot from the firmware (or have a general one like grub, refind or the like that will manage the others).
I’m definitely confused. I have GRUB installed; I have an entry for Haiku; what I don’t have is a way of pointing GRUB to Haiku’s .efi file. Which is why I’m trying to copy it to my esp.
Not so much confused, then. That is exactly what you need. Get the efi file from the iso/usb, put it in its own directlry in the EFI partition of your system disk, and tell a menuentry in the grub config to load that.
And therein lies the problem: how to mount or extract or generally get at the image’s contents, which, as I said, is awkward because said image was copied, not extracted, to my USB stick.
It’d be so nice if I could just grab the one from a Haiku installation…