Recovery from disk+fs crash

Eric Anderson anderson at centtech.com
Tue Jun 6 05:50:45 PDT 2006


Robin Elfrink said:
>
> Hi,
>
>
> I have a system with hardware raid, which has had some hardware troubles.
>
> The state this machine is in is now: The raid configuration is OK, but
> the filesystem somehow broke seriously. If I mount it under FreeBSD 5.4
> (which is wat the system was running at the time) it completely _hangs_
> (not even kernel panic) when accessing certain directories. Under 6.x
> not everything is OK, but at least the system does not hang.
>
> Now the problem is that I lost some directory trees, and I am looking
> for ways to see if I recover them. The obvious first step would be fsck,
> but the fs is so broken it gives me:
>
> root@:~# fsck /dev/da0s1f
> ** /dev/da0s1f (NO WRITE)
> cannot alloc 18446744067446403432 bytes for inphead
>
> root@:~# df -h /dev/da0s1f
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/da0s1f     64G    -58T     58T -100219%    /var/disk
>
> Google did not help much, has anybody any clue to how I can get fsck to
> run properly?

Have you tried using fsck_ffs and specifying an alternate superblock? 
(say 160)

Eric




-- 
-------------------------------------------------------------
Eric Anderson    anderson at centtech.com    Centaur Technology
You have my continuous partial attention
-------------------------------------------------------------



More information about the freebsd-isp mailing list