> > On Thu, Nov 08, 2012 at 08:20:22AM +0200, Dimax wrote: > > [...] > > UBIFS: recovery needed > > Error reading superblock on volume 'ubi:rootfs'! > I encountered the same problem when running a Seagate DockStar from NAND > flash. > > 2. Fixing > > ====== > > 2.1. My first direction is to update u-boot with latest patches. There > > is a chance it will let u-boot be able to mount broken partition. > It doesn't look like the current u-boot supports ubifs recovery -- it > still only mounts ubifs filesystems in read-only mode. (Unless you're > referring to patches not yet in the DENX git tree.) >
I have a thread on DENX u-boot where people are telling me that it should be able to mount rootfs and later let linux to fix it. I'm going to give a try to latest u-boot soon. > An alternative to a read-only rootfs is to use a recovery system, > either in NAND or on a USB stick. You set up your u-boot boot > variable to fall back to this system if booting your primary one > fails. The recovery partition contains a minimal Linux system that > simply mounts the ubifs partition (which it will repair if necessary) > and then reboots. > (I tried to get this minimal system to chain-load the main linux > system using kexec, but never got it to work properly.) In my case I prefer to stay without external memory devices. In any case would be interesting to see how have you configured u-boot to fall back? Can you post your u-boot settings please.

