Date: Sat, 26 Apr 1997 01:43:21 +0200 From: "Julian H. Stacey" <jhs@freebsd.org> To: "Reini (Reinhold Huber)" (Reinhold Huber) <Reinhold.Huber@Fachschaften.TU-Muenchen.DE> Cc: freebsd-fs@freebsd.org Subject: Re: Recreating destroyed filesystem Message-ID: <199704252343.BAA05626@wall.jhs.no_domain> In-Reply-To: Your message of "Tue, 22 Apr 1997 18:29:35 %2B0200." <Pine.ULT.3.91.970422181716.6176E-100000@boogie.fachschaften.tu-muenchen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Reference: > From: "Reini (Reinhold Huber)" <Reinhold.Huber@Fachschaften.TU-Muenchen.DE (Reinhold Huber)> > Subject: Re: Recreating destroyed filesystem > Date: Tue, 22 Apr 1997 18:29:35 +0200 (MET) > > 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? No, Disklabel does (within a slice). > * How do I find the superblock? > * What is where in the superblock? Read /usr/include/sys/ disklabel.h diskslice.h > 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. I would think you could just do something like disklabel -r -w sd1 same_old_label_name_as_before-Or_cloned_fake fsck -b 32 but I suggest doing a whole disc dd to tape first, to avoid errors, something along the lines of dd if=/dev/rsd1c of=/dev/rst0 bs=10k conv=sync (but not rsd1c if disk has fdisk type slices ?) > Thanks in advance, > Reinhold Huber Phone me to discuss it, if you want, 089 268616 I'm also in Munich like you ! Julian -- Julian H. Stacey jhs@freebsd.org http://www.freebsd.org/~jhs/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704252343.BAA05626>