I have an D-Link DIR-505 that is very practical because it is very small. The problem is the size of the flash (only 4 MB).
So I'm using it with a small pen drive, but with 4 GB.
The first thing I do after the basic configuration is install the USB packages, install, format the USB flash drive, copy the /overlay to it and change fstab.
So now, when rebooting I have a big /overlay to install more packages.
The problem is when making a wrong configuration and the router is no more accessible (ports open but no answer; only pinging). In this case it is needed to boot in failsafe mode.
The question is: how to load the USB flash drive manualy the have access to the valid /overlay?
Right after having access to console in failsafe mode, I execute mount_root to have access to /overlay. But this is not "my" USB overlay but the "DIR-505" overlay. Besides that, there is no sda device in /dev. How to mount them manualy?
The "block info" command shows only 2 /dev/mtdblock7 and /dev/mtdblock8 (squashfs and jffs2), no /dev/sda1.
I tried a lot without success. Can anyone help me?
You are right. I don't know where I found this information. Probably on TOH on Openwrt because I only look there for this type of information.
Now I looked there again and it shows 8 MB. Can be that it was corrected.
Thanks for your comment.
Hi tmomas and jeff.
Both your comments were very important.
-tmomas: I convinced you wrong about TOH. TOH is right. DIR-505 has 8 MB flash size.
-jeff: You showed me an information that was new for me and so I'm convinced that DIR-505 has 8 MB flash size.
Flash memory is mtd formated and holds other partitions besides /overlay.
The command cat /proc/mtd shows the partioning. On DIR-505 it is:
You're certainly welcome to port it yourself as I don't see it on master on ath79.
There isn't a lot of appetite to spend time on devices nearly a decade old that have little hope of running what most people consider a minimal OpenWrt install (both flash and RAM both). Suitable replacements with at least 16/128 are available starting at under US$20.