public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Loosed files after umount/mount
@ 2012-06-18 20:29 Andreas Friesen
  2012-06-27 11:00 ` Artem Bityutskiy
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Friesen @ 2012-06-18 20:29 UTC (permalink / raw)
  To: linux-mtd

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@server:/tmp/settings/*.xml /storage
$ sync
$ umount /storage
$ mount mtd:storage /storage -t jffs2
$ ls /storage
... empty ?????

Any Hints?

-- Andreas Friesen


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


root@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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-02 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-18 20:29 Loosed files after umount/mount Andreas Friesen
2012-06-27 11:00 ` Artem Bityutskiy
2012-06-29  9:03   ` Andreas Friesen
2012-06-29 14:20     ` Artem Bityutskiy
2012-07-02 10:05       ` Andreas Friesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox