Restoring the Raspberry server to factory settings

How to reset the Raspberry Pi server to factory settings by rewriting the SD card, and how to reset the network (DHCP or static IP) using a USB flash drive.

Introduction

If you can no longer connect to your server (for example because you forgot the password), you can restore the Raspberry Pi server to factory settings by formatting and rewriting the SD card. Warning: formatting deletes all settings from the server web configuration panel.

Raspberry Pi server with micro SD card

Format the SD card

Step 1: remove the micro SD card from the server and insert it into the PC.

Step 2: open the SDFormatter software.

Step 3: select the device containing the SD card.

Step 4: click “format” and then “Yes” to confirm the start of formatting.

Step 5: download the latest version of the server software.

Step 6: open Win32 Disk Imager software for Microsoft Windows systems or Etcher for macOS systems.

Step 7: select the server software file downloaded in Step 5.

Step 8: select the device containing the SD card.

Step 9: click “write” and then “Yes” to confirm the start of writing.

Step 10: remove the micro SD card from the computer and insert it into the appropriate Raspberry Pi card slot.

NOTE: by formatting the card, all settings in the server web configuration panel will be lost. The server will obtain the IP address from the router’s DHCP server on the network.

How to set the server to DHCP mode or configure a static IP

Prepare the USB flash drive

Step 1: prepare a USB flash drive formatted in FAT32.

Step 2: download the latest version of the static IP or DHCP file.

Step 3: extract the file from the zip archive.

Step 4: copy the eve.settings.txt file to the formatted USB flash drive.

Step 5: remove the USB flash drive from the PC and insert it into a USB port on the server.

Step 6: you can start/stop the services to apply the settings, or simply restart the system.

Step 7: after restarting the system, wait 20 seconds and then disconnect the USB flash drive from the X1 server.

Step 8: the X1 server now applies the settings specified in the file previously copied to the USB flash drive. For more information, also see the page How to reset network settings.

How to edit eve.settings.txt

NETWORK_MODE=STATIC
Choose Static or DHCP.

NETWORK_IP=192.168.99.10
Choose the desired IP address.

NETWORK_MASK=255.255.255.0
Choose the desired subnet mask.

NETWORK_GATEWAY=192.168.99.1
Choose the desired gateway.

NETWORK_DNS1=192.168.99.1
Choose the first DNS.

NETWORK_DNS2=8.8.8.8
Choose the second DNS.

If NETWORK_MODE is set to DHCP, the system is configured in DHCP.

Last updated: