From owner-freebsd-fs@FreeBSD.ORG Wed Mar 9 14:12:14 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F82916A4CE; Wed, 9 Mar 2005 14:12:14 +0000 (GMT) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43F4443D1D; Wed, 9 Mar 2005 14:12:14 +0000 (GMT) (envelope-from mi@corbulon.video-collage.com) Received: from corbulon.video-collage.com ([151.204.231.237]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ID300LPY8SDO810@vms048.mailsrvcs.net>; Wed, 09 Mar 2005 08:12:13 -0600 (CST) Received: from corbulon.video-collage.comcorbulon.video-collage.com (8.13.1/8.13.1) with ESMTP id j29ECCuN047945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 09 Mar 2005 09:12:12 -0500 Received: (from mi@localhost) by corbulon.video-collage.com (8.13.1/8.13.1/Submit) id j29ECC2K047944; Wed, 09 Mar 2005 09:12:12 -0500 (EST envelope-from mi) Date: Wed, 09 Mar 2005 09:12:12 -0500 (EST) From: Mikhail Teterin To: questions@FreeBSD.org, freebsd-fs@FreeBSD.org Message-id: <200503091412.j29ECC2K047944@corbulon.video-collage.com> MIME-version: 1.0 X-Mailer: ELM [version 2.5 PL7] Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Virus-Scanned: clamd / ClamAV version devel-20040615, clamav-milter version 0.73a on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 Subject: disklabel disappeared after power loss X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 14:12:14 -0000 Hello! This is a 4.11-STABLE from Dec 24. After a sudden power loss, one of the disks (ad2) can not recover. It was "dangerously dedicated" and had two partitions -- swap (ad2b) and data (ad2e). Any attempts to use either (swapon, fsck, mount) now result in EINVAL. `disklabel ad2' creates an imaginary label with only the ad2c covering the entire drive. If I try to add the ad2b and ad2e in disklabel (I remember the sizes), I get: disklabel: Operation not supported by device I can read from /dev/ad2 directly. How can I restore access to the filesystem? Thanks! -mi