Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2013 19:38:20 +0000
From:      "Thomas Mueller" <mueller6724@bellsouth.net>
To:        freebsd-questions@FreeBSD.org
Cc:        David Demelier <demelier.david@gmail.com>, CeDeROM <cederom@tlen.pl>
Subject:   Re: SU+J Lost files after a power failure
Message-ID:  <61.07.16944.CA6FA525@cdptpa-oedge02>
References:  <525A6831.5070402@gmail.com> <CAFYkXjncb3Brge6tHQOwT_zGjBqjDOjWOg7SS1JGmuHhD=ZOeA@mail.gmail.com> <525A748F.3050109@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> On 13.10.2013 12:16, CeDeROM wrote:
> > On 13 Oct 2013 11:30, "David Demelier" <demelier.david@gmail.com
> > <mailto:demelier.david@gmail.com>> wrote:
> >> Hello there,
> >> I'm writing because after a power failure I was unable to log in on my
> >> FreeBSD 9.2-RELEASE. The SU+J journal were executed correctly but some
> >> files disappeared, including /etc/pwd.db. Thus I was unable to log in.
> >> I've been able to regenerate the password database with a live cd but
> >> I'm afraid that more files had disappeared somewhere else...
> >> I think this is a serious issue, the journal should not truncate files,
> >> so something should have gone wrong somewhere..
> >> Any ideas? Should I open a PR

> > I had similar issues somewhere around 9.0 - although journal check was
> > fine running fsck revealed filesystem inconsistency. I have reported
> > this on the list, but it seemed unnoticed..? For me this is serious
> > issue as well, if you make PR I will give +1 :-)

> > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

> Yes, I've also ran fsck in single user mode after and lot of incorrect
> things were corrected, I wait a bit for answers (if any) before sending
> a PR.

Running fsck in single-user mode may not be sufficient.

You may need to run fsck_ffs from a USB-stick installation or live CD.

I remember reviving a FreeBSD partition that way, normal root partition not mounted.

I once revived a FreeBSD partition with fsck_ffs from a USB-stick installation of NetBSD 5.1_STABLE i386 after FreeBSD couldn't do it.

It helps to have a UPS to protect against short power failures and allow graceful shutdown on longer power outages.


Tom




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?61.07.16944.CA6FA525>