刷完DD-WRT 的固件后, Jffs只显示有18M附近的大小, 本来这个路由器有128M ROM的, 上网看了一下资料使用以下命令就解决了.
root@DD-WRT:~# mkfs.jffs2 -o /dev/mtdblock/3 -n -b -e 0x20000 ## no output ## root@DD-WRT:~# mount -t jffs2 /dev/mtdblock/3 /jffs ## no output ## root@DD-WRT:~# mount rootfs on / type rootfs (rw) /dev/root on / type squashfs (ro,relatime) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) debugfs on /sys/kernel/debug type debugfs (rw,relatime) ramfs on /tmp type ramfs (rw,relatime) none on /dev type tmpfs (rw,relatime,size=512k) devpts on /dev/pts type devpts (rw,relatime,mode=600) devpts on /proc/bus/usb type usbfs (rw,relatime) /dev/mtdblock/3 on /jffs type jffs2 (rw,relatime)
更改后成功显示如下100多M的大小.
Administration -> JFFS2 Support = Total / Free Size 102.75 MB / 100.25 MB
参考资料: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=171458&highlight=wndr4300