> -----Urspr|ngliche Nachricht----- > Von: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] > Im Auftrag von Ingo Schwarze > Gesendet: Freitag, 27. Mdrz 2009 03:12 > An: Volpers, Hagen > Cc: misc@openbsd.org > Betreff: Re: Multiple obsd installations on one harddrive > > Volpers, Hagen wrote on Fri, Mar 27, 2009 at 01:56:07AM +0100: > > > But I think there is a misunderstanding. I was talking about, mmhh, > > let's say fdisk partitions. I want to create two absolut independent > > installations. My problem is, that disklabel always uses the whole > > disc (c:), I'm not able to switch between the > fdisk-partitions (wd0 / > > rwd0c is always the same). > > According to the disklabel(8) manual, the disklabel refers to > the whole > disk. I never heard that anybody tried to trick a disk into > having one > disklabel for its first part and a second disklabel for its > second part. > Also, i see no point in that. That disklabel just cuts the disk into > slices to put filesystems in. In any case, you will only mount those > filesystems that you want to work with right now. It does no harm if > the disklabel contains some more slices you don't use. Why would you > want to split the disklabel into two parts? In my eyes, that > would seem > to be an unnessessary complication and obfuscation. > > > If I got you right you created something like this: > > > > wd0a: /root1 > > wd0b: "shared" swap > > wd0d: /root2 > > [...] > > Yes. > > If you install once to wd0a and once to wd0d, these two installations > *are* completely independent - even if you share /tmp and /home. > Of course, pay attention not to share /usr (for obvious reasons) > or /var (think of /var/db/pkg!). > > > That means that you only switch the mount-point during installation, > > keeping the partitions untouched, right? > > Yes.
Ok, tried it, but disklabel always want to use wd0a as root-partition. That's what disklabel(8) says: "By convention, the `a' partition of the boot disk is the root partition, and the `b' partition of the boot disk is the swap partition, but all other letters can be used in any order for any other partitions as desired." How did you do the install? Another problem is the bootloader. AFAIK you can only define the hd and fdisk-partition, not the disklabel-partition to boot from. Could you please give me some more informations about your setup? Regards Hagen Volpers