From owner-freebsd-current@FreeBSD.ORG Tue Apr 5 02:20:31 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 935B716A4CE for ; Tue, 5 Apr 2005 02:20:31 +0000 (GMT) Received: from ion.gank.org (ion.gank.org [69.55.238.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44EDA43D31 for ; Tue, 5 Apr 2005 02:20:31 +0000 (GMT) (envelope-from craig@xfoil.gank.org) Received: by ion.gank.org (mail, from userid 1001) id 065462D5F4; Mon, 4 Apr 2005 21:20:30 -0500 (CDT) Date: Mon, 4 Apr 2005 21:20:26 -0500 From: Craig Boston To: "M. Warner Losh" Message-ID: <20050405022025.GA82438@nowhere> Mail-Followup-To: Craig Boston , "M. Warner Losh" , ache@nagual.pp.ru, current@FreeBSD.ORG References: <20050404044028.GC49953@nagual.pp.ru> <20050403.225310.82842428.imp@bsdimp.com> <20050404051047.GA50719@nagual.pp.ru> <20050403.232036.35219348.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050403.232036.35219348.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i cc: ache@nagual.pp.ru cc: current@FreeBSD.ORG Subject: Re: Can't change partition table anymore X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 02:20:31 -0000 > In message: <20050404051047.GA50719@nagual.pp.ru> > Andrey Chernov writes: > : Various partition checkers under Windows indicates no problems. > : No offset+size overlap. On Sun, Apr 03, 2005 at 11:20:36PM -0600, M. Warner Losh wrote: > 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... FWIW, I'm seeing this too on a Soekris running 5.4-PRE built a couple days ago. At first I thought it might be related to the bug described in 1.62 of geom_mbr.c since my / is mounted read-only, but remounting it read-write does not seem to improve matters: # boot0cfg -v ad0 # flag start chs type end chs offset size 1 0x00 0: 1: 1 0xa5 457: 7:32 32 117216 2 0x80 458: 1: 1 0xa5 915: 7:32 117280 117216 3 0x00 916: 0: 1 0xa5 979: 7:32 234496 16384 version=1.0 drive=0x80 mask=0xf ticks=1 options=packet,noupdate,nosetdrv default_selection=F1 (Slice 1) # boot0cfg -v -s 2 ad0 boot0cfg: /dev/ad0: ioctl DIOCSMBR: Operation not permitted Previously I was just using the standard MBR (no boot0) and using fdisk combined with geom.debugflags=16 to change the active partition. I thought I'd give boot0 a try after reading that it's supposed to work... Glancing through the code I don't see anything that returns EPERM except the flags check, so it's probably coming from the g_write_data call. The commit logs don't show anything between 5.4 and -current that looks like an obvious fix, but I may be missing something. I may try -current on this machine at some point to get the improved Atheros support. For the moment phk's sweeping device changes have scared me off :-) Craig