WGR614 JFFS2 Write problem

5 posts / 0 new
Last post
Fmay's picture
WGR614 JFFS2 Write problem

Hello people.

I am trying to create one file into the jffs2 partition without success. Follow the error:


root@(noname):/# mount /dev/mtdblock/4 /jffs -t jffs2

root@(noname):/# cd /jffs

root@(noname):/jffs# ls


root@(noname):/jffs# mkdir k

Write of 68 bytes at 0x00002d90 failed. returned 0, retlen 136
mkdir: Cannot create directory `k': Input/output error

root@(noname):/jffs# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.6M      2.6M         0 100% /
tmpfs                     7.0M     20.0k      7.0M   0% /tmp
/dev/mtdblock/4         448.0k    324.0k    124.0k  72% /jffs


Note that the partition is empty and it is showing 72% used.


Somebody know what is happening? and what can I do?

Thanks for any help.

Eko's picture
Seems that jffs has problems

Seems that jffs has problems with serial flash. And if you could write something to jffs, router will not boot on next boot, because checksum (done by cfe) will fail. (At least with cfe 1.5)

I don't know if there will be a solution to this soon. If you find it, please let me know.


Nachi's picture
Please check the post at

Please check the post at


for a fix in the sflash_mtd_write() in OpenWRT.

The same fix also works on dd-wrt.

In dd-wrt you may enable to the JFFS2 without hitting the checksum issue. Checksum is computed only over the trx length and JFFS2 lies outside the trx boundary.


Fmay's picture
Nachi, thanks a lot for the

Nachi, thanks a lot for the hint.

Have you some tips to fix the empty data partition that has incorrect free space as follow:

Filesystem Size Used Available Use% Mounted on
/dev/root --------------- 2.6M ---- 2.6M --- 0 --- 100% /
tmpfs ------------------- 7.0M --- 20.0k --- 7.0M -- 0% /tmp
/dev/mtdblock/4 --------- 448.0k - 324.0k -- 124.0k -72% /jffs

Thanks again.

Nachi's picture
trying to figure what is

trying to figure what is eating up the 324k. The same memeory is also eaten up in OpenWRT - but since the partition size is much higher (1.7M) so this is only showing about 20%.