[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: boot failure



Pierre Frenkiel <pierre.frenkiel@gmail.com> writes:

> On Tue, 24 Jan 2012, Pierre Frenkiel wrote:
>
>    Remains the question "how /etc/modprobe.d/options was corrupted"
>    May-be after a power failure, but I thought that this couldn't
>    happen with a ext4 file system.
>

The default/normal configuration of ext4 journals only metadata.
This means that file system integrity is guaranteed but individual
file content can be corrupted by a power failure or other hard crash.

To update files that must be correct, one can write a new version,
sync, and then use mv to replace the old with the new version.  Since
mv is a metadata operation, it is guaranteed to either have happened
or not after crash recovery.

The journal_data option provides full protection, but I suspect it is
not a practical solution for normal usage.


Reply to: