Recreating destroyed filesystem

[ Available lists | Index of freebsd-fs | Month of Apr 1997 | Week of 22 Apr 1997 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Reini (Reinhold Huber) <Reinhold.Huber@Fachschaften.TU-Muenchen.DE (Reinhold Huber)>
Date
22 Apr 1997 09:29:44
Subject
Recreating destroyed filesystem
Message-ID
Pine.ULT.3.91.970422181716.6176E-100000@boogie.fachschaften.tu-muenchen.de


[ Hide this part ]
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



Elapsed time: 0.796 seconds