In setting up my TP-Link TL-WR1043ND router with OpenWRT 10.03 I managed to lock myself out.
I found that whilst booting the unit I was able to access the fail-safe (recovery mode) by inserting a paper clip in to the unit when a recieved a ping on 192.168.1.1.
I could now telnet in the to unit but only gain access to files on a read-only basis and therefore not correct the error. I found a post regarding mounting the jffs2 partition and overlay the files to there usual location. A slight amendment to the command
/sbin/mount_root is required as explained here: