Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Apr 2005 23:20:36 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        ache@nagual.pp.ru
Cc:        current@FreeBSD.ORG
Subject:   Re: Can't change partition table anymore
Message-ID:  <20050403.232036.35219348.imp@bsdimp.com>
In-Reply-To: <20050404051047.GA50719@nagual.pp.ru>
References:  <20050404044028.GC49953@nagual.pp.ru> <20050403.225310.82842428.imp@bsdimp.com> <20050404051047.GA50719@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20050404051047.GA50719@nagual.pp.ru>
            Andrey Chernov <ache@nagual.pp.ru> writes:
: On Sun, Apr 03, 2005 at 10:53:10PM -0600, M. Warner Losh wrote:
: > One of them must, if you are getting this error.  Here's my machine.
: 
: # boot0cfg -v ad0
: #   flag     start chs   type       end chs       offset         size
: 1   0x80      0:  1: 1   0xa5   1023:254:63           63     23053212
: 2   0x00   1023:  0: 1   0x07   1023:254:63     23053275    133307370
: 
: Various partition checkers under Windows indicates no problems.
: No offset+size overlap.
: 
: > FreeBSD harmony.village.org 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Oct 21 07:15:53 MDT 2004     root@harmony.village.org:/u/misc/imp/obj/u/misc/imp/5x/src/sys/GENERIC  i386
: 
: It seems that this secret sysctl is phk's -current innovation, not in 5.3,
: but I am not sure.

One more time with -current machine:

# boot0cfg -B da0
# uname -a
FreeBSD hondo.village.org 6.0-CURRENT FreeBSD 6.0-CURRENT #7: Thu Mar 17 20:41:51 MST 2005     imp@hondo.village.org:/hondo/imp/FreeBSD/src/sys/i386/compile/HONDO  i386
# boot0cfg -v da0
#   flag     start chs   type       end chs       offset         size
1   0x80      5:  0: 1   0xa5    521:254:63        80325      8305605
3   0x00      0:  1: 1   0x12      4:254:63           63        80262

version=1.0  drive=0x80  mask=0xf  ticks=182
options=packet,update,nosetdrv
default_selection=F1 (Slice 1)
# mount
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/da0s1e on /tmp (ufs, local, soft-updates)
/dev/da0s1f on /usr (ufs, local, soft-updates)
/dev/da0s1d on /var (ufs, local, soft-updates)
<etc>
# boot0cfg -o nopacket da0
# boot0cfg -v da0
#   flag     start chs   type       end chs       offset         size
1   0x80      5:  0: 1   0xa5    521:254:63        80325      8305605
3   0x00      0:  1: 1   0x12      4:254:63           63        80262

version=1.0  drive=0x80  mask=0xf  ticks=182
options=nopacket,update,nosetdrv
default_selection=F1 (Slice 1)
#

So clearly there's something wrong on your machine, or there's a bug
in the GEOM code.  It should work, and if not, we need to find out
either your pilot error, or the bug that is prefenting it from
updating.  My -current machine appears to work as expected...

Warner



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