Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Oct 2013 19:16:23 +0200
From:      CeDeROM <cederom@tlen.pl>
To:        Brad Mettee <bmettee@pchotshots.com>
Cc:        David Demelier <demelier.david@gmail.com>, Adam Vande More <amvandemore@gmail.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: SU+J Lost files after a power failure
Message-ID:  <CAFYkXjm8y0Br31_pqRZc0sNFbqCNtKHhjeQuiLXkGT2zxSu0GA@mail.gmail.com>
In-Reply-To: <525C2554.7080203@pchotshots.com>
References:  <525A6831.5070402@gmail.com> <l3gc7e$c91$1@ger.gmane.org> <20131014133953.58f74659@gumby.homeunix.com> <525C1D1C.9050708@gmail.com> <CA%2BtpaK2Pr2po2cQ1yanQK9%2BwLp77SYqYHjxiXaU5FfXwHrkGow@mail.gmail.com> <CAFYkXjn-1wTJcQ4a_fyXCvwh9ukt3%2BdjM2qsMeaH1HhVJNvhiA@mail.gmail.com> <525C2554.7080203@pchotshots.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Oct 14, 2013 at 7:09 PM, Brad Mettee <bmettee@pchotshots.com> wrote:
> On 10/14/2013 12:50 PM, CeDeROM wrote:
>> Then why random files gets damaged as well even they are not
>> accessed/written on power loss? :-)
>
> Random files can be affected because the sectors of the hard disk containing
> the directory entries for those files, not the file data itself, may be
> damaged (ie: the directory was in the process of being written OR the
> pointer to that SECTOR was in the process of being written).
>
> It doesn't mean a file was in active use, just that a chunk of the disk with
> data relevant to that file was. Keep in mind, one sector of disk may have
> data for a dozen files in it (or more). Damage doesn't have to occur because
> a given file was in use at the time of a crash.

Isn't there Journal to prevent and reverse such damage?

> If your power grid is prone to failures or blips, I strongly suggest
> investing in a UPS.

I have UPS in my desktop and also I am working on a laptop, so the
power supply is not the only possible cause of system crash.. this may
be faulty driver, hardware failure, kernel panic, etc.

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



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