Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Corrupt empty space
@ 2014-03-10 17:35 HOUR Fréderic
  2014-03-11  5:31 ` Kent Li
  0 siblings, 1 reply; 11+ messages in thread
From: HOUR Fréderic @ 2014-03-10 17:35 UTC (permalink / raw)
  To: linux-mtd

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."
#

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-03-21  8:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10 17:35 Corrupt empty space HOUR Fréderic
2014-03-11  5:31 ` Kent Li
2014-03-11  7:00   ` Gupta, Pekon
2014-03-11  7:46   ` Artem Bityutskiy
2014-03-11  8:21     ` Brian Norris
2014-03-21  7:18     ` Gupta, Pekon
2014-03-21  7:31       ` Artem Bityutskiy
2014-03-21  7:43         ` Ricard Wanderlof
2014-03-21  7:53           ` Artem Bityutskiy
2014-03-21  7:50         ` Gupta, Pekon
2014-03-21  8:13           ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox