Factory Reset

Just in case some important system files or configurations get deleted or overwritten, the Omega can be restored to a factory state. Performing a Factory Restore on your Omega will revert all files to the default for the currently installed firmware, all other files will be deleted.

So a factory restore will not revert to the firmware that was actually installed at the factory, it will essentially create a clean slate on our Omega’s currently installed firmware.

Make sure that you understand that a factory restore is a destructive action and that all user files should be backed up before performing a factory restore!

Using a Command

To perform a factory restore on the command line, run the following commands:

firstboot -y
sync
reboot

These commands will:

  • Revert the firmware to a clean slate
  • Ensure all storage opeartions are complete
  • Reboot the Omega for the changes to take effect

It will work the same no matter how you have connected to the Omega’s command line, whether it was by SSH, via Serial, or using the Terminal App on the Console.

With the Reset button

When connected to a Dock with a Reset button, pressing and holding the reset button for about 10 seconds will trigger a factory reset and then automatically reboot your Omega.

This can only be done on Docks that have Reset Buttons:

  • Expansion Dock
  • Power Dock
  • Mini Dock
  • Arduino Dock 2

With the Console

A more user friendly way to reset your Omega to factory settings is by using the Console. If you’re not familiar with the Console, take a look at our articles on installing the console and then [accessing the Console)[#accessing-the-console].

To perform the factory reset, simply navigate to Settings and click ‘Factory Reset’ from the left pan. Now, you will see a Factory Reset page. Make sure to back up all of your custom files on a device before proceeding. When you are ready, just click on the button “Factory Reset” and wait several minutes while system is being factory restored. The amber LED will blink over the process of rebooting. Once the reset is done, your Omega will stop flashing. Now you may configure your Omega over, happy hacking!

A note about Factory Resets and RSA Key Warnings

After a factory reset, your Omega’s SSH signature will be different. When you try to connect to it via SSH, your computer will recognize the key associated with the remote address is different than before and warn you. In general, it is a good idea to heed this warning, but if you’ve just factory reset your Omega, then this is to be expected.

SAMPLE WARNING:

ssh root@192.168.3.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:bhBERYdcA6wsT6Uc2np+Lt+5I9MU2ekggE+1CLTrQpg.
Please contact your system administrator.
Add correct host key in /Users/Onion/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/Onion/.ssh/known_hosts:231
RSA host key for 192.168.3.1 has changed and you have requested strict checking.
Host key verification failed.
<<<<<<< HEAD

But this is not a big issue. The fix is, simply open the known_hosts file and delete the previous entry. The warning message will specify the line number.