Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 98 03:27:32 EST
From:      luoqi@watermarkgroup.com (Luoqi Chen)
To:        bde@zeta.org.au, mike@smith.net.au
Cc:        current@FreeBSD.ORG, stable@FreeBSD.ORG
Subject:   Re: *HEADS UP* Correction to previous postings.
Message-ID:  <9803100827.AA26647@watermarkgroup.com>

next in thread | raw e-mail | index | archive | help
> > Summary of the 3 cases where the whole disk is used for FreeBSD:
> > 
> > Partition table config  Slice# passed by bootblocks  Slice# to use for "/"
> > ----------------------  ---------------------------  -------------------------
> > Signature != 0xAA55     WHOLE_DISK_SLICE (= 1)       COMPATIBILITY_SLICE (= 0)
> > Historical invalid      BASE_SLICE + 3   (= 5)       COMPATIBILITY_SLICE (= 0)
> > "Valid" (1 big part.)   BASE_SLICE + N (0 <= N < 4)  BASE_SLICE + N
> 
> There appears to be no means for differentiating the "historical 
> invalid" case from the "valid" case where the first FreeBSD slice has 
> N == 3, given the constraints under which setroot() is operating.
> 
> (Note that "valid" above is a subset of any FreeBSD slice being anywhere
>  on the disk.  It is this subset that the sysinstall "all disk/no" 
>  option generates.)
> 
> Do you have any suggestions for making this differentiation?  Altering 
> the bootstrap is not practical at this point in time, as it hamstrings 
> upgraders.
> 
> > User actions in the 3 cases:
> > 1. Hope this doesn't happen.  It is very unlikely to happen for boot disks.
> > 2. Wait for fixes.
> > 3. Same as for cases where the whole disk is not used for FreeBSD - edit
> >    /etc/fstab.
> 
> I would like to find a fix for 2. that doesn't involve going backwards 
> to the 'bad old days', but this seems difficult just now.
> 
I managed to modify boot2 so I was able to boot with -r1.87 autoconf.c
from my dedicated disk (historical invalid). My solution was to leave slice
to be WHOLE_DISK_SLICE for a BSD partition starts at sector 0 (this would
bloat boot2 by two bytes: a je rel8).

> -- 
> \\  Sometimes you're ahead,       \\  Mike Smith
> \\  sometimes you're behind.      \\  mike@smith.net.au
> \\  The race is long, and in the  \\  msmith@freebsd.org
> \\  end it's only with yourself.  \\  msmith@cdrom.com
> 
-lq

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9803100827.AA26647>