From owner-freebsd-fs Tue Apr 22 09:29:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA23004 for fs-outgoing; Tue, 22 Apr 1997 09:29:44 -0700 (PDT) Received: from fssrv.fachschaften.tu-muenchen.de (fssrv.fachschaften.tu-muenchen.de [129.187.176.20]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id JAA22998 for ; Tue, 22 Apr 1997 09:29:40 -0700 (PDT) Received: from boogie.fachschaften.tu-muenchen.de by fssrv.fachschaften.tu-muenchen.de with SMTP id AA05199 (5.67a8/IDA-1.5 for ); Tue, 22 Apr 1997 17:29:49 +0200 Received: by boogie.fachschaften.tu-muenchen.de (5.67a8/Ultrix3.0-C) id AA06445; Tue, 22 Apr 1997 18:29:36 +0200 Date: Tue, 22 Apr 1997 18:29:35 +0200 (MET) From: "Reini (Reinhold Huber)" To: freebsd-fs@freebsd.org Subject: Recreating destroyed filesystem Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi! My problem: I've screwed up my disk by typing 'dd if=/dev/zero of=/dev/rsd0c count=20', which was not at all healthy to the contens of my disk. I should really have typed 'sd1' instead of 'sd0' :(. Now I've jumpered SCSI ID 0 to ID 1 and installed FreeBSD on another disk (now SCSI ID 0 / sd0). The manpages of dumpfs and fs tell me that I need to find a superblock. The questions: * Does the info the superblock contains allow to find the beginning of the partition? * How do I find the superblock? * What is where in the superblock? Aim is to get my user files back, and then using this disk for 2.2[.1]-RELEASE. I habe been using FreeBSD 2.1.0-RELEASE on the machine, installed by the /stand/sysinstall utility, using the default partition layout computed before I upgraded memory from 16 to 48 MB. Any info, including hints on manpages, webpages, FAQs, ..., is valuable for me. Thanks in advance, Reinhold Huber