Loosed files after umount/mount

Andreas Friesen ndrs.frsn at googlemail.com
Mon Jun 18 16:29:03 EDT 2012


Hello,

I'm experiencing a strange problem with JFFS2 using Linux
3.1.5, 3.4 from kernel.org.git on PowerPC. After unmounting and
remounting the filesystem,
directory is empty.

$ flash_erase /dev/mtd2
$ reboot
$ mount mtd:storage /storage -t jffs2
$ scp root at server:/tmp/settings/*.xml /storage
$ sync
$ umount /storage
$ mount mtd:storage /storage -t jffs2
$ ls /storage
... empty ?????

Any Hints?

-- Andreas Friesen


root at hbm-000c4e:/$lsmod
Module                  Size  Used by
jffs2                  85057  1
lzo_decompress          5219  1 jffs2
lzo_compress            5143  1 jffs2


root at hbm-000c4e:/$uname -a
Linux hbm-000c4e 3.4.0+ #10 PREEMPT Mon Jun 18 20:07:04 CEST 2012 ppc
GNU/Linux

$ cat build/linux/.config | grep JFFS2
CONFIG_JFFS2_FS=m
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_SUMMARY=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_LZO=y
CONFIG_JFFS2_RTIME=y
CONFIG_JFFS2_CMODE_PRIORITY=y

$ cat build/linux/.config | grep MTD
CONFIG_MTD=y
CONFIG_MTD_OF_PARTS=y
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_CFI=y
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
CONFIG_MTD_CFI_INTELEXT=y
CONFIG_MTD_CFI_UTIL=y
CONFIG_MTD_PHYSMAP_OF=y
CONFIG_OF_MTD=y


dmesg  output:
[    0.476401] ff000000.flash: Found 1 x16 devices at 0x0 in 8-bit
bank. Manufacturer ID 0x000089 Chip ID 0x000018
[    0.486776] Intel/Sharp Extended Query Table at 0x0031
[    0.492098] Intel/Sharp Extended Query Table at 0x0031
[    0.497412] Using buffer write method
[    0.501208] cfi_cmdset_0001: Erase suspend on write enabled
[    0.506957] erase region 0: offset=0x0,size=0x20000,blocks=128
[    0.508533] 8 ofpart partitions found on MTD device ff000000.flash
[    0.514996] Creating 8 MTD partitions on "ff000000.flash":
[    0.520718] 0x000000000000-0x000000200000 : "kernel"
[    0.527869] 0x000000200000-0x000000600000 : "rootfs"
[    0.535008] 0x000000600000-0x000000c00000 : "storage"
[    0.542277] 0x000000c00000-0x000000f00000 : "parameter"
[    0.549535] 0x000000f00000-0x000000f40000 : "uboot"
[    0.556607] 0x000000f40000-0x000000f60000 : "ubootenv"
..
[    8.914470] jffs2: version 2.2. (SUMMARY)  © 2001-2006 Red Hat, Inc.



More information about the linux-mtd mailing list