How do I factory reset my TinyPilot device?

Note: These instructions apply only to TinyPilot Pro.

Overview

If things go haywire with your TinyPilot device, you can factory reset it back to the original settings by re-flashing the microSD card.

Requirements

For these instructions, you'll need:

  • A microSD writer
    • There are many different brands, but Anker's model is reliable

      A microSD card (at least 8 GB)

    • Can be the same microSD that shipped with your TinyPilot as long as there's no physical damage

      Balena Etcher

    • A free, open-source tool for writing microSD images

No microSD card writer?

If you don't have a microSD card writer on hand you can boot TinyPilot from a USB drive instead.

Download the TinyPilot microSD image

First, download the TinyPilot microSD image from our download page.

Flash the image

  1. Insert a microSD card into your microSD writer.
  2. Insert the microSD writer into your computer.
  3. Open Balena Etcher.
  4. Click "Flash from File." 

    Balena Etcher software interface, highlighting flash from file button.

  5. Select the TinyPilot Pro .img  file you downloaded previously. 

    Windows File Explorer window showing a selected file for the TinyPilot Pro .img file.

  6. Click "Select target." 

    Balena Etcher software interface showing the TinyPilot Pro .img file selected. The 'Select target' button is highlighted.

  7. Check the box next to your microSD card drive and hit "Select." 

    Etcher software window showing the selection of an SDHC card, 15.9 GB in size, located on drives E and H.

  8. Finally, click the "Flash" button. 

    Balena Etcher software interface showing a file ready to be flashed onto an SDHC card.

When the flash is complete, you'll see this screen "Flash Complete!" screen:

Balena Etcher flash complete screen, showing a confirmation message.

Insert your newly-flashed microSD into your TinyPilot device, and then power it on. The first boot will take 3-5 minutes to complete.

(Optional) Purge old SSH records

If you used SSH to access your TinyPilot device before resetting it, you may see the following error when you connect in the future:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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.

Your computer remembers the devices you connect to and will warn you if their properties change. Factory resetting your TinyPilot device causes it to generate a new SSH configuration, so the error message is alerting you of this change.

You can fix the error above by purging the information your computer saved about your TinyPilot device prior to the reset. To do this, run the following commands:

ssh-keygen -R tinypilot
ssh-keygen -R tinypilot.local
ssh-keygen -R tinypilot.localdomain

Still need help? Contact Us Contact Us