Dualboot GNU/Linux and OpenBSD from GRUB2 like a BOSS!

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • Hey guys, in this video I will go over dualbooting GNU/Linux and OpenBSD from grub! It was a bit of a challenge since the OpenBSD FAQ told me, "you're on your own." But I figured out a good solution to chainload with GPT/EFI. I didn't have a UEFI machine to test this on, so if you can't get it to work on UEFI, I can find a machine to test on and will create a future video on the subject. If you like my content, please smack the like button, subscribe and click the notification bell to get all my content hot off the press! Cheers!
    The music in the video by Abstraction Music
    www.abstraction...
    tallbeard.itch...
    Intro - VGMA Challenge - July 8th
    Artwork by Syscrash -
    distrotoot.com...
    My OpenBSD configs
    notabug.org/Ro...
    I'm on odysee now!
    odysee.com/@ro...
    Please support me on Patreon! You help ensures my power and internet stay on!
    / rootbsd
    Mastodon -
    distrotoot.com...

Комментарии • 46

  • @TheOpenBSDguy
    @TheOpenBSDguy 2 года назад +16

    I wrestled with it a bit but got it working on ThinkPad T430 with UEFI enabled. Apparently in some cases GRUB can't read UFS2 (OpenBSD) partition. In that case, can copy the `BOOTX64.EFI` to the EFI partition under `efi` directory and create a sub directory call `OpenBSD` and load it from there. So it would be (for example),
    set root='(hd0,gpt3)'
    chainloader (hd0,gpt2)/efi/OpenBSD/bootx64.efi
    Where gpt2 is the efi partition.

    • @rootbsd1368
      @rootbsd1368  2 года назад +2

      Fantastic, I'm going to pin this. I was worried that all the different hardware out there might need a slightly different method. Thanks man!

    • @VincentLAnderson
      @VincentLAnderson 2 года назад +2

      mightyhouseinc includes seabios with their libreboot and coreboot thinkpads. Seabios has grub within it, so seabios will boot openbsd and grub can boot Linux.

    • @rootbsd1368
      @rootbsd1368  2 года назад

      @@VincentLAnderson I used to have a coreboot laptop with SeaBIOS as the payload and it worked perfectly with OpenBSD. The developers recommend to use that or chainload, do not use kopenbsd, especially with Libreboot or Coreboot. Actually don't be surprised if they don't even want to hear about any issues with a Corebooted laptop, they may tell you to use stock firmware.

  • @TheOpenBSDguy
    @TheOpenBSDguy 2 года назад +4

    Great video. With UEFI if the CSM is enabled, OpenBSD will overwrite the default boot loader.
    I have a ThinkPad T430 that supports both legacy (MBR) and UEFI but I unfortunately I can't test it now. The partitioning and booting is too messy that the test would be inaccurate. Basically, the Linux is installed with MBR on an SSD and OpenBSD on an HDD with UEFI and CSM enabled. Now if I set to UEFI first in BIOS, it boots to OpenBSD directly and if I set legacy first it goes to GRUB. It's a Frankenstein machine ;-)
    To change xterm font (temporary), just hold ctrl and right click, it opens a menu that you can set the font to Large, Huge, ...

  • @tutacat
    @tutacat 4 месяца назад +1

    the physical root location is mainly used as a hint, you should be using the UUID so moving drives will not break the grub

  • @tedbybolf4616
    @tedbybolf4616 2 года назад +7

    I actually dual boot OpenBSD with linux because I am a gamer and I like to play steam games on linux because I can't stand windows.

  • @safi164
    @safi164 2 года назад +2

    In such type of cases I usually use the built-in EFI/GPT boot menu to dual boot during the boot by pressing F10 or F12 or whatever... Its an annoyance but it works.... EFI/GPT does have some good features over BIOS/MBR like a builtin way to dual boot despite whatever OS is set as default to boot.

  • @oktokt
    @oktokt 2 года назад +1

    Good stuff! I just wrestled with a multiboot on a new thinkpad. Used rEFInd and stuck to strictly EFI, but have Windows 11, Ubuntu, NixOS, and finally OpenBSD on an ecrypted partition. Pretty sure I read on the tech list that Theo has the same laptop, so support seems to be stellar.
    Killer music selection! Enjoying the show.

  • @tutacat
    @tutacat 4 месяца назад +1

    The power button is a hardware feature, not an OS feature. What you did there was just pressing the power button once, quickly, which the OS takes as an interrupt, which by default starts the shutdown process. But you can change this on most OSes

  • @Elhamidi0249
    @Elhamidi0249 2 года назад +1

    Nice video buddy. Hope you pull on the gas and give us more content like this.

    • @rootbsd1368
      @rootbsd1368  2 года назад

      Thanks for watching, I hope I'm getting better at this!

    • @Elhamidi0249
      @Elhamidi0249 2 года назад +1

      @@rootbsd1368 You definitely will. Wish you all the very best.

  • @dickindynamo
    @dickindynamo 2 года назад

    Big thumbs up bro, it works! I appreciate the work my man!

  • @rootbsd1368
    @rootbsd1368  2 года назад +1

    Hey guys, a viewer of mine tested UEFI and this method works too! Enjoy OpenBSD and have a wonderful day!
    distrotoot.com/web/statuses/107162313060868559

  • @ucnguyenvan9230
    @ucnguyenvan9230 2 года назад +6

    should I migrate from gentoo to FreeBSD/Openbsd ?. I'm a web developer and I need some tools like vscode, docker, XAMP. Thanks very much

    • @rootbsd1368
      @rootbsd1368  2 года назад +3

      I wouldn't recommend that if you need those tools. None of those are available on OpenBSD. Vscode is on FreeBSD, probably best to stick to LInux. Best tool for the job I always say, but if you want to try OpenBSD on bare metal next to Linux, now you can! Thanks for watching!

    • @Elhamidi0249
      @Elhamidi0249 2 года назад +1

      Yes they are available Ast ports except for XAMP. Maybe you have more luck with native binary packages. If nothing works out install the Linux counterparts via the Linux ABI compatibility layer. Enable it in your configuration file in your bootloader scripts.

    • @safi164
      @safi164 2 года назад +2

      Docker ain't gonna work as FreeBSD and OpenBSD have their own containers. Docker is a Linux thing.

    • @rootbsd1368
      @rootbsd1368  2 года назад +2

      @@Elhamidi0249 None of those things are on OpenBSD, vscode is on FreeBSD. If he/she needs those tools for their job it would be best to use native Linux and not try to hack something together. And as Safi said, docker is a Linux specific tool.

    • @Elhamidi0249
      @Elhamidi0249 2 года назад

      @@rootbsd1368 Yeah I meant the FreeBSD ports not the OBSD ones. Sorry for not clarifying that.

  • @subodhkamble6480
    @subodhkamble6480 2 года назад +1

    Awesome

  • @voiceoftreason1760
    @voiceoftreason1760 Год назад

    Since some packages need to be started from a wxallowed filesystem, it is recommended to have a separate /usr/local partition.

  • @VincentLAnderson
    @VincentLAnderson 2 года назад +1

    You don’t sound like Paul Rascagneres, and I imagine you don’t own the vps called rootbsd. Nice videos. Got the impression you’ve been doing stuff like this for a while.

    • @rootbsd1368
      @rootbsd1368  2 года назад +1

      Thanks for watching! Yeah the name Root BSD comes from my mastodon username and it's just a coincidence that another has the same name. I've actually only been at this for about 2 months now lol, sounds like I'm getting better at this.

  • @globetrotterdk
    @globetrotterdk Год назад

    Using Ubuntu Unity 22.10. I can't get the Grub menu to show despite changing the console parameter in "appearance settings" --> "advanced settings" of grub-customizer. Secondly, my OpenBSD partition is at /dev/nvme0n1p6. What do I use for "set root=" and "chainloader"?? I have also copied the BOOTX64.EFI file to /boot/efi/EFI/openbsd, but again, I understand Grub partition definitions very poorly at best. Any help available?

  • @jeudimacabre
    @jeudimacabre 2 месяца назад

    tried to make it work with a UEFI system and encrypted partitions and it failed. Even grub-customizer don't see my encrypted OpenBSD partition. I think it's a sign : "you do not need GNU/Linux, you NEED OpenBSD" ! Let's just think about how I can use my RX7600 on OpenBSD, maybe with video games emulation, don't know.

  • @domidrak5015
    @domidrak5015 2 года назад +1

    Can you make a video step by step on how to make a server for a game like quake II, Minecraft or something like that on openBSD?

    • @rootbsd1368
      @rootbsd1368  2 года назад +3

      Hey, thanks for watching. I've never done anything like that before, I'm not much of a gamer. But these ports should operate the same as they do on Linux, so setting up a host server should be the same.

    • @domidrak5015
      @domidrak5015 2 года назад

      @@rootbsd1368 yes but still, how do I do that?

    • @rootbsd1368
      @rootbsd1368  2 года назад +1

      @@domidrak5015 Like I said, I've never done that before, it's not my area of expertise. I'm sure there are plenty of guides online for whatever game server you want to host.

    • @domidrak5015
      @domidrak5015 2 года назад +1

      @@rootbsd1368 that's the problem, yesterday i spent 6 hours trying to make a Minecraft server and every single guide failed me

    • @rootbsd1368
      @rootbsd1368  2 года назад

      @@domidrak5015 Did you try this minecraft.fandom.com/wiki/Tutorials/OpenBSD_startup_script

  • @tutacat
    @tutacat 4 месяца назад

    Your grub theme is just broken (you should be hiding that background or making it darker)

  • @tutacat
    @tutacat 4 месяца назад

    No, UEFI means EFI, they are the same.

  • @MuminovicGoran
    @MuminovicGoran 2 года назад

    haha always remove disk :)

  • @safi164
    @safi164 2 года назад +1

    Lubuntu Oooooo! its blasphemy... lool

    • @rootbsd1368
      @rootbsd1368  2 года назад +2

      Please find it in you heart to forgive Linux-chads! I am but a simple normie...

    • @safi164
      @safi164 2 года назад

      @@rootbsd1368 lool