mount ubi volume fails: No such device

Artem Bityutskiy dedekind1 at
Fri Feb 11 09:32:51 EST 2011

On Wed, 2011-02-09 at 04:34 -0800, Lars Michael wrote:
> I formatted and wrote the image again. ubiattach _sometimes_ completes
> without the error code -22. In this case the mount went ok. But mount
> sometimes fails completely (structure needs cleaning), other times
> errors are reported but successfully recovered. So it seems to work,
> but no in
> a reliable way. Any suggestions on how to improve it? My kernel is
> 2.6.29 so perhaps some patches are needed?

You really need to make the subpage test work. You can ask UBI to not
use sub-pages using the 'vid_hdr_offs' parameter of the 'ubi.ko' module.
I cannot tell you the exact value because you did not provide enough
information about your flash. Ideally, reporters should read these

Best Regards,
Artem Bityutskiy (Артём Битюцкий)

More information about the linux-mtd mailing list