Trouble with UBIFS

Richard Weinberger richard.weinberger at gmail.com
Wed Jun 10 04:25:05 PDT 2015


Hi!

On Wed, Jun 10, 2015 at 12:08 PM, Smitha Rathnam
<rathnam.smitha at gmail.com> wrote:
>  Hi,
>
>  We have an embedded linux (2.6) system. Since the past few months, we
> have been seeing a corruption of the log filesystem.
>  The filesystem is using mtd5 device.
>  The error looks like this;
>  user.notice kernel: klogd started: BusyBox v1.20.0 (2012-09-18 17:42:52 MST)
>
>  Jan  1 00:00:05 user.debug kernel: 00001fa0: 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000 00000000
> ................................
>  Jan  1 00:00:05 user.debug kernel: 00001fc0: 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000 00000000
> ................................
>  Jan  1 00:00:05 user.debug kernel: 00001fe0: 00000000 00000000
> 00000000 00000000 00000000 00000000 00000000 00000000
> ................................
>  *Jan  1 00:00:05 user.err kernel: UBIFS error (pid 1110):
> ubifs_recover_leb: LEB 24 scanning failed*
>
>  Is there a way to retrieve data from the partition? How do we fix this error?

To fix the problem one has to analyze it first.
The kernel output you've posted is incomplete and most likely unrelated.
Do you have a complete kernel log?

Retrieving data from the filesystem is not easy, it depends how much UBIFS
is corrupted.
What I do in such cases is dumping all nodes and running them thought a
semi-automated script which can deal with UBIFS.

-- 
Thanks,
//richard



More information about the linux-mtd mailing list