Can't change partition table anymore
M. Warner Losh
imp at bsdimp.com
Sun Apr 3 22:22:53 PDT 2005
In message: <20050404051047.GA50719 at nagual.pp.ru>
Andrey Chernov <ache at 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 at 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 at 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
More information about the freebsd-current
mailing list