Hi all, I have a samsung nand device K9F1208UOM which is being mounted perfectly and shows me erasedblocks when i check the proc entry. But when i try to create/copy etc a file on to the partition i run out of memory . Below is the log and my nand.c file which i believe tries to create the directory but ends up writing to all blocks cause after the mkdir command the proc entry shows me only 5 eraseblocks . [root@manav /]#mount -t yaffs /dev/mtdblock3 /mnt/yaffs/ yaffs: dev is 7939 name is "unknown-char(31,3)" yaffs: dev is 7939 name is "unknown-char(31,3)" [root@manav /]#df Filesystem 1k-blocks Used Available Use% Mounted on rootfs 31488 9312 22176 30% / /dev/mtdblock2 31488 9312 22176 30% / /dev/mtdblock3 16368 308 16060 2% /mnt/yaffs [root@manav /]#cat /proc/yaffs YAFFS built:Nov 4 2004 14:36:33 $Id: yaffs_fs.c,v 1.1.6.2 2003/11/08 10:33:14 bushi Exp $ $Id: yaffs_guts.c,v 1.1.6.4 2004/03/29 12:09:30 bushi Exp $ Device yaffs startBlock......... 1 endBlock........... 1023 chunkGroupBits..... 0 chunkGroupSize..... 1 nErasedBlocks...... 1003 nTnodesCreated..... 100 nFreeTnodes........ 87 nObjectsCreated.... 100 nFreeObjects....... 90 nFreeChunks........ 32316 nPageWrites........ 0 nPageReads......... 0 nBlockErasures..... 0 nGCCopies.......... 0 garbageCollections. 0 passiveGCs......... 0 nRetriedWrites..... 0 nRetireBlocks...... 0 eccFixed........... 0 eccUnfixed......... 6 tagsEccFixed....... 0 tagsEccUnfixed..... 1018 cacheHits.......... 0 nDeletedFiles...... 0 nUnlinkedFiles..... 0 nBackgroudDeletions 0 useNANDECC......... 0 cd /mnt/yaffs/ [root@manav yaffs]#ls lost+found [root@manav yaffs]#mkdir test Writing data without ECC to NAND-FLASH is not recommended ........ : : Writing data without ECC to NAND-FLASH is not recommended mkdir: Cannot create directory `test': Cannot allocate memory [root@manav yaffs]#cat /proc/yaffs YAFFS built:Nov 4 2004 14:36:33 $Id: yaffs_fs.c,v 1.1.6.2 2003/11/08 10:33:14 bushi Exp $ $Id: yaffs_guts.c,v 1.1.6.4 2004/03/29 12:09:30 bushi Exp $ Device yaffs startBlock......... 1 endBlock........... 1023 chunkGroupBits..... 0 chunkGroupSize..... 1 nErasedBlocks...... 5 nTnodesCreated..... 100 nFreeTnodes........ 87 nObjectsCreated.... 100 nFreeObjects....... 90 nFreeChunks........ 32316 nPageWrites........ 65586 nPageReads......... 31655 nBlockErasures..... 0 nGCCopies.......... 0 garbageCollections. 0 passiveGCs......... 0 nRetriedWrites..... 31934 nRetireBlocks...... 998 eccFixed........... 0 eccUnfixed......... 6 tagsEccFixed....... 0 tagsEccUnfixed..... 1018 cacheHits.......... 0 nDeletedFiles...... 0 nUnlinkedFiles..... 0 nBackgroudDeletions 0 useNANDECC......... 0 I have disabled both printk (KERN_WARNING "Writing data without ECC to NAND-FLASH is not recommended\n"); and printk (KERN_WARNING "Reading data from NAND FLASH without ECC is not recommended\n"); in nand.c but to no avail . My kernel is 2.4.19 and i have tried enabling both -DCONFIG_YAFFS_USE_NANDECC and DCONFIG_YAFFS_USE_OLD_MTD in all combo's. Any suggestions would be great .