LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-08-2016, 11:24 AM   #1
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Posts: 6,488

Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
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.
 
Old 05-08-2016, 11:41 AM   #2
cwizardone
LQ Guru
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib."
Posts: 6,226
Blog Entries: 1

Rep: Reputation: 3487Reputation: 3487Reputation: 3487Reputation: 3487Reputation: 3487Reputation: 3487Reputation: 3487Reputation: 3487Reputation: 3487Reputation: 3487Reputation: 3487
Quote:
Originally Posted by hitest View Post
....
Code:
lilo -P fix
....
Good to know.
Thanks!
 
1 members found this post helpful.
Old 05-09-2016, 06:35 AM   #3
dederon
Member
 
Registered: Oct 2013
Posts: 99

Rep: Reputation: 50
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.
 
Old 05-09-2016, 10:31 AM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Posts: 6,488

Original Poster
Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
Quote:
Originally Posted by dederon View Post
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.
 
Old 05-09-2016, 10:38 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 7,699

Rep: Reputation: 5294Reputation: 5294Reputation: 5294Reputation: 5294Reputation: 5294Reputation: 5294Reputation: 5294Reputation: 5294Reputation: 5294Reputation: 5294Reputation: 5294
Do you happen to have the lilo errors? This way, if someone is trying to search for those they can find this thread.
 
1 members found this post helpful.
Old 05-09-2016, 10:44 AM   #6
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Posts: 6,488

Original Poster
Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
Quote:
Originally Posted by bassmadrigal View Post
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 #
 
1 members found this post helpful.
Old 05-09-2016, 12:49 PM   #7
aaazen
Member
 
Registered: Dec 2009
Posts: 358

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

It still generates warnings, but I ignore them.
 
1 members found this post helpful.
Old 05-09-2016, 12:58 PM   #8
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Posts: 6,488

Original Poster
Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
Smile

Quote:
Originally Posted by comet.berkeley View Post
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"?
 
Old 05-11-2016, 06:27 AM   #9
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 287

Rep: Reputation: 179Reputation: 179
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.

Last edited by zakame; 05-11-2016 at 06:28 AM. Reason: note about lilo execution
 
4 members found this post helpful.
Old 05-11-2016, 10:25 AM   #10
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Posts: 6,488

Original Poster
Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
Quote:
Originally Posted by zakame View Post
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.
 
Old 05-11-2016, 12:09 PM   #11
zakame
Member
 
Registered: Apr 2012
Location: Philippines
Distribution: Debian, Ubuntu, Slackware
Posts: 287

Rep: Reputation: 179Reputation: 179
Quote:
Originally Posted by hitest View Post
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
 
1 members found this post helpful.
Old 05-11-2016, 01:20 PM   #12
aaazen
Member
 
Registered: Dec 2009
Posts: 358

Rep: Reputation: Disabled
Quote:
Originally Posted by hitest View Post
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
 
1 members found this post helpful.
Old 05-11-2016, 02:12 PM   #13
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Posts: 6,488

Original Poster
Rep: Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690Reputation: 2690
Thumbs up

Quote:
Originally Posted by comet.berkeley View Post
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!
 
Old 01-17-2018, 02:40 PM   #14
Phorize
Member
 
Registered: Sep 2005
Location: UK
Distribution: Slackware
Posts: 226

Rep: Reputation: 29
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.

Last edited by Phorize; 01-17-2018 at 02:41 PM. Reason: Typo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are there any tutorials to dual boot OpenBSD? php111 *BSD 10 02-22-2011 12:21 PM
Dual Boot Slackware 13 with FreeBSD, but Issue Dual Booting PC-BSD Photon Blizzard *BSD 2 11-09-2009 12:55 PM
Dual Boot Slackware 13 with FreeBSD, but Issue Dual Booting PC-BSD Photon Blizzard Linux - Newbie 1 10-22-2009 11:07 PM
Bad attempt at 'setting up' a dual boot Slackware+FreeBSD box. Photon Blizzard Linux - Software 1 10-13-2009 02:15 AM
Dual boot linux/openBsd Miky *BSD 3 09-08-2003 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration