Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2009 09:30:15 +0200
From:      Erik Norgaard <norgaard@locolomo.org>
To:        questions@freebsd.org
Subject:   Recovering files after a crash
Message-ID:  <4A8A5887.1080304@locolomo.org>

next in thread | raw e-mail | index | archive | help
Hi:

I woke op to a crash this morning after a powerfailure, and now dmesg 
shows this:

WARNING: / was not properly dismounted
GEOM_LABEL: Label ufsid/442f8ac1c0db9af2 removed.
GEOM_LABEL: Label for provider ad6s1a is ufsid/442f8ac1c0db9af2.
GEOM_LABEL: Label ufsid/442f8ac5a7fa5dda removed.
GEOM_LABEL: Label for provider ad6s1d is ufsid/442f8ac5a7fa5dda.
GEOM_LABEL: Label ufsid/442f8ac950b22b46 removed.
GEOM_LABEL: Label for provider ad6s1e is ufsid/442f8ac950b22b46.
GEOM_LABEL: Label ufsid/442f8ad3e5c88ab8 removed.
GEOM_LABEL: Label for provider ad6s1f is ufsid/442f8ad3e5c88ab8.
GEOM_LABEL: Label ufsid/442f8ad59f647596 removed.
GEOM_LABEL: Label for provider ad6s1g is ufsid/442f8ad59f647596.
GEOM_LABEL: Label ufsid/442f8ae2200a8064 removed.
GEOM_LABEL: Label for provider ad6s1h is ufsid/442f8ae2200a8064.
GEOM_LABEL: Label ufsid/442f8ac1c0db9af2 removed.
GEOM_LABEL: Label ufsid/442f8ac5a7fa5dda removed.
GEOM_LABEL: Label ufsid/442f8ac950b22b46 removed.
GEOM_LABEL: Label ufsid/442f8ad3e5c88ab8 removed.
GEOM_LABEL: Label ufsid/442f8ad59f647596 removed.
GEOM_LABEL: Label ufsid/442f8ae2200a8064 removed.

The problem is that I have no idea which files were affected.

So, now some questions:

First, how do I determine which files were corrupted? And how do I 
recover these files?

Second, / is mostly read-only, in fact, I can't think of any file on 
that partition that should be modified at all: /tmp is on a separate 
partition, I have source files on /usr/local rather than the default, in 
fact, only root user files are modified during a normal day, but it's 
been days since I logged in as root.

How do I protect read-only files from being corrupted in the first 
place? I have tried mounting / read-only but that gave a load of other 
problems.

Thanks, Erik


-- 
Erik Nørgaard
Ph: +34.666334818/+34.915211157                  http://www.locolomo.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A8A5887.1080304>