How to restore a text file from UFS??

Frank Shute frank at shute.org.uk
Sat Aug 21 14:43:48 UTC 2010


On Thu, Aug 19, 2010 at 09:07:51PM +0300, EforeZZ 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....
> 
> ;-(

Your editor doesn't save a backup? E.g: /etc/rc.conf~

I use vim and have it setup to save backups.

Even though the backup might not be identical, it's saved my bacon on
occasion.


Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html




More information about the freebsd-questions mailing list