From owner-freebsd-current Sat Nov 30 15:50:46 2002 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 5E51237B401 for ; Sat, 30 Nov 2002 15:50:45 -0800 (PST) Received: from hun.org (hun.org [216.190.27.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECD2C43ED4 for ; Sat, 30 Nov 2002 15:50:44 -0800 (PST) (envelope-from attila@hun.org) Received: by hun.org (Postfix, from userid 1001) id 207F15746A; Sat, 30 Nov 2002 23:50:39 +0000 (GMT) From: Daniel Flickinger X-Mailer: AttilaMail with XEmacs & Postfix on FreeBSD 5.0-CURRENT X-Ballistic: N 37.218497 W 113.614979 X-Address: 31 N 700 E, St George UT 84770-3028 X-Squawk: (435) 680-0750 X-No-Archive: yes X-Tags: Sanity is the Playground for the Unimaginative Date: Sat, 30 Nov 2002 18:18:01 +0000 (GMT) Message-ID: <20021130181801.uQuC2110@hun.org> In-Reply-To: <200211300700.gAU70V59078064@beastie.mckusick.com> References: <20021130174229.L3363-100000@gamplex.bde.org> Cc: Poul-Henning Kamp , FreeBSD 5.0-CURRENT Subject: Re: Trashed Disk Labels Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="text" Content-Transfer-Encoding: 8bit Content-Disposition: inline Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sent: Fri, 29 Nov 2002 23:00:31 -0800 by Kirk McKusick | Date: Sat, 30 Nov 2002 17:43:53 +1100 (EST) | From: Bruce Evans | > | > Labels should be write protected, but this seems to have been broken | > by GEOM. | | Disk labels certainly used to be write protected. Not sure when that | stopped, but it certainly would have been useful in this recent context. Write protect after 'disklabel ...' disappeared roughly 01 Oct when GEOM became the default. Prior to that, before rewriting a label it was always necessary to 'disklabel -W special' to rewrite. With GEOM, I made it a habit to 'disklabel -N special' after writing a label which is probably why I lost only the single UFS2 partition with the updated UFS2 in the 1200Z 27 Nov build, rather than the whole dangerously dedicated disk (which would have created excessive angst). FWIW, I keep copies of all disklabels and pgp keys on separate 3.5s. Since I have them, I haven't needed them. Yes, disklabel protect after write should be restored. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message