How to restore a text file from UFS??
C. P. Ghost
cpghost at cordula.ws
Thu Aug 19 19:09:34 UTC 2010
On Thu, Aug 19, 2010 at 8:07 PM, EforeZZ <eforezz at gmail.com> wrote:
> I edited my 50Kb /etc/rc.conf, loaded a driver and.... got a kernel panic!!
> After reboot my /etc/rc.conf is 0 bytes (after automatic background fsck).
> Which tool should I try now to restore any version of my rc.conf?..
> I think data should still be somewhere on the disk....
1. Have you looked into /lost+found ?
2. You could try to grep the raw device of the root partition,
searching for known fragments of the old /etc/rc.conf,
and then manually recreate it. But do this fast, before
the now freed blocks are reused and thus overwritten
again. You do have a small separate / partition, right?
Better run the system with / mounted read-only, until
you can find the deleted fragments.
Cordula's Web. http://www.cordula.ws/
More information about the freebsd-questions