help request, jffs2 fs files get lost

Ricard Wanderlof ricard.wanderlof at axis.com
Mon May 2 04:58:10 EDT 2011


On Mon, 2 May 2011, angelo wrote:

> If this is in fact what you're doing, you're overwriting your jffs2.img file with the all-ff's contents of the newly erased /dev/mtd2. Swap the two arguments instead.
>
> sorry, was just a bad had-written text,
> i generally do "cp jffs2.img /dev/mtd2", and after mounting mtdblock2 i see correctly the root tree.
>
> I did some other tests:
> if i mount the new created jffs2 and unmount it, nothing is lost.
> If i mount it, open a file, append some text, close it and unmount, then at the next mount everything is disapperaed (checking mtd2, all is set to 0xff).
>
> Saving modified files i notice a warning:
> Writing files is also notice some MTD debug trace, maybe an error:
> Node totlen on flash (0xffffffff) != totlen from node ref (0x00000074)

Out of curiosity, what exactly is the type of flash you are using?

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list