help request, jffs2 fs files get lost
Ricard Wanderlof
ricard.wanderlof at axis.com
Mon May 2 02:55:10 EDT 2011
On Sun, 1 May 2011, Angelo Dureghello wrote:
> So from uClinux, i try to prepare the jffs2 fs:
>
> # eraseall /dev/mtd2
> erased 1024 Kibyte @ 0 -- 100% complete.
>
> cat /dev/mtd2 i see the flash has been cleared
>
> then i create a folder "backup" in /var with some files and try to crete the jffs2 fs:
>
> mkfs.jffs2 -d backup -o jffs2.img
>
> cp /deV/mtd2 jffs2.img
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.
/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