Yesterday I found out I forgot the password for my wrt54g running the latest white russian. Fine, I thought. I then followed instructions in http://wiki.openwrt.org/OpenWrtDocs/Har … ys/WRT54GL and boot it up in the failsafe mode, typed mount_root so I could do changes, and then tried to change the password:
root@(none):/jffs$ df -h
Filesystem Size Used Available Use% Mounted on
none 7.0M 4.0k 7.0M 0% /tmp
/dev/mtdblock/4 1.3M 1.3M 60.0k 96% /jffs
/jffs 1.9M 1.9M 0 100% /
root@(none):/jffs$ passwd
Changing password for root
New password:
Retype password:
passwd: cannot create '/etc/passwd+': No space left on device
passwd: cannot update password file /etc/passwd
root@(none):/jffs$
Why would I not have free space in /jffs? How can I clean it? I even tried moving /etc/passwd-, which seems to be the original passwd file without a root passwd, to /etc/passwd and it still barked it did not have enough free space. vi fared no better. What can I try next short of wipe and reinstall?
