Two primary OBSD partitions on a HDD

2013-08-25 Thread josef . winger
I read fdisk(8) carefully (At least I think so), but I repeatedly failed to
install two OBSDS on two primary partitions of a HDD.

The idea was to realize a multiboot by toogleing the boot-flag to the primary
partition of the particular OBSD system I want to boot.

However, I think that the install process always chooses the same primary
OBSD partition for installation (the first that appears in the table?) 
and I have no control.


/jo



Re: Two primary OBSD partitions on a HDD

2013-08-25 Thread Tony Abernethy
josef.win...@email.de wrote

I read fdisk(8) carefully (At least I think so), but I repeatedly failed to
install two OBSDS on two primary partitions of a HDD.

The idea was to realize a multiboot by toogleing the boot-flag to the primary
partition of the particular OBSD system I want to boot.

However, I think that the install process always chooses the same primary
OBSD partition for installation (the first that appears in the table?) 
and I have no control.

/jo


##-
I'm sure Nick Holland will explain it better, but
OpenBSD works from THE (singular) disklabel on the physical disk
Other than keeping other OS's out, and a bit of help booting,
the fdisk partitions are actually completely irrelevant.



Re: Two primary OBSD partitions on a HDD

2013-08-25 Thread System Administrator
On 25 Aug 2013 at 10:50, Tony Abernethy wrote:

 josef.win...@email.de wrote
 
 I read fdisk(8) carefully (At least I think so), but I repeatedly failed to
 install two OBSDS on two primary partitions of a HDD.
 
 The idea was to realize a multiboot by toogleing the boot-flag to the primary
 partition of the particular OBSD system I want to boot.
 
 However, I think that the install process always chooses the same primary
 OBSD partition for installation (the first that appears in the table?) 
 and I have no control.
 
 /jo
 
 
 ##-
 I'm sure Nick Holland will explain it better, but
 OpenBSD works from THE (singular) disklabel on the physical disk
 Other than keeping other OS's out, and a bit of help booting,
 the fdisk partitions are actually completely irrelevant.
 
 

To expand on Tony's comment, OpenBSD uses the fdisk(8) partition 
information only just enough to locate its disklabel(8). So if you want 
to have two complete (primary) OBSD installs on a single disk you 
have to *hide* them one from another. I succeeded in doing just that by 
using grub's hide/unhide partition feature -- it toggle the partition 
id of the inactive (other) partition from a6 to b6. YMMV



Re: Two primary OBSD partitions on a HDD

2013-08-25 Thread Mihai Popescu
Hi,

Before investigating further, be sure to read the FAQ about i386 disk
layout and pay attention to the two very important things there: slices and
partitions.