Grow UBI device?

Matthieu CASTET matthieu.castet at parrot.com
Wed Oct 9 00:28:55 PDT 2013


Le Tue, 8 Oct 2013 20:28:46 +0100,
Wolfgang Denk <wd at denx.de> a écrit :

> so I can keep an existing MTD partition with a JFFS2
> file system. After copying the data from JFFS2 to a UBIFS volume, I
> would like to free and reuse the space of this JFFS2 partition.
> 
> Is there a way to "grow" the existing UBI device so that it now also
> covers the rest of the NAND chip?  Or is my only option to create a
> second UBI device?
I don't remeber exactly but I think UBI (without fastmap) doesn't know
the size of the mtd partition.
The scan scan what you give to it.

A way to "grow an UBI device could be to append (before or after)
flash formated with ubi format (with --no-volume-table and the correct
--image-seq= and same other param).
If you give erased flash may be the linux driver will format it.



Matthieu



More information about the linux-mtd mailing list