UBIFS Corrupt during power failure
Artem Bityutskiy
dedekind at infradead.org
Tue Mar 31 10:45:43 EDT 2009
On Mon, 2009-03-30 at 13:00 -0600, Eric Holmberg wrote:
> Here is a basic summary of my findings to date for debugging corruption
> of the root UBIFS volume which is located on NOR flash. Please comment
> if you have any suggestions.
>
> Physical Power Cycling
> ----------------------
> Physically cycling the power causes LEB empty block corruption after an
> average of 50 power cycles. The problem typically occurs when power
> fails while UBIFS is doing a recovery from the previous power failure.
>
> See attached log of boot showing the two defective LEB's (file is
> 2009-03-26-corrupt-LEB-empty-block--physical-power-cycling.txt).
>
> Using reboot -f
> ---------------
> Using Reboot -f, the system was rebooted between 0 and 30 seconds after
> remounting the UBIFS partition for read/write access.
Did not look close enough, but could you please try to
enable UBI/UBIFS "extra checks". Disable the debugging
messages to prevent the flood, but the debugging should
be enabled.
With the extra checks everything will become much slower.
But UBI will have some useful checks. E.g., before writing,
it will read the region and make sure it writes to a region
which have all 0xFFs.
Let's see if we can catch some problem with that.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list