From owner-freebsd-stable@FreeBSD.ORG Tue Jan 31 21:57:32 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05FFD16A420 for ; Tue, 31 Jan 2006 21:57:32 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id C522343D46 for ; Tue, 31 Jan 2006 21:57:31 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.11) with ESMTP id k0VLvVRv063626 for ; Tue, 31 Jan 2006 13:57:31 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id k0VLvV0S063625 for stable@freebsd.org; Tue, 31 Jan 2006 13:57:31 -0800 (PST) (envelope-from rizzo) Date: Tue, 31 Jan 2006 13:57:31 -0800 From: Luigi Rizzo To: stable@freebsd.org Message-ID: <20060131135731.B59599@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Cc: Subject: fdisk, bsdlabel and hidden tricks X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 21:57:32 -0000 recently i was playing with fdisk and bsdlabel to create a new FreeBSD slice (?) in the MBR on the same disk i booted from, and later to create a slice and create partitions on it on a second disk. In both cases i had a hard time figuring out that kern.geom.debugflags was needed to let fdisk work, and probably some other magic that i haven't figured out clearly (a reboot helped, but i don't know why, and whether some kind of reprobe of the disk unit could have saved the reboot) to let the bsdlabel do the work. The fdisk manpages does not have any reference to geom. The bsdlabel page does not say under what conditions one can actually write the partition table to disk. Anyone willing to help fixing the documentation ? This is also missing in -current, but i think it is more critical for 6.1-RELEASE given the larger user base. cheers luigi