I'm register, your web mail-list.. Dear sir. please help me. about yaffs2 ver 1.95 I was filesystem porting about yaffs2 ver 1.95 and i did filesystem mounting and file copy , unmount .......try to re-mounting in yaffs2 filesystem. i found wrong message. (Partially written block 2 detected) i don't know message. you'll know it. you'll help me. ------------------------------------------------------- S/W SPEC and H/W SPEC ------------------------------------------------------- 1. Kernel version 2.6.18 2. yaffs2 filesystem version ver 1.95 3. nand flash memory .. samsung 512Mbyte ------------------------------------------------------- Job step ------------------------------------------------------- 1 step. eraseall /dev/mtd3 2 step. mount -t yaffs2 /dev/mtdblock3 /mnt/mtd3 3 step. cp test.txt /mnt/mtd3 4 step. umount /mnt/mtd3 5 step. mount -t yaffs2 /dev/mtdblock3 /mnt/mtd3 6 step. ls /mnt/mtd3 comfirm to saving test.txt file. After 5 step, i found wrong message. and when i did remounting /mnt/mtd3 in yaffs2 filesystem. I was confirm to no file (test.txt) in /mnt/mtd3 ,befor re-mounting....did saving test.txt file in /mnt/mtd3. but i could't found test.txt. what is problem? why do making wrong message? it is.. about what is problem solve method? you'll help me. as soon as, please....send e-mail to me about answer wrong message. i have e-mail..... E-MAIL : wikim@ebcard.co.kr... thank you.... have a good time... every day..... [Debugging message] A. STEP 1~ 3 : erase,mounting,copy.. of yaffs2 filesystem root@(none):~# eraseall /mnt/mtd3/ eraseall: /mnt/mtd3/: Is a directory root@(none):~# eraseall /dev/mtd3 Erasing 128 Kibyte @ 17fe0000 -- 99 % complete. root@(none):~# mount -t yaffs2 /dev/mtdblock3 /mnt/mtd3/ do_mount(1279) dev_name=/dev/mtdblock3,dir_name=/mnt/mtd3/,type_page=yaffs2 yaffs: dev is 32505859 name is "mtdblock3" yaffs: passed flags "" yaffs: Attempting MTD mount on 31.3, "mtdblock3" yaffs_read_super: isCheckpointed 0 root@(none):~# root@(none):~# cat /proc/yaffs YAFFS built:Nov 18 2009 18:32:16 $Id: yaffs_fs.c,v 1.87 2009/11/11 02:11:13 charles Exp $ $Id: yaffs_guts.c,v 1.95 2009/11/11 01:40:41 charles Exp $ Device 0 "NAND Flash #1 system partition 0" startBlock......... 0 endBlock........... 3071 totalBytesPerChunk. 2048 nDataBytesPerChunk. 2048 chunkGroupBits..... 0 chunkGroupSize..... 1 nErasedBlocks...... 3072 nReservedBlocks.... 5 blocksInCheckpoint. 0 nTnodesCreated..... 0 nFreeTnodes........ 0 nObjectsCreated.... 200 nFreeObjects....... 96 nFreeChunks........ 196608 nPageWrites........ 0 nPageReads......... 0 nBlockErasures..... 0 nGCCopies.......... 0 garbageCollections. 0 passiveGCs......... 0 nRetriedWrites..... 0 nShortOpCaches..... 10 nRetireBlocks...... 0 eccFixed........... 0 eccUnfixed......... 0 tagsEccFixed....... 0 tagsEccUnfixed..... 0 cacheHits.......... 0 nDeletedFiles...... 0 nUnlinkedFiles..... 0 nBackgroudDeletions 0 useNANDECC......... 1 noTagsECC.......... 0 isYaffs2........... 1 inbandTags......... 0 emptyLostAndFound.. 0 disableLazyLoad.... 0 root@(none):/mnt# cp test.txt /mnt/mtd3/ root@(none):/mnt# cd /mnt/mtd3/ root@(none):/mnt/mtd3# ls lost+found test.txt root@(none):/mnt/mtd3# root@(none):/mnt/mtd3# sync save exit: isCheckpointed 1 save exit: isCheckpointed 1 save exit: isCheckpointed 1 root@(none):/mnt/mtd3# root@(none):/mnt/mtd3# cat /proc/yaffs YAFFS built:Nov 18 2009 18:32:16 $Id: yaffs_fs.c,v 1.87 2009/11/11 02:11:13 charles Exp $ $Id: yaffs_guts.c,v 1.95 2009/11/11 01:40:41 charles Exp $ Device 0 "NAND Flash #1 system partition 0" startBlock......... 0 endBlock........... 3071 totalBytesPerChunk. 2048 nDataBytesPerChunk. 2048 chunkGroupBits..... 0 chunkGroupSize..... 1 nErasedBlocks...... 3070 nReservedBlocks.... 5 blocksInCheckpoint. 1 nTnodesCreated..... 100 nFreeTnodes........ 99 nObjectsCreated.... 200 nFreeObjects....... 95 nFreeChunks........ 196541 nPageWrites........ 29 nPageReads......... 3 nBlockErasures..... 0 nGCCopies.......... 0 garbageCollections. 0 passiveGCs......... 0 nRetriedWrites..... 0 nShortOpCaches..... 10 nRetireBlocks...... 0 eccFixed........... 0 eccUnfixed......... 0 tagsEccFixed....... 0 tagsEccUnfixed..... 0 cacheHits.......... 0 nDeletedFiles...... 0 nUnlinkedFiles..... 0 nBackgroudDeletions 0 useNANDECC......... 1 noTagsECC.......... 0 isYaffs2........... 1 inbandTags......... 0 emptyLostAndFound.. 0 disableLazyLoad.... 0 B. STEP 4 : unmounting of yaffs2 filesystem root@(none):/mnt/mtd3# cd .. root@(none):/mnt# umount /mnt/mtd3/ save exit: isCheckpointed 1 C. STEP 5 : mounting of yaffs2 filesystem [ found wrond message ] root@(none):/mnt# mount -t yaffs2 /dev/mtdblock3 /mnt/mtd3/ do_mount(1279) dev_name=/dev/mtdblock3,dir_name=/mnt/mtd3/,type_page=yaffs2 yaffs: dev is 32505859 name is "mtdblock3" yaffs: passed flags "" yaffs: Attempting MTD mount on 31.3, "mtdblock3" Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected Partially written block 2 detected yaffs_read_super: isCheckpointed 0 root@(none):/mnt# D. STEP 6 : confirm to saving test.txt file of yaffs2 filesystem [ I can't find it in /mnt/mtd3 what was saving test.txt file ] yaffs2 file system lost test.txt. why do lost file? please ...I wish.. you tell me about problem solve answer. root@(none):/mnt# cd /mnt/mtd3/ root@(none):/mnt/mtd3# ls lost+found root@(none):/mnt/mtd3# root@(none):/mnt/mtd3# cat /proc/yaffs YAFFS built:Nov 18 2009 18:32:16 $Id: yaffs_fs.c,v 1.87 2009/11/11 02:11:13 charles Exp $ $Id: yaffs_guts.c,v 1.95 2009/11/11 01:40:41 charles Exp $ Device 4 "NAND Flash #1 system partition 0" startBlock......... 0 endBlock........... 3071 totalBytesPerChunk. 2048 nDataBytesPerChunk. 2048 chunkGroupBits..... 0 chunkGroupSize..... 1 nErasedBlocks...... 3071 nReservedBlocks.... 5 blocksInCheckpoint. 0 nTnodesCreated..... 0 nFreeTnodes........ 0 nObjectsCreated.... 200 nFreeObjects....... 96 nFreeChunks........ 196608 nPageWrites........ 0 nPageReads......... 0 nBlockErasures..... 0 nGCCopies.......... 0 garbageCollections. 0 passiveGCs......... 0 nRetriedWrites..... 0 nShortOpCaches..... 10 nRetireBlocks...... 0 eccFixed........... 0 eccUnfixed......... 0 tagsEccFixed....... 0 tagsEccUnfixed..... 0 cacheHits.......... 0 nDeletedFiles...... 0 nUnlinkedFiles..... 0 nBackgroudDeletions 0 useNANDECC......... 1 noTagsECC.......... 0 isYaffs2........... 1 inbandTags......... 0 emptyLostAndFound.. 0 disableLazyLoad.... 0 root@(none):/mnt/mtd3#