Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Dual-Booting with OpenBSD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Sun Nov 02, 2008 1:35 pm    Post subject: [SOLVED] Dual-Booting with OpenBSD Reply with quote

Hi, i'm trying to find out how to dual-boot openbsd with my Gentoo install.

I've tried following some guides but nothing works and just boots into Gentoo. Can anyone help please?

fdisk -l

Code:

livecd jon # fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00034142

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          13      104391   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/hda2              14        9010    72268402+   5  Extended
Partition 2 does not end on cylinder boundary.
/dev/hda3   *           1        9729    78147720   a6  OpenBSD
Partition 3 does not end on cylinder boundary.
/dev/hda5              14          54      329301   82  Linux swap / Solaris
/dev/hda6              55        1359    10482381   83  Linux
/dev/hda7            1360        9010    61456626   83  Linux

Partition table entries are not in disk order

Disk /dev/hda3: 80.0 GB, 80023265280 bytes
255 heads, 63 sectors/track, 9728 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00034142

     Device Boot      Start         End      Blocks   Id  System
/dev/hda3p1               1          13      104391   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/hda3p2              14        9010    72268402+   5  Extended
Partition 2 does not end on cylinder boundary.
/dev/hda3p3   *           1        9729    78147720   a6  OpenBSD
Partition 3 does not end on cylinder boundary.
/dev/hda3p5              14          54      329301   82  Linux swap / Solaris
/dev/hda3p6              55        1359    10482381   83  Linux
/dev/hda3p7            1360        9010    61456626   83  Linux

Partition table entries are not in disk order


grub.conf

Code:
livecd jon # cat /boot/grub/grub.conf
default   0
timeout 3
hiddenmenu

title Gentoo 2.6.25-r8b
root (hd0,0)
kernel  /boot/kernel-2.6.25-r8b root=/dev/hda6 quiet

title Gentoo 2.6.25-r8
root   (hd0,0)
kernel   /boot/kernel-2.6.25-r8   root=/dev/hda6 quiet

title OpenBSD 4.4
root (hd0,2)
makeactive
chainloader +1


Last edited by regomodo on Tue Nov 04, 2008 9:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Sun Nov 02, 2008 1:48 pm    Post subject: Reply with quote

Quote:
timeout 3
hiddenmenu


"Hiddenmenu" means it won't show you the grub prompt. It will print a tiny message that tells you to hit the esc key if you want to see the grub prompt. "Timeout 3" makes this message disappear really fast. It will then boot the first entry in grub.conf.

You should remove or comment out the hiddemenu line and set timeout to something like 10.
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Sun Nov 02, 2008 2:02 pm    Post subject: Reply with quote

Oh, i know about hiddenmenu. I pressed esc at the prompt and selected OpenBSD. I'll try again to doublecheck.
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Sun Nov 02, 2008 2:10 pm    Post subject: Reply with quote

Ok. Gentoo isn't actually being booted up when i select OpenBSD, instead it seems to loopback to Grub. I select OpenBSD and loops again.
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sun Nov 02, 2008 2:36 pm    Post subject: Reply with quote

Does it work if you use rootnoverify instead of root for OpenBSD?
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Sun Nov 02, 2008 2:49 pm    Post subject: Reply with quote

Changed it to "rootnoverify (hd0,2)" and still no change.
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sun Nov 02, 2008 3:40 pm    Post subject: Reply with quote

Looking closer, your partition table seems a bit messed up. The OpenBSD partition seems to be layered over the primary and extended one..

I'd try to fix that using testdisk from e.g. sysresccd.

EDIT: or it's just that the disklabel subpartition isn't recognized correctly.
Maybe you need to specify it, like rootnoverify (hd0,2,a)

And, is OpenBSD itself able to boot from an extended partition at all?
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Sun Nov 02, 2008 4:12 pm    Post subject: Reply with quote

gimpel wrote:
And, is OpenBSD itself able to boot from an extended partition at all?

I thought it couldn't so i shoved my Gentoo partitions in a extended partition and let OpenBSD use the remaining space. TBH, the OpenBSD partition editor is quite confusing. I'll double-check the partitioning scheme.
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Sun Nov 02, 2008 7:07 pm    Post subject: Reply with quote

gimpel wrote:

EDIT: or it's just that the disklabel subpartition isn't recognized correctly.
Maybe you need to specify it, like rootnoverify (hd0,2,a)


I couldn't get that to work either.
Code:

Error 17 : Cannot mount selected partition


I tried other variations but no dice. I've backed up my Gentoo partitions so i'm going to wipe the disk and start with openbsd first. I know how to work Linux partitions but not BSD slices.
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Tue Nov 04, 2008 9:52 pm    Post subject: Reply with quote

I've given up on openBSD. It reminds me a lot of Slackware 10 without the packages and usability.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum