Subject: Re: recovering from a bad crash, ffs recovery
To: None <netbsd-users@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 01/06/2004 00:44:16
On Sun, Jan 04, 2004 at 07:44:36PM -0500, Charles Shannon Hendrix wrote:
> Sun, 04 Jan 2004 @ 19:09 -0500, Charles Shannon Hendrix said:
>
> > Right now, I'm not sure what happened, except the kernel on first
> > booting was confused about the drive layout. However, that shouldn't
> > have caused any overwriting of the filesystem.
>
> Whoops... one thing I hadn't thought about is /tmp being wiped.
>
> When my system booted with the wrong drive order, it is possible that
> slice d on the wiped drive was mounted as /tmp, because sd0d is the
> slice for /tmp normally.
>
> So my question is different now: there haven't been any writes to the
> filesystem that got erased, so is there a way to recover the files?
>
> Maybe a tool to tell ffs to use an alternate superblock or something?
Well, no. What you really needs to is to play with fsdb now.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 24 ans d'experience feront toujours la difference
--