Hi, after update to 3.6 my /opt filesystem is corrupt
root@BS:~ #ls /opt/ ls: /opt/fritzboxcallmon.addr: Input/output error mini_fo nfs root@BS:~ #rm /opt/fritzboxcallmon.addr rm: cannot stat '/opt/fritzboxcallmon.addr': Input/output error root@BS:/opt #
How can I format /opt ? There is no mkfs command.
Greetz Thomas
Try following steps to solve the problem:
#Mount mini_fo storage in RAM at startup nvram set mini_fo=ram && nvram commit && nvram reboot
#delete jffs-Partition, repeat if it doesnt work, then reboot mtd_erase /dev/mtd/3 && nvram reboot
#Mount mini_fo storage in jffs again at startup nvram set mini_fo=jffs && nvram commit && nvram reboot
#Tip: set device mounting to old behaviour like in versions before 0.3.6 nvram set mini_fo=off && nvram commit && nvram reboot
Step 2 does not work
root@BS:~ #mtd_erase /dev/mtd/3 && nvram reboot error:: Permission denied Could not open mtd device: /dev/mtd/3 root@BS:~ #
Content of /dev/mtd:
root@BS:~ #ls -l /dev/mtd crw-rw-rw- 1 root root 90, 0 Nov 4 13:03 0 cr-r-r- 1 root root 90, 0 Nov 4 13:03 0ro crw-rw-rw- 1 root root 90, 1 Nov 4 13:03 1 cr-r-r- 1 root root 90, 1 Nov 4 13:03 1ro crw-rw-rw- 1 root root 90, 2 Nov 4 13:03 2 cr-r-r- 1 root root 90, 2 Nov 4 13:03 2ro crw-rw-rw- 1 root root 90, 3 Nov 4 13:03 3 crw-rw-rw- 1 root root 90, 4 Nov 4 13:03 4 cr-r-r- 1 root root 90, 4 Nov 4 13:03 4ro crw-rw-rw- 1 root root 90, 5 Nov 4 13:03 5 cr-r-r- 1 root root 90, 5 Nov 4 13:03 5ro root@BS:~ #
mini_fo is set to ram
root@BS:~ #nvram get mini_fo ram root@BS:~ #
I can read from /dev/mtd/3 with e.g. less
I found it myself.
The minor numbers of the /dev/mtd devices are wrong.
Replace step 2 with the following:
mknod /var/mtd3rw c 90 6 && mtd_erase /var/mtd3rw && nvram reboot
Thanks to coolman1982 for help and the great bitswitcher firmware!
Log in to post a comment.
Hi,
after update to 3.6 my /opt filesystem is corrupt
root@BS:~ #ls /opt/
ls: /opt/fritzboxcallmon.addr: Input/output error
mini_fo nfs
root@BS:~ #rm /opt/fritzboxcallmon.addr
rm: cannot stat '/opt/fritzboxcallmon.addr': Input/output error
root@BS:/opt #
How can I format /opt ? There is no mkfs command.
Greetz
Thomas
Try following steps to solve the problem:
#Mount mini_fo storage in RAM at startup
nvram set mini_fo=ram && nvram commit && nvram reboot
#delete jffs-Partition, repeat if it doesnt work, then reboot
mtd_erase /dev/mtd/3 && nvram reboot
#Mount mini_fo storage in jffs again at startup
nvram set mini_fo=jffs && nvram commit && nvram reboot
#Tip: set device mounting to old behaviour like in versions before 0.3.6
nvram set mini_fo=off && nvram commit && nvram reboot
Step 2 does not work
root@BS:~ #mtd_erase /dev/mtd/3 && nvram reboot
error:: Permission denied
Could not open mtd device: /dev/mtd/3
root@BS:~ #
Content of /dev/mtd:
root@BS:~ #ls -l /dev/mtd
crw-rw-rw- 1 root root 90, 0 Nov 4 13:03 0
cr-r-r- 1 root root 90, 0 Nov 4 13:03 0ro
crw-rw-rw- 1 root root 90, 1 Nov 4 13:03 1
cr-r-r- 1 root root 90, 1 Nov 4 13:03 1ro
crw-rw-rw- 1 root root 90, 2 Nov 4 13:03 2
cr-r-r- 1 root root 90, 2 Nov 4 13:03 2ro
crw-rw-rw- 1 root root 90, 3 Nov 4 13:03 3
crw-rw-rw- 1 root root 90, 4 Nov 4 13:03 4
cr-r-r- 1 root root 90, 4 Nov 4 13:03 4ro
crw-rw-rw- 1 root root 90, 5 Nov 4 13:03 5
cr-r-r- 1 root root 90, 5 Nov 4 13:03 5ro
root@BS:~ #
mini_fo is set to ram
root@BS:~ #nvram get mini_fo
ram
root@BS:~ #
I can read from /dev/mtd/3 with e.g. less
I found it myself.
The minor numbers of the /dev/mtd devices are wrong.
Replace step 2 with the following:
mknod /var/mtd3rw c 90 6 && mtd_erase /var/mtd3rw && nvram reboot
Thanks to coolman1982 for help and the great bitswitcher firmware!