On Tue, Feb 21, 2006 at 10:29:22PM +0200, Marko Vukovic wrote:
> Hallo
>
> After several power outages, one of my client's m0n0wall machines fails
> to boot with:
>
> /: bad dir ino 884 at offset 0: mangled entry
> panic: ufs_dirbad: bad dir
>
> There doesn't seem to be any way to recover from this but I was
> wondering how, if possible, I could mount the CF on say, a Linux machine
> and at least recover config.xml.
>
> The m0n0wall in question is a PC with IDE-CF adapter. If I throw in a
> cdrom drive and boot off Knoppix it mounts /dev/hda4 and /dev/hda5 as
> type UFS but a directory listing yields nothing.
What I would do in such a case is a 'dd if=/dev/hdaX of=bigfile' and
use 'strings' and/or an hex editor (e.g. 'hexedit') on that file to
locate the config.xml file and save it. Not an easy job, especially if
it has been saved fragmented, but if your config file is worth the
task...
Greets,
_Alain_ |