LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 05-07-2004, 02:02 PM   #1
socket9001
LQ Newbie
 
Registered: Dec 2003
Location: Israel
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
lilo & openbsd


hello,

i have one hard drive with linux & windows installed on it
and another drive with a fresh installation of openbsd.

on the first hard drive (which linux recognize as /dev/hda) i've got lilo to handle the booting.
the content of lilo.conf is:

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
 vga = normal

# End LILO global section
# DOS bootable partition config begins
other = /dev/hda1
  label = DOS
  table = /dev/hda
# DOS bootable partition config ends
# Linux bootable partition config begins
image = /vmlinuz
  root = /dev/hda3
  label = Linux
  read-only
# Linux bootable partition config ends
when i add:
Code:
# Linux bootable partition config ends
other = /dev/hdb1
  label = OpenBSD
  table = /dev/hdb
and try to update the mbr i get this error:
Code:
root@singularity:/home/socket#: lilo
Added DOS *
Added Linux
Fatal: open /dev/hdb1: No such device or address
when i set other=/dev/hdb i get this error:
Code:
root@singularity:/home/socket#: lilo
Added DOS *
Added Linux
Fatal: First sector of /dev/hdb doesn't have a valid boot signature
any idea what am i doing wrong ?

here's an output of `fdisk -l` from the linux
Code:
root@singularity:/home/socket#: fdisk -l
 
Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
 
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1795    14418306    c  W95 FAT32 (LBA)
/dev/hda2            1796        1826      249007+  82  Linux swap
/dev/hda3            1827        2434     4883760   83  Linux
 
Disk /dev/hdb: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
 
 
16 partitions:
#       start       end      size     fstype   [fsize bsize   cpg]
  a:        1     19765     19765     4.2BSD     2048 16384   328
  b:    19766     77545     57780       swap
  c:        1     77545     77545     unused        0     0
 
Old 05-10-2004, 04:37 PM   #2
MilkyBar_Kid
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Rep: Reputation: 0
Socket, the easiest way of doing this I found is using the lilo GUI

Click Operatng system, click add another OS, type in the bsd location ie /dev/hdb1 and the label, click the check configuration

If everything is fine, you should get an OK sign.

If you're happy, click apply.

then as root, enter lilo, RETURN.

it should work.
 
Old 05-11-2004, 08:20 AM   #3
socket9001
LQ Newbie
 
Registered: Dec 2003
Location: Israel
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 15
lilo has a gui? do you mean liloconfig ?
 
Old 05-11-2004, 01:49 PM   #4
MilkyBar_Kid
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Rep: Reputation: 0
Yes

If you're using KDE, bring up the konsole, type lilo, RETURN

You'll get the LiLO GUI
 
Old 05-05-2007, 05:43 AM   #5
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
As i've just installed OpenBSD myself recently:

for some reason my /dev/hdb drive got hdb4 assigned as the partition (i've just one, for now). i'd guess your openbsd install named it something else also.
 
Old 05-09-2007, 03:54 PM   #6
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
It looks to me like you just have a disklabel for hdb and no partition table. That won't work for LILO because it needs to reference things by partition number for chainloading (like you have to do with winbloze and BSD).

If you want to coexist (multiboot) between Linux and BSD on the same box, even on different drives in the same box, it's always a good idea to do all of your partitioning with Linux fdisk. If you tag the BSD target partitions with the correct types (a6 for OpenBSD) the installer will automagically find your partition and use it.

I have several multiboot boxes and I've avoided any problems doing things as I described.

If you create a partition table and set up an a6 partition of the size you want, you can rerun the OBSD installer and it will allow you to suballocate partitions inside its slice (DOS partition).

Last edited by Randux; 05-09-2007 at 03:57 PM.
 
  


Reply



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
openbsd 3.6 & konqueror kpachopoulos *BSD 1 05-22-2005 02:05 PM
Some questions about PPPOE & PPP in OpenBSD 3.6 VertX *BSD 1 03-26-2005 06:45 AM
OpenBSD Firewall w/DMZ & HTTP jdh77 *BSD 1 05-09-2004 12:13 AM
lilo.conf and openbsd chens_83 *BSD 5 07-30-2002 07:30 PM
grub.conf ?: RedHat 7.3 & OpenBSD 3.0 frozenicicle Linux - Software 10 07-29-2002 09:05 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 02:55 PM.

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