From owner-freebsd-fs@FreeBSD.ORG Sat Oct 29 20:40:19 2005 Return-Path: X-Original-To: freebsd-fs@freebsd.org 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 1D4A416A41F for ; Sat, 29 Oct 2005 20:40:19 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: from web30302.mail.mud.yahoo.com (web30302.mail.mud.yahoo.com [68.142.200.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 7C17443D78 for ; Sat, 29 Oct 2005 20:40:06 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 82847 invoked by uid 60001); 29 Oct 2005 20:40:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SDCXA/XWI0BKs6RmVBVr6w/EFFFcVhXbevnOtd2eyS42gv+j1ozh20i3QPUGMecHAHSwkLmFFzbPPKWqrnir5ae10Bsi+De1GkmwxsWbkV8l5m9z7ONsTHEPHQ8xAaCCERNzKH77qt+yVs5YjqgCF9YBV2yFZbaaleSfaQOz4jA= ; Message-ID: <20051029204005.82845.qmail@web30302.mail.mud.yahoo.com> Received: from [213.54.83.70] by web30302.mail.mud.yahoo.com via HTTP; Sat, 29 Oct 2005 13:40:05 PDT Date: Sat, 29 Oct 2005 13:40:05 -0700 (PDT) From: Arne "Wörner" To: Gal Ben-Haim , freebsd-fs@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: disklabel recovery X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2005 20:40:19 -0000 --- Gal Ben-Haim wrote: > fdisk shows the partition properly (1 partition of the entire > disk). > That is expected, because the partition table should be outside the partitions... > I need to rebuild the disklabel from scratch somehow, it was > only one partition on one slice. > I have the old layout written.. > Ok... Then I would copy the damaged slice to another filesystem. e. g.: # dd if=/dev/ad2s1 of=/root/shoot.img Then I would do a fsck e. g.: # fsck /dev/ad2s1a The fsck should make the file system usable again. BUT: FSCK IS QUITE RUDE POSSIBLY... Some filenames might be lost, so that there will be some files in /lost+found (as far as I understood that procedure). -Arne __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com