LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Setting up a Slackware/OpenBSD dual boot (https://www.linuxquestions.org/questions/slackware-14/setting-up-a-slackware-openbsd-dual-boot-4175579277/)

hitest 05-08-2016 10:24 AM

Setting up a Slackware/OpenBSD dual boot
 
Using fdisk on my Slackware DVD I set-up the following partitions during the install process. I set-up my openbsd partition(set OpenBSD partition as type A6), then edited lilo.conf. Next I installed openbsd to /dev/sda4. Re-booted into slackware and then ran /sbin/lilo.

sda1 swap
sda2 root
sda3 home
sda4 OpenBSD

This addition is added onto my lilo.conf at the bottom

other = /dev/sda4
label = OpenBSD
table = /dev/sda

P.S. I've noticed that newer versions of lilo generate errors when trying to add my addition to the bottom of lilo.conf, that is, when running lilo the addition is not recognized. I fixed this issue by running lilo like this:

Code:

lilo -P fix
Everything now works as expected and I have a functional dual boot of Slackware64-current and OpenBSD 5.9.

cwizardone 05-08-2016 10:41 AM

Quote:

Originally Posted by hitest (Post 5542213)
....
Code:

lilo -P fix
....

Good to know.
Thanks!
:hattip:

dederon 05-09-2016 05:35 AM

i ran into the same problem. the culprit is fdisk.

using "lilo -P fix" is risky, as it rewrites the partition table. using cfdisk for creating partitions solved that problem for me in the first place.

hitest 05-09-2016 09:31 AM

Quote:

Originally Posted by dederon (Post 5542515)
i ran into the same problem. the culprit is fdisk.

using "lilo -P fix" is risky, as it rewrites the partition table. using cfdisk for creating partitions solved that problem for me in the first place.

I ran into the same problem adding my OpenBSD addition with cfdisk, that is, lilo errors out. I suspect that something is different with the newer versions of lilo.

bassmadrigal 05-09-2016 09:38 AM

Do you happen to have the lilo errors? This way, if someone is trying to search for those they can find this thread.

hitest 05-09-2016 09:44 AM

Quote:

Originally Posted by bassmadrigal (Post 5542641)
Do you happen to have the lilo errors? This way, if someone is trying to search for those they can find this thread.

Hi bassmadrigal,

When I went searching for a solution I found this user, cobalt, had a similar error as I did.

Quote:

cobalt:/sbin # lilo
Device 0x0300: Inconsistent partition table, 2nd entry
CHS address in PT: 194:0:1 --> LBA (195552)
LBA address in PT: 3116610 --> CHS (3091:14:1)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified
If not sure, first try IGNORE-TABLE (-P ignore)
cobalt:/sbin #

aaazen 05-09-2016 11:49 AM

For dual booting OpenBSD, I use "ignore-table" in my /etc/lilo.conf

It still generates warnings, but I ignore them.

hitest 05-09-2016 11:58 AM

Quote:

Originally Posted by comet.berkeley (Post 5542723)
For dual booting OpenBSD, I use "ignore-table" in my /etc/lilo.conf

It still generates warnings, but I ignore them.

Thanks, mate! I'll try that out when 14.2 is released. Can you please post your lilo.conf so I can see where you put "ignore-table"? :)

zakame 05-11-2016 05:27 AM

Nice work. For me, I extracted the OpenBSD partition boot record and put it into my Slackware's /boot partition, so I can have this in my lilo.conf:

Code:

other = /boot/openbsd.pbr
  label = OpenBSD
  table = /dev/disk/by-id/ata-My-SSD-Device-That-Just-Works

I also just run `lilo`, with no errors or warnings.

hitest 05-11-2016 09:25 AM

Quote:

Originally Posted by zakame (Post 5543702)
Nice work. For me, I extracted the OpenBSD partition boot record and put it into my Slackware's /boot partition, so I can have this in my lilo.conf:

Code:

other = /boot/openbsd.pbr
  label = OpenBSD
  table = /dev/disk/by-id/ata-My-SSD-Device-That-Just-Works

I also just run `lilo`, with no errors or warnings.

Unfortunately that page has a dead link for describing the dual booting of Linux, OpenBSD using lilo.

zakame 05-11-2016 11:09 AM

Quote:

Originally Posted by hitest (Post 5543825)
Unfortunately that page has a dead link for describing the dual booting of Linux, OpenBSD using lilo.

Actually I was just looking for the link that describes getting the OpenBSD PBR via dd, e.g.

Code:

dd if=/dev/rsd0a of=openbsd.pbr bs=512 count=1
which, incidentally, was on the "Windows NT" section of that page :D

aaazen 05-11-2016 12:20 PM

Quote:

Originally Posted by hitest (Post 5542727)
Thanks, mate! I'll try that out when 14.2 is released. Can you please post your lilo.conf so I can see where you put "ignore-table"? :)

I just put it near the top of the /etc/lilo.conf
Code:

# LILO configuration file for partition sda8
#
# Start LILO global section
#------------------------------------------------
boot = /dev/sda
lba32
ignore-table
compact        # faster, but won't work on all systems.
...

# OpenBSD bootable partition config begins
other = /dev/sda2
  label = openbsd
  table = /dev/sda
# OpenBSD bootable partition config ends
...

And when I run lilo I get these warnings which I ignore:
Code:

Warning: Device 0x0800: Inconsistent partition table, 3rd entry
  ...
Warning: The partition table is *NOT* being adjusted.

My lilo is running from the master boot record (MBR) of /dev/sda (boot = /dev/sda)

On boot when I choose "openbsd", then lilo simply loads and runs the partition boot record of /dev/sda2 (created by the OpenBSD installboot program)

Here is more information about the OpenBSD boot process on the amd64 (x86_64) machines:

http://www.openbsd.org/faq/faq14.html#BootAmd64

hitest 05-11-2016 01:12 PM

Quote:

Originally Posted by comet.berkeley (Post 5543913)
I just put it near the top of the /etc/lilo.conf

Thanks for that, man. Marking this thread as solved. We now have several solutions on how to dual boot Slackware and OpenBSD.
Many thanks to you folks for your contributions! :D

Phorize 01-17-2018 01:40 PM

Wondering about dual booting a fully encrypted openbsd install with lilo
 
Hi All,

I was going to do a new thread but saw this one and thought my question was close to this one. Basically I have a new laptop and intend to dual boot slack and openbsd. My plan is to do 3 primary partitions, one for /boot, two for lvm on LUKS and three for openbsd. I’d like to fully encrypt the openbsd install so would be interested to know if anyone else had succeeded in doing this.


All times are GMT -5. The time now is 07:10 AM.