How do I install OpenBSD next to another OS? reddit / BSD ---------------------------------------------------------------------- ButtEater344 · 2019-01-05 22:51 I have no idea how to do it. I've tried to do it a few times on a virtual machine and ended up breaking everything. fdisk is so unintuitive! ​ OK, I've managed to install it. Here's what I did: 1. I shrank my Linux partition (with a linux liveUSB stick) 2. Chose to edit the MBR 3. Created an OpenBSD partition with offset equal to the size of the Linux partition + where it begins 4. When it asked what size should my new partition be, I typed \* and pressed enter 5. Made a custom layout – removed all partitions except the Linux one, created a big one for / and a small one for swap (not the best option, but it uses less space) 6. After the installation I did what [this](https://www.kariliq.nl/openbsd/grub2.html) page says. ---------------------------------------------------------------------- yuki_is_bored · 2019-01-06 00:00 UEFI or Legacy BIOS? I suggest installing the other operating system first and then install OpenBSD. Is the other OS Linux or Windows? If you don't know, A standard OpenBSD system install is composed of one partition which is filled with "slices" where you can define more filesystems. On install, when partitioning the drive, fdisk will show it as "OpenBSD Area". ---------------------------------------------------------------------- poshpotdllr · 2019-01-06 01:40 you can have 4 primary partitions. one will be for openbsd. you need to shrink your current partitions to make room. then after you install openbsd you need to worry about the boot loader and multiboot. windows, linux, and others can boot openbsd. this is a bit much for a reddit comment, maybe you should join one of the openbsd channels on irc or something. ---------------------------------------------------------------------- ButtEater344 · 2019-01-06 07:51 I'm asking for help partitioning my disk. Do i have to choose "whole disk" or "edit mbr"? How do i create an openbsd partition using the built-in tool? ---------------------------------------------------------------------- yuki_is_bored · 2019-01-06 08:29 Use edit MBR and create a new OpenBSD Area. ---------------------------------------------------------------------- ButtEater344 · 2019-01-06 09:59 I had to use a calculator to get the correct offset and size. fdisk sucks. Now how do I boot OpenBSD with grub? My Linux distro doesn't seem to support ufs. ---------------------------------------------------------------------- poshpotdllr · 2019-01-06 11:04 >I'm asking for help partitioning my disk. no youre not. you said "install it next to another OS". that implies a complicated multiboot setup. ---------------------------------------------------------------------- northrupthebandgeek · 2019-01-06 11:30 If OpenBSD installed its bootloader to the boot sector of that partition (*not* the disk's actual MBR), then it should be enough to have GRUB "chainload" that partition (this is how GRUB normally boots Windows, for example). [This guide](https://www.kariliq.nl/openbsd/grub2.html) explains that in full. ---------------------------------------------------------------------- yuki_is_bored · 2019-01-06 11:34 Note that you can just use * to use the remainder of the disk and I think offset is calculated automatically. ---------------------------------------------------------------------- ButtEater344 · 2019-01-06 12:18 I asked this question because I couldn't figure out how to use that built in partition manager. ---------------------------------------------------------------------- whjeon · 2019-01-06 12:27 Isn't 'complicated multiboot setup' also a partitioning disk process? ---------------------------------------------------------------------- poshpotdllr · 2019-01-06 12:45 after the install happens you need to be able to select which operating system boots. partitioning is a tiny part of the problem. depending on whether your BIOS is UEFI or legacy it makes a difference on how you do this, and the other operating systems have their quirks. the bios of your motherboard can create issues as well, and of course there are bugs with uncommon setups. you might get lucky with your particular hardware and requirements but you might also be in for a ride. either way partitioning is a small part of your battle. ---------------------------------------------------------------------- poshpotdllr · 2019-01-06 12:46 https://old.reddit.com/r/BSD/comments/aczakw/how_do_i_install_openbsd_ next_to_another_os/eddo2xk/ ---------------------------------------------------------------------- ButtEater344 · 2019-01-06 13:16 The default partition offset is 0. It is calculated automatically at the second step of partitioning though. ---------------------------------------------------------------------- Ranguvar · 2019-01-06 14:21 This thread may help: https://www.reddit.com/r/openbsd/comments/9uyra9/_/ ---------------------------------------------------------------------- DonovanNagel · 2019-01-06 15:45 I don't really understand the point of having a Linux/OpenBSD dualboot setup on the same hdd. If you absolutely must use Linux and OpenBSD on the same system for whatever reason, buy a cheap, second hdd/ssd and give OpenBSD a dedicated drive. ---------------------------------------------------------------------- ButtEater344 · 2019-01-06 15:57 Why? What would it change? ---------------------------------------------------------------------- DonovanNagel · 2019-01-06 16:00 You wouldn't be struggling to partition your drive, for starters. ---------------------------------------------------------------------- ButtEater344 · 2019-01-06 16:15 Avoiding the problem isn't a solution. ---------------------------------------------------------------------- MaskedCoward · 2019-01-06 18:10 \+1 for user name. ---------------------------------------------------------------------- DonovanNagel · 2019-01-06 23:38 Dualbooting with one partitioned hard drive was a solution in the 90's/early 2000's when buying a second hard drive was too expensive. These days, a hdd or ssd costs next to nothing and saves a lot of hassle. But putting that aside, what practical use is there having Linux and OpenBSD installed on the same machine anyway? If you just want to test out OpenBSD, why not just vbox it to test? Otherwise it's a perfectly viable alternative to Linux. ---------------------------------------------------------------------- ButtEater344 · 2019-01-07 05:48 > If you just want to test out OpenBSD, why not just vbox it to test? I hardly learn anything with virtual systems. I install them and remove them shortly afterwards. ---------------------------------------------------------------------- Spendocrat · 2019-01-09 18:48 Avoiding an error-prone setup for a simpler one is a great solution. You may learn this the hard way, as most of us did. ---------------------------------------------------------------------- cprogrammingnoob · 2019-01-19 20:21 I've only had success with this using grub chainloading. I can put a linux partition in the beginning (if it's MBR bios the partition can be no bigger than 120 GiB afaik or OpenBSD won't boot) OpenBSD in the middle, then maybe a FreeBSD setup at the end. This of course is only recommended for unix nerds trying to get their hands dirty with everything at once :-) If you're worried about security, fully encrypt each partition so they are inaccessible to each other. This might help too https://functionallyparanoid.com/2017/06/30/boot- all-the-things/ ---------------------------------------------------------------------- quote-only-eeee · 2019-01-24 09:32 I recommend carving out a partition with a graphical tool, then marking it as an OpenBSD partition (A6) using fdisk on Linux (much more intuitive). Then the installer will ask you if you want to use that partition.