Re: gpt+uefi boot+openbsd+linux

2022-05-25 Thread kelly

I dual boot Arch Linux and OpenBSD off the same hard drive (GPT/UEFI) on my 
Thinkpad X395, and found this very helpful when I
was setting up:
https://functionallyparanoid.com/2017/06/30/boot-all-the-things/

Basically, you set up Arch first, install and configure rEFInd, and then try 
installing OpenBSD on just the remaining partition.
There are some really helpful instructions here on how to get rEFInd to 
recognize the OpenBSD partition that rescued me from the
pit of despair.

Hope this helps you,
Kelly

On Tue, May 24, 2022 at 07:28:26PM -0300, Gustavo Rios wrote:

May some one here suggest a documentation the explains this scenario ? I am
in needof this.

Thanks in advance!

Gustavo.

--
The lion and the tiger may be more powerful, but the wolves do not perform
in the circus




Re: gpt+uefi boot+openbsd+linux

2022-05-25 Thread Stuart Henderson
On 2022-05-24, Nick Holland  wrote:
> On 5/24/22 6:28 PM, Gustavo Rios wrote:
>> May some one here suggest a documentation the explains this scenario ? I am
>> in needof this.
>> 
>> Thanks in advance!
>
> I've actually been experimenting with the UEFI OpenBSD and Windows combo,
> though I suspect it is applicable to Linux, as well.
>
> Warning: I'm trying to avoid GRUB as my boot selector.  UEFI is supposed
> to be able to do this for us.  So I would rather just use it.  I don't
> trust grub to do anything other than Windows and Linux (which is just
> Windows re-invented badly).
>
> Short version: wow...there's a lot variety out there on machines.  If you
> want one answer for all hardware, that's not gonna happen. :-/
> That's about the only certainty I have at this point.  Many UEFI systems
> are only designed to boot Windows it seems, the idea of multiple OSs on
> one disk didn't occur to some people..

rEFInd works pretty well - it's just a boot manager and still uses the
standard OS boot loader to boot the kernel. I didn't like the icons so set
it to "textonly", with it set to autoboot OpenBSD after a short timeout,
which I found much more convenient than the built-in boot manager on the
machine I wanted to dual-boot. Good information about the EFI boot process
(and especially about CSM) on the website - https://www.rodsbooks.com/refind/




Re: gpt+uefi boot+openbsd+linux

2022-05-24 Thread Nathaniel Nigro
I  mount the ntfs partition with the firmware, and hide and unhide
Microsoft's as needed

On Tue, May 24, 2022, 6:31 PM Gustavo Rios  wrote:

> May some one here suggest a documentation the explains this scenario ? I am
> in needof this.
>
> Thanks in advance!
>
> Gustavo.
>
> --
> The lion and the tiger may be more powerful, but the wolves do not perform
> in the circus
>


Re: gpt+uefi boot+openbsd+linux

2022-05-24 Thread flint pyrite
off topic:

I used to do that myself. Now I just run openbsd on two laptops. I have a
box with FreeBSD and bhyve where I run Windows and Linux variations. I wish
OpenBSD had a better hypervisor or at least port byhve.

I use WIndows for porting my applications too. Not the other way around. I
rely on OpenBSD not WIndows.

On Tue, May 24, 2022 at 8:01 PM Courtney  wrote:

> Not sure what your hardware situation is, but I have been able to dual
> boot Linux and OpenBSD no problem. I have Linux on 1 drive and OpenBSD
> on another. At boot I default to my OpenBSD drive. However, to get to
> Linux I use my motherboard's boot menu and select the Linux drive.
> Hasn't been an issue. I'm sure things get muddy when you want them both
> on the same drive..I don't like attempting that anymore for any OS
> combination. Too many headaches.
>
> Courtney
>
> On 5/24/22 15:28, Gustavo Rios wrote:
> > May some one here suggest a documentation the explains this scenario ? I
> am
> > in needof this.
> >
> > Thanks in advance!
> >
> > Gustavo.
> >
>
>


Re: gpt+uefi boot+openbsd+linux

2022-05-24 Thread Courtney
Not sure what your hardware situation is, but I have been able to dual 
boot Linux and OpenBSD no problem. I have Linux on 1 drive and OpenBSD 
on another. At boot I default to my OpenBSD drive. However, to get to 
Linux I use my motherboard's boot menu and select the Linux drive. 
Hasn't been an issue. I'm sure things get muddy when you want them both 
on the same drive..I don't like attempting that anymore for any OS 
combination. Too many headaches.


Courtney

On 5/24/22 15:28, Gustavo Rios wrote:

May some one here suggest a documentation the explains this scenario ? I am
in needof this.

Thanks in advance!

Gustavo.





Re: gpt+uefi boot+openbsd+linux

2022-05-24 Thread Nick Holland

On 5/24/22 6:28 PM, Gustavo Rios wrote:

May some one here suggest a documentation the explains this scenario ? I am
in needof this.

Thanks in advance!


I've actually been experimenting with the UEFI OpenBSD and Windows combo,
though I suspect it is applicable to Linux, as well.

Warning: I'm trying to avoid GRUB as my boot selector.  UEFI is supposed
to be able to do this for us.  So I would rather just use it.  I don't
trust grub to do anything other than Windows and Linux (which is just
Windows re-invented badly).

Short version: wow...there's a lot variety out there on machines.  If you
want one answer for all hardware, that's not gonna happen. :-/
That's about the only certainty I have at this point.  Many UEFI systems
are only designed to boot Windows it seems, the idea of multiple OSs on
one disk didn't occur to some people..

I don't want to use the Windows 10 boot selection process IF I have
another option.  Unlike Windows 7 and before, it seems to boot
95% of Windows, then gives you the menu.  If you pick OpenBSD, it then
totally reboots the machine -- back to the firmware and back up, but
this time to OpenBSD. If you pick Windows, the last 5% loads in a couple
seconds.

IF you install OpenBSD first, you need to puff-out the GPT boot
partition before install.  OpenBSD's default is really tiny, just
enough to boot OpenBSD (as you would expect).  Boot bsd.rd, drop
to shell, MAKEDEV your disk, "fdisk -gb20 sd0" or similar, iirc,
for a 100MB GPT UEFI boot partition.  The default Windows one is
big enough for OpenBSD to share, I'm guessing Linux, as well.

A couple Dell laptops I have with UEFI actually don't suck.  In the BIOS,
there's an option to select various boot targets.  One is "Windows Boot
Manager" or something like that, the others can be loaders pulled out of
the UEFI boot partition.  This ends up working really slickly for dual
booting, and it looks like it would easily extend to multiple OSs.
Basically put each option in your boot list, make the first one your
primary OS (the "no hands" boot).  If you want to boot a different OS,
you hit the boot selection key at the right time (F12? I mark mine with
a bit of paint, so I can't remember what it is).  This brings up a
menu, the menu selections can be readable to humans...  May not be
the ultimate solution for all people, but ... works really well for
me.

I've got a couple older HP systems, not so impressive.  If you to hit
the magic key (F9, iirc) at the right moment, you can poke around
in the boot partition.  Otherwise, it wants to boot a particular OS, and
if I recall properly, I got one booting OpenBSD by default, the other
windows by default, and I have NO IDEA how the default was chosen (or
is it just the firmware on this machine prefers ...?).  One one of them,
I found a 16MB (yes, MB, not GB) SD card, came with an old digicam
(flashback to 12 exposure rolls of film!).  I dropped minirootXX.img
on it, created a /etc/boot.conf file that pointed to pulling the
kernel off hd1a:/bsd and called it done.  Want to run OpenBSD, leave
the SD card in place, want to boot windows, eject the card a little, push
it back in when it's booted.  This is cheesy, doesn't scale to a third OS,
but it works for me in this laptop.

I'm working on a better write-up (with fewer "IIRC"s :) ), but this might
be enough to get you started.

Nick.



gpt+uefi boot+openbsd+linux

2022-05-24 Thread Gustavo Rios
May some one here suggest a documentation the explains this scenario ? I am
in needof this.

Thanks in advance!

Gustavo.

-- 
The lion and the tiger may be more powerful, but the wolves do not perform
in the circus