From owner-freebsd-fs@FreeBSD.ORG Sun Oct 30 12:55:36 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 410E216A41F for ; Sun, 30 Oct 2005 12:55:36 +0000 (GMT) (envelope-from gbenhaim@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id C493F43D45 for ; Sun, 30 Oct 2005 12:55:35 +0000 (GMT) (envelope-from gbenhaim@gmail.com) Received: by zproxy.gmail.com with SMTP id x3so709442nzd for ; Sun, 30 Oct 2005 04:55:33 -0800 (PST) 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=nj1ocwgeJVshRB8RBdFwAnoDSrlGwVlhkT8IVRdry87FW+rTXIdZjOVG8W+nOGSt34yp6e8AXInObl//wS+JOGRb5s2oVvsott7G4B2uxtdgtpl7oxNp2v2hPZ+rRA/GVbSvPG8dxCfq7pdyfAyYPf0LoySk4tFMCt7xL+8jIW8= Received: by 10.36.75.17 with SMTP id x17mr2324189nza; Sun, 30 Oct 2005 04:55:32 -0800 (PST) Received: by 10.36.65.15 with HTTP; Sun, 30 Oct 2005 04:55:32 -0800 (PST) Message-ID: Date: Sun, 30 Oct 2005 14:55:32 +0200 From: Gal Ben-Haim To: freebsd-fs@freebsd.org In-Reply-To: <20051030091959.A93720@mp2.macomnet.net> MIME-Version: 1.0 References: <20051030091959.A93720@mp2.macomnet.net> 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: Sun, 30 Oct 2005 12:55:36 -0000 meanwhile I did a 'dd' image of the drive to a network drive and formatted the hd, I needed the system up again. what can I do with that 'dd' image in order to restore atleast some of the data on that drive ? On 10/30/05, Maxim Konovalov wrote: > > On Sat, 29 Oct 2005, 20:59+0200, Gal Ben-Haim wrote: > > > Hello, > > Im running FreeBSD 5.4 > > I accedently enabled swap on /dev/ad2s1c (raw label), this destroyed my > > disklabel, the data is still on the disk (after doing 'cat' on the /dev > > device). > > When I try to mount the filesystem I get: the mount is successful, but > when > > I 'ls' the mount point I get bad file descriptor. > > I tried to create a new label with 'sysinstall', but the label which is > > created seems to be with invalid values. > > I tried running scan_ffs, after it read all the blocks on the disk it > > outputs 'input/output error. > > > > is there any way to reconstruct the label properly or access atleast > some of > > the files ? > > src/tools/tools/find-sb/ > ports/sysutils/scan_ffs/ > ports/sysutils/ffsrecov/ > > -- > Maxim Konovalov > -- Gal Ben-Haim, gbenhaim@gmail.com