| 1 | = OpenWrt Factory Reset |
| 2 | One of the benefits of using OpenWrt with an overlay filesystem is that you can offer a simple 'factory reset' option to restore to the default environment before any changes were made to the filesystem. |
| 3 | |
| 4 | This is only possible if using an overlay filesystem such as: |
| 5 | * squashfs+f2fs - Newport eMMC |
| 6 | * ubifs+ubifs - Ventana NAND |
| 7 | * sqashfs+jffs2 - Laguna |
| 8 | |
| 9 | To issue a 'factory reset' from the command line run the 'firstboot' application. There is also an option to invoke this from the LuCI web admin. |
| 10 | |
| 11 | If the reason for wanting to do a 'factory reset' is that you can not get to your board remotely or fail to boot because of an invalid configuration you must use serial console and [wiki:OpenWrt/init#failsafe failsafe boot] first. |