huzhibin
2006-10-10 08:59:47 UTC
Hi:
all
i have a strange problem with the jffs2 system:
when i use df to check the space:
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock2 4032 3972 60 99% /
but it complain that no space left on device when i try to write on it:
# echo "hi" >hi.txt
cannot create hi.txt: No space left on device
there is more strange that the available space is not certain when it start complaining, sometime is 98, or values less than 98.
my system kernel is linux 2.4.17, filesystem is jffs2, run with 8M Flash.
following is some system infomation:
# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "Boot loader"
mtd1: 00100000 00010000 "Kernel"
mtd2: 003f0000 00010000 "Root File System"
mtd3: 002d0000 00010000 "Application File System"
mtd4: 00002000 00002000 "Partition Table"
mtd5: 00002000 00002000 "Factory default"
mtd6: 00008000 00002000 "Runtime NVRAM-T"
mtd7: 00008000
# mount
/dev/mtdblock2 on / type jffs2 (rw)
/dev/mtdblock3 on /mnt/mtd3 type jffs2 (rw)
proc on /proc type proc (rw)
null on /var type ramfs (rw)
# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mtdblock2 / jffs2 defaults 0 0
/dev/mtdblock3 /mnt/mtd3 jffs2 defaults 0 0
proc /proc proc defaults 0 0
null /var ramfs defaults 0 0
the parameters creating jffs2:
mkfs.jffs2 \
--eraseblock=0x00010000 \
--cleanmarker=12 \
--big-endian \
-r mtd3 -o mtd3.img
anyone have any ideas?
thanks a lot.
Best Regards
***@routerd.com
2006-10-10
To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to ***@axis.com
all
i have a strange problem with the jffs2 system:
when i use df to check the space:
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock2 4032 3972 60 99% /
but it complain that no space left on device when i try to write on it:
# echo "hi" >hi.txt
cannot create hi.txt: No space left on device
there is more strange that the available space is not certain when it start complaining, sometime is 98, or values less than 98.
my system kernel is linux 2.4.17, filesystem is jffs2, run with 8M Flash.
following is some system infomation:
# cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "Boot loader"
mtd1: 00100000 00010000 "Kernel"
mtd2: 003f0000 00010000 "Root File System"
mtd3: 002d0000 00010000 "Application File System"
mtd4: 00002000 00002000 "Partition Table"
mtd5: 00002000 00002000 "Factory default"
mtd6: 00008000 00002000 "Runtime NVRAM-T"
mtd7: 00008000
# mount
/dev/mtdblock2 on / type jffs2 (rw)
/dev/mtdblock3 on /mnt/mtd3 type jffs2 (rw)
proc on /proc type proc (rw)
null on /var type ramfs (rw)
# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mtdblock2 / jffs2 defaults 0 0
/dev/mtdblock3 /mnt/mtd3 jffs2 defaults 0 0
proc /proc proc defaults 0 0
null /var ramfs defaults 0 0
the parameters creating jffs2:
mkfs.jffs2 \
--eraseblock=0x00010000 \
--cleanmarker=12 \
--big-endian \
-r mtd3 -o mtd3.img
anyone have any ideas?
thanks a lot.
Best Regards
***@routerd.com
2006-10-10
To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to ***@axis.com