From owner-freebsd-fs@FreeBSD.ORG Sun Oct 30 06:22:23 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 3A41416A41F for ; Sun, 30 Oct 2005 06:22:23 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A64843D46 for ; Sun, 30 Oct 2005 06:22:22 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.13.3/8.13.3) with ESMTP id j9U6MK3M093760; Sun, 30 Oct 2005 09:22:20 +0300 (MSK) (envelope-from maxim@macomnet.ru) Date: Sun, 30 Oct 2005 09:22:20 +0300 (MSK) From: Maxim Konovalov To: Gal Ben-Haim In-Reply-To: Message-ID: <20051030091959.A93720@mp2.macomnet.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-fs@freebsd.org 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 06:22:23 -0000 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