|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
MultiBoot OpenBSD/Debian
Hello there!
Long description, then problem, then question. Description: My main OS is Debian oldstable for now on my main laptop and I used to teach myself OpenBSD with a spare dedicated latptop. This second laptop as been lend to a friend who was in distress since here macbook had died. Now, this laptop is back in my house and I can resume my learning. I was planning to install Debian jessie for android dev and OpenBSD on his disk. -First I installed Debian. I partitionned the disk like that: sda1 50GB empty (for OBSD) sda2 50GB for debian separated in 3 logicals partitions (/,swap and /home) Installation went smoothly as I am seasonned with debian installation. -Then, I proceed with OBSD installation (not my first time either but still newbie). I may not remember exactly what I did but I am pretty sure I choose (e)dit at the partition step, didn't see the layout I was expecting (2 primary partitions), tried to build some layout anyway then cancelled. At this point, I was expecting the layout to be still intact but I was wrong... Problem: On reboot, no os found. So I reinstalled debian 8 and I am waiting for more insight before retrying the OBSD install. Question: When does OpenBSD fdisk proceed? I though that any writing on disk wouldn't occur until I say so? |
|
|||
I'm dualbooting Debian Testing with OpenBSD current on an i386 system.
I installed Debian with / = /dev/sda1 swap = /dev/sda2 /home = /dev/sda3 Leave space for OpenBSD on /dev/sda4 Use fdisk to label sda4 as an OpenBSD file system (Type A6). Then install OpenBSD into the OpenBSD partition. Do not use the whole disk! Reboot to debian and add an OpenBSD chain loading command in /etc/grub.d. Run # update-grub This is a rough overview - I can provide specifics if needed later. Last edited by shep; 24th July 2016 at 02:42 PM. Reason: Added f/u, corrected update-grub, /etc/grub -> /etc/grub.d |
|
||||
Shep's way works fine, I've used it frequently. I have a short page that goes into a bit more detail, but basically reiterates what was said in Shep's post.
https://srobb.net/openbsdmultiboot.html Last edited by scottro; 22nd July 2016 at 08:17 PM. |
|
|||
I have Windows and OpenBSD dualboot and I use similar shep's way.
I use Grub-modern (Grub2) from Debian Jessie amd64 Live Standard image as bootloader. I don't have Debian installed and I haven't while installing OpenBSD and/or bootloader. Just booted from Live image and installed Grub2. Grub2 is far less bloated than Windows boot menu program.
__________________
Signature: Furthermore, I consider that systemd must be destroyed. Based on Latin oratorical phrase |
|
||||
Quote:
other = /dev/sda4 label = OpenBSD table = /dev/sda After editing /etc/lilo.conf I run # lilo -P fix and reboot. That will do it.
__________________
hitest |
|
|||
Thanks all.
@jggimi: So fsdisk is the same in the installer and in the base and as such, behave the same way. I'll be more careful when I reach the fdisk step. @shep, scottro, e1-531g, hitest: Ok, I will retry this after I format a primary part to OpenBSD type. After the install a simple os-probe and grub-install will suffice under debian. |
|
|||
Quote:
My /etc/grub.d/40_custom Code:
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "OpenBSD Current" { set root=(hd0,4) chainloader +1 } Last edited by shep; 24th July 2016 at 02:52 PM. |
|
||||
Quote:
__________________
hitest |
|
|||
Quote:
After installing Debian, I installed Debian's fdisk package and used it to label the /dev/sda4 partition as A6. You could probably drop to the command line and run OpenBSD fdisk during the OpenBSD install. I felt more comfortable editing partition tables in Debian's bootloader using Debian's fdisk. |
|
|||||||
Well. Here I found a solution. For Debian, through Trisquel (based on Ubuntu: based on Debian). Both uses GRUB2 any way.
For what I heard (just opinions, they depends of hardware), is better to install OpenBSD in a first partition, and in the second a GNU system, if you want the dual boot. But is OK. You have GNU on the first partition. Did you install OpenBSD in a second? Well, let's configure GRUB2 on Debian: Quote:
Quote:
When you get it, just "Ctrl+X", "Y" (yes), and "Enter". Changes saved. Like root: Quote:
Quote:
GRUB2 may ask you for a user to log into a Operative System partition. The user will be "grub", but you don't know the password (five numbers). You can use the password, by knowing it, or you can delete it by editing a configuration text: Quote:
Quote:
Quote:
NOTE: Do not try then "sudo update-grub" or "sudo update-grub2". If you do it the password may be reestablished. Well. Reboot, and tell us how it goes! |
|
|||
Quote:
The lower numbered partitions occupy a more peripheral, physical location on the disk - more disk area will pass the read/write head per revolution. Using this rationale, I would put the OS that I intend to predominately utilize on the lower numbered, more peripheral partitions. |
|
|||
platter surface speed
If platter surface speed is going to matter very much, either you have pretty old disks or your application is sufficiently time critical that you should rethink dual booting without adding a spindle for the second OS.
|
|
|||
From what I can remember, it used to be advised to put all BSDs first before Linux, because of a disk size limit for booting. or something, but that used to be about an 8GB limit, & I think that is no longer the case - but I would always put BSD before Linux.
__________________
Linux since 1999, & also a BSD user. |
|
||||
Quote:
While no longer an issue with modern BIOS and disk drive technologies, one never really knew the address limit without actually testing it. As I recall, the limit could range from as little as 528MB upward into a wide variety of GB limits. One of the benefits of having a small root directory was to avoid discovering the limit after updating or upgrading, and having a new kernel with sectors outside the BIOS addressing limit. But with more modern hardware, this is much less of a concern and the "large drive" considerations that discussed the BIOS limit were removed from the FAQ. |
|
|||
Quote:
http://www.dewassoc.com/kbase/hard_d...e_barriers.htm |
|
||||
Quote:
__________________
Supermicro X9DRD-7LN4F-JBOD | (2) Xeon E5-2670 | 32GB DDR3 ECC Registered |OpenBSD 6.4 Endeavoring to resolve my Linux dependancies. |
|
|||
Quote:
Code:
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry 'OpenBSD' { insmod part_gpt insmod search_fs_uuid insmod chain chainloader (hd0,gpt1)/BSD_BOOTX64.EFI } You can source BOOTX64.EFI from this howto: https://blog.jasper.la/openbsd-uefi-...der-howto.html Remember to create a new /boot/grub/grub.cfg file with the root command: update-grub. Last edited by shep; 4th March 2019 at 12:11 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Microsoft has released a Debian Linux switch OS. Repeat, a Debian Linux switch OS | J65nko | News | 9 | 12th March 2016 11:58 PM |
GAG as a multiboot manager? | blackhole | OpenBSD Packages and Ports | 9 | 23rd December 2014 09:42 PM |
Misc. BSD/UNIX Debian Forked Over Systemd | J65nko | News | 10 | 30th November 2014 12:39 AM |
Debian + FreeBSD | bsdperson | Other BSD and UNIX/UNIX-like | 20 | 22nd August 2011 06:41 PM |
Debian 5.0 released | ephemera | Other BSD and UNIX/UNIX-like | 36 | 26th November 2010 04:50 PM |