LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-28-2012, 11:12 AM   #1
znatok
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
UBIFS partition on SheevaPlug


Hi,
Although I'm running SheevaPlug my question is general-linux one.
I have a SheevaPlug with u-boot and UBIFS root file system on NAND flash. Form time to time boot fails (usually after power shorts) with final message:

Code:
UBIFS: recovery needed
Error reading superblock on volume 'ubi:rootfs'!
UBIFS not mounted, use ubifs mount to mount volume first!
UBIFS not mounted, use ubifs mount to mount volume first!
Wrong Image Format for bootm command
ERROR: can't get kernel image!
To recover from this error I boot with USB stick and mount the same UBIFS partition:
Code:
root@debian:~# mount -t ubifs ubi0:rootfs /mnt
[  306.205029] UBIFS: recovery needed
[  309.341987] UBIFS: recovery completed
[  309.345705] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[  309.351738] UBIFS: file system size:   515192832 bytes (503118 KiB, 491 MiB, 3993 LEBs)
[  309.359789] UBIFS: journal size:       25804800 bytes (25200 KiB, 24 MiB, 200 LEBs)
[  309.367495] UBIFS: media format:       w4/r0 (latest is w4/r0)
[  309.373352] UBIFS: default compressor: lzo
[  309.377479] UBIFS: reserved for root:  4952683 bytes (4836 KiB)
Partition gets recovered and I can now boot from NAND.

I'm currently looking for possible options to fix the situation:

1. Make u-boot to recover UBIFS partition. I found out that u-boot treats partition as read only and thus do not recover it. (Not sure if it can recover at all)

2. Create separate read-only boot partition and separate boot and all other file system. My knowledge so far is not enough to accomplish this task. If someone could help I would appreciate it.

3. Pass to another more stable file system like ext3 for example. Not sure although it will really improve the situation.

4. Other suggestions???

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installing slackware on sheevaplug pissaro Slackware 6 04-06-2011 05:43 AM
Shifting from Jffs2 to UBIFS sunr2007 Linux - Kernel 3 03-17-2011 08:40 AM
rootfs dont work with ubifs toredo Linux - Software 0 01-22-2010 03:37 AM
Is it possible to make ubifs block size not power of 2 ubifsdev Linux - Kernel 0 06-23-2009 05:07 PM
LXer: SheevaPlug: the NSLU2 killer LXer Syndicated Linux News 0 03-15-2009 06:30 PM


All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration