From owner-freebsd-fs@FreeBSD.ORG Sat Oct 29 18:59:41 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 3A48016A41F for ; Sat, 29 Oct 2005 18:59:41 +0000 (GMT) (envelope-from gbenhaim@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDA8E43D45 for ; Sat, 29 Oct 2005 18:59:40 +0000 (GMT) (envelope-from gbenhaim@gmail.com) Received: by zproxy.gmail.com with SMTP id x3so627176nzd for ; Sat, 29 Oct 2005 11:59:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=WuHFpUmP9z/3DEuDFJttCijA0hEa+w33ncuiRv+3k/l9GEDT0nwcW8YKhZIdTXLxGoKzL0XPlMzFInx+OIR7QaHzlSl4N0zwXNZm3ZkGSsOkNfKml7R4W6Qnc+VsXKAPGyYYvsLC/pp+6nGL6YFJc5ep1wkPtpPD7Mj2TVBdSXI= Received: by 10.37.15.73 with SMTP id s73mr1610897nzi; Sat, 29 Oct 2005 11:59:37 -0700 (PDT) Received: by 10.36.65.15 with HTTP; Sat, 29 Oct 2005 11:59:37 -0700 (PDT) Message-ID: Date: Sat, 29 Oct 2005 20:59:37 +0200 From: Gal Ben-Haim To: freebsd-fs@freebsd.org MIME-Version: 1.0 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: 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 18:59:41 -0000 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 o= f the files ?