From owner-freebsd-fs@FreeBSD.ORG Sat Oct 29 20:44:42 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 28E5616A41F for ; Sat, 29 Oct 2005 20:44:42 +0000 (GMT) (envelope-from gbenhaim@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9A8343D45 for ; Sat, 29 Oct 2005 20:44:41 +0000 (GMT) (envelope-from gbenhaim@gmail.com) Received: by zproxy.gmail.com with SMTP id x3so635615nzd for ; Sat, 29 Oct 2005 13:44:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=U2j/rjL7K5DcLs4QkvtfPWhV8K9gGnnOIhbNXt9RLMwJxhvuJcAV9cPiEbQ0gcGvQbeOvUpFOImWVJ+zzH8t7yKR2nLnlOjNkiEAt70XzPdblwHNrQzLmgKXGEUJ0VFTYqhFyn9AnBHyO5Q0Xud44/8xxZupudtHFjkzPPrJQZE= Received: by 10.36.222.75 with SMTP id u75mr1681967nzg; Sat, 29 Oct 2005 13:44:41 -0700 (PDT) Received: by 10.36.65.15 with HTTP; Sat, 29 Oct 2005 13:44:41 -0700 (PDT) Message-ID: Date: Sat, 29 Oct 2005 22:44:41 +0200 From: Gal Ben-Haim To: freebsd-fs@freebsd.org In-Reply-To: <20051029204005.82845.qmail@web30302.mail.mud.yahoo.com> MIME-Version: 1.0 References: <20051029204005.82845.qmail@web30302.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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:44:42 -0000 but how do I rebuild the disklabel ? On 10/29/05, Arne W=F6rner wrote: > > --- 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=3D/dev/ad2s1 of=3D/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 > -- Gal Ben-Haim, gbenhaim@gmail.com