Corrupt empty space

HOUR Fréderic frederic.hour at safran-engineering.com
Mon Mar 10 13:35:27 EDT 2014


Hello,

I'm working on UBIFS ( linux 3.3, omap138 ). I need some help with a problem on a custom board (omapl138).
I have a software that runs in background and writes data in a UBIFS volume. I can not control when the power cut happens.
Sometimes, when booting my board, I got this "common" error:

UBI: background thread "ubi_bgt0d" started, PID 391
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "log"
UBIFS: file system size:   3174400 bytes (3100 KiB, 3 MiB, 25 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: none
UBIFS: reserved for root:  149934 bytes (146 KiB)
UBIFS: recovery needed
UBIFS error (pid 395): ubifs_scan: corrupt empty space at LEB 1534:125170
UBIFS error (pid 395): ubifs_scanned_corruption: corruption at LEB 1534:125170
00000000: ffffff7f ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff  ................................
[..]
UBIFS error (pid 395): ubifs_scan: LEB 1534 scanning failed

My NAND volume could not be mounted. My problem is that I want to have an access to the files stored in this UBIFS volume.

So I had some questions : 
- What are the risk of commenting out the 'goto corrupted' in the fonction ubifs_scan? (in order to mount my partition and have an access to my files)
- Is this the "unstable bits issue"? (http://www.linux-mtd.infradead.org/doc/ubifs.html#L_unstable_bits) 
- What could be a proper solution to get my files?
- Is there a solution using U-Boot?

Thanks for your help.

Regards,

Frederic

#
" Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles, être soumis aux règlementations relatives au contrôle des exportations ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Toute exportation ou réexportation non autorisée est interdite Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés."
******
" This e-mail and any attached documents may contain confidential or proprietary information and may be subject to export control laws and regulations. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. Unauthorized export or re-export is prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system."
#




More information about the linux-mtd mailing list