I accidentally ran xargs -a file.txt rm -v, which I think probably deleted every file. Everything was saying "not found" and ssh access was lost. Ever since a reboot, the router provides no wifi or connectivity.
Is there are any chance I can save this?
I do have every file of the router stored on my computer. Not just the backup.
My router is WNDR3800-CH
I tried to enter into factory reset, but when I press the reset button I managed to get the status light to blink rapidly, nonstop, for hours, I don't know if that is factory reset or if it's stuck or if it's failsafe mode. Setting my ip address to 192.168.1.2 doesn't give me back access to the router
not sure what you mean about reviving erased flashblocks, but I take it that you are suggesting that failsafe mode won't fix it and I have to factory reset
Yes and that is what you should do. If you rewrite every file they would all be in the overlay and that will probably run out of flash space. Reset to factory then restore your config files and reinstall any extra packages.
I would suggest a sysupgrade re-flash without running mount_root, as the firstboot process does depend on having some things in the filesystem.
Is there any way I can still use my backup, at least to some extent, without increasing the storage of the router?
Like I could for example copy the config files instead of having to type them again manually, copy and paste, or doing it through luci. Maybe there's some files I can copy from my backup and some that I can't? I don't fully understand why I would have the problem you are describing, since copy and pasting the contents I feel like should achieve the same result as replacing the file
Unless there's files in my backup you are saying won't be present in openwrt. In that case I case I can use the backup only for files that exist. Either recursively or cherry pick them.
After it's back to factory, copying all the files in /etc/config will cover most things. Some packages may have files in other places. The files in /lib/upgrade/keep.d are lists of directories and files that will be tarred up into the backup file by sysupgrade -b