root@(none):/rom/root# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
/dev/mtdblock3 is not mounted
/dev/mtdblock3 will be erased on next mount
This worked, however, I don't know if this command should be included on the documentation or if is another kind of problem, with an inconsisten state of the router etc.
Hint for future:
With most routers you should be able to issue the firstboot command from a normally running router. No need to go to the failsafe mode.
Simply issue the command:
firstboot
and after its completion:
reboot
(note that firstboot equals jffs2reset, so both commands will produce the same result)
What exactly does this command do? I get the following after running it:
root@(none):/rom/root# umount /overlay
root@(none):/rom/root# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/mtdblock3 is not mounted
/dev/mtdblock3 will be erased on next mount
root@(none):/rom/root# reboot
For reference, I'm running LEDE on an Archer C7 v2
Are you saying I should run mount_root first? I've also tried doing that before running umount /overlay && firstboot && reboot and getting the same result.
Just tried firstboot as first command when entering failsafe mode.
I get same as above:
root@(none):~# firstboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/mtdblock3 is not mounted
/dev/mtdblock3 will be erased on next mount
Then I reboot and still config is not back to first boot up of LEDE.
I was finally able to get things going when I enabled the wifi and then was able to access LUCI at 192.168.1.1.
For some reason, I was not given an IP address and then access to LUCI when using an ethernet connection after running firstboot, so I'm not sure what happened there.
Ultimately, I'm going to get into the weeds again because I need wifi clients to be able to access things on the WAN, as I have an EdgeRouterX in front of my LEDE device.
I had exactly this question. I suspected that it would be true, but couldn't find confirmation in the wiki.
I am happy to update the wiki, but want to confirm that I'm saying the right thing. Two questions:
Your initial note says "With most routers..." How will people know which routers this procedure applies to?
Is the description below correct?
Thanks!
To reset your working OpenWrt router to its initial settings (that is, to the configuration it had immediately after flashing new firmware without retaining settings):
CONNECT TO THE ROUTER WITH ETHERNET. (Resetting the configuration disables Wi-Fi.)
From LuCI web interface:
Go to System -> Backup/Restore
(Optionally) Generate Archive to save the current settings
Click Reset to Defaults, then reboot the router.
From a SSH command line, enter these commands:
firstboot
reboot
Your router will be back to its initial configuration. You should be able to connect to it with http://192.168.1.1 or telnet 192.168.1.1