From owner-freebsd-fs@FreeBSD.ORG Wed Mar 9 14:38:10 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 9E72B16A4CE; Wed, 9 Mar 2005 14:38:10 +0000 (GMT) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75E8643D39; Wed, 9 Mar 2005 14:38:10 +0000 (GMT) (envelope-from mi@corbulon.video-collage.com) Received: from corbulon.video-collage.com ([151.204.231.237]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ID3001AZ9ZLNHB0@vms046.mailsrvcs.net>; Wed, 09 Mar 2005 08:38:10 -0600 (CST) Received: from corbulon.video-collage.comcorbulon.video-collage.com (8.13.1/8.13.1) with ESMTP id j29Ec8J0048262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 09 Mar 2005 09:38:08 -0500 Received: (from mi@localhost) by corbulon.video-collage.com (8.13.1/8.13.1/Submit) id j29Ec861048261; Wed, 09 Mar 2005 09:38:08 -0500 (EST envelope-from mi) Date: Wed, 09 Mar 2005 09:38:08 -0500 (EST) From: Mikhail Teterin In-reply-to: <20050309142641.53158.qmail@web41205.mail.yahoo.com> To: arne_woerner@yahoo.com (Arne "Wörner") Message-id: <200503091438.j29Ec861048261@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 cc: freebsd-fs@FreeBSD.org cc: questions@FreeBSD.org Subject: Re: 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:38:10 -0000 Thank you very much for the quick response! > > After a sudden power loss, one of the disks (ad2) can not > > recover. > What does `fdisk ad2' say? Some nonsense -- as if I had only a 30Mb partition-4... > What does `disklabel ad2' say? Something about "amnesiac" with only the c-partition. I used /stand/sysinstall to create a small swap partition at the beginning of the drive. I don't know, what it does, but it re-created the label, which I was then able to edit with disklabel. scan_ffs (from the sysutils/scan_ffs) helped me recover the exact size and offset. I wish, fsck had scan_ffs' functionality built-in... > Maybe something is messed up, so that disklabel does not dare to > write a new disklabel. Well, sysinstall did not mind... > Is something from ad2 mounted read-writeable, when you get the "Op > not perm" error? No, definetly not. > How about > 1. copying the data from the former ad2e into another filesystem, This is a 50% full 180Gb disk. The only other disk nearby is a 20Gb system drive... > 3. establishing an all new disklabel with proper ad2e? :-) > (most likely ad2e is too big?) ad2e was not too big -- it did not exist. But sysinstall did the job. Perhaps, disklabel needs to learn a few tricks from that tool. And, of course, the main question is, why could the label disappear as a result of something as mundane as powerloss? Yours, -mi