From owner-freebsd-current@FreeBSD.ORG Mon May 25 17:59:32 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 53F201065675 for ; Mon, 25 May 2009 17:59:32 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id 122168FC1E for ; Mon, 25 May 2009 17:59:31 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1906564ywe.13 for ; Mon, 25 May 2009 10:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=lmjLm3Pe6pBdZSn7Yyi/jtnscbdBszh4u/bRgaYO76k=; b=YSf2+0XN/8k3HRRr9m12sliGKAajJQ64CVqQGWWCYK9ueCVu0B1KRpezVxPTCNKrcF MNX47rdwpAsmyK19k45vOChRk2VavHTXjkUiVtdveIdq0q7bva/QfAOPIHV4uxYg08Sh b/HsBqIzijIOwz0ACGNZ6Sx+bd9+OH2zLDbd8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=QVBxAj/LdpjS0f+EyNeClpFDCTr6d5oaZKcDSE8NSaqtIz0lAVlFq+HcljSh+6j5wO OKqawcNLs1rHZWutJsiNxvpkaBUEAHxQUXlr4d/Qv7VyOH+9kuvlBW4fsmwHTgJrZX28 5ZY0Wq3VRe0wXWw7PVoBXZekcCS1fmf2R9Zwg= MIME-Version: 1.0 Received: by 10.150.54.9 with SMTP id c9mr14781021yba.23.1243272992102; Mon, 25 May 2009 10:36:32 -0700 (PDT) In-Reply-To: <4A1AD6D3.7030100@rcn.com> References: <4A1AD6D3.7030100@rcn.com> Date: Mon, 25 May 2009 10:36:32 -0700 Message-ID: From: Freddie Cash To: current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: 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 17:59:32 -0000 On Mon, May 25, 2009 at 10:35 AM, Robert Huff wrote: > =C2=A0 Due to a combination of my spectacular stupidity and external even= ts, a > machine running -Current from late April will no longer boot. =C2=A0Speci= fically, > instead of the loader menu screen I get "Invalid partition". > =C2=A0 Crud. > =C2=A0 Broke out the most recent fixit disk, which is from 7.1 (Jan 2009)= . > =C2=A0 Boots fine; fdisk finds the correct slice information; bsdlabel fi= nds the > right partition data; mount / and /usr under LiveFS > =C2=A0 Whew!!!! > =C2=A0 So ... I'm guessing the problem in the boot code is corrupted, and= if I do > > =C2=A0 =C2=A0fdisk -B -b da0 > > =C2=A0 =C2=A0it should put things back to normal. > =C2=A0 =C2=A0However: when I do the second commit I get > > =C2=A0 =C2=A0fdisk: Geom not found "da0" > =C2=A0 =C2=A0fdsk: 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=3D16 This has been the case for several years now (since 5.x I believe). --=20 Freddie Cash fjwcash@gmail.com