UBIFS corruption and UBI + unstable bit questions

Richard Weinberger richard at nod.at
Thu Mar 26 11:17:43 PDT 2015


Hi!

Am 26.03.2015 um 18:18 schrieb Morand, Guy:
>> Can you please be more specific.
>> What exactly do you mean by "only the partition"?
>> Also what do you mean by "corrupted"?
> 
> Sorry, nomenclature problem ... I mean by a volume the layer on top of the MTD 
> device (UBI):
> ubiformat /dev/mtd1
> ubiattach /dev/ubi_ctrl -m 1
> 
> By partition, I mean actually a volume on top of UBI (UBIFS):
> ubimkvol /dev/ubi0 -N partition1 -s 64MiB
> ubimkvol /dev/ubi0 -N partition2 -m

So, an UBI volume. :-)

> Then if there is a "unstable bit" on partition1, is also the partition2 
> corrupted? This means there is nothing I can do to restore it.

No, UBI tries hard to preserve data.
But it depends on the type of the corruption.

>> UBI/FS is not a magic bullet. People who *really* care about power cut safety
>> attack the problem also with their hardware.
> Yieah right, I understand... I've seen some hardware with super caps that gives 
> some time to Linux to shutdown correctly, I really love it!

It is not really Linux which needs time to shutdown, mostly other hardware components.
People who care know exactly which components need some time, the NAND chip is only one of them.
Also they don't only care about a plain power cut. You also need to take care of voltage variations
during a power cut.

>> Are you able to trigger this problem?
> No, I'm just thinking about a nice partitioning strategy on my platform to 
> avoid as much corruptions as possible with the hardware I have in hands!

Okay. That's what I thought. I've never seen the issue on serious hardware.

Thanks,
//richard



More information about the linux-mtd mailing list