On 25 Aug 2013 at 10:50, Tony Abernethy wrote:
> [email protected] 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