From owner-freebsd-current@FreeBSD.ORG Mon May 25 19:32:00 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24732106566B for ; Mon, 25 May 2009 19:32:00 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id DBA6E8FC2A for ; Mon, 25 May 2009 19:31:59 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2001:7b8:3a7:0:d9a3:5bc4:15a:4eee] (unknown [IPv6:2001:7b8:3a7:0:d9a3:5bc4:15a:4eee]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 87E265C42; Mon, 25 May 2009 21:31:58 +0200 (CEST) Message-ID: <4A1AF22C.7070206@andric.com> Date: Mon, 25 May 2009 21:31:56 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1pre) Gecko/20090524 Shredder/3.0b3pre MIME-Version: 1.0 To: Freddie Cash References: <4A1AD6D3.7030100@rcn.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: fdisk incompatibility between major versions X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 25 May 2009 19:32:00 -0000 On 2009-05-25 19:36, Freddie Cash wrote: >> So ... I'm guessing the problem in the boot code is corrupted, and if I do >> >> fdisk -B -b da0 >> >> it should put things back to normal. >> However: when I do the second commit I get >> >> fdisk: Geom not found "da0" >> fdsk: failed to write sector 0 > > In order to alter a drive with a mounted filesystem (ie an active > drive), you need to first set the drive to writable: > > sysctl -w kern.geom.debugflags=16 If the original poster is running from a Fixit CD, he could also simply unmount the filesystem before zapping its boot blocks from under it. :) Normally you only need to enable the footshooting^Wdebugflags stuff when you are doing this from the booted system itself, instead of a Fixit or LiveFS disc.