raspbian2RPi

Reinstall your Raspberry over the Network

Sometimes you want to reinstall your Raspberry Pi without switching the SD-card or via remote since it is located on another physical location. Here is a solution to reinstall the operating system remotely.

Installation

1. First you must activate the magic SysRq option:

This will enable the reset of the Raspberry without regular commands.

2a. Transfer the image and write it to SD:

  • Login via SSH to the system on which the image is located and read it via dd. The stdout is tunneled through SSH to the local system.
  • Using pv you can see how much data is transferred. (You may need to install it with apt-get, but you can also omit this.)
  • funzip extracts the first file and sends it to stdout.
  • dd writes it to the SD-card.
 2b. You can also pull the image direct from the Internet:

 

3. Reset the Raspberry:

Important

There are many ways how to transfer an image over the network. The methods described here pull the image from a remote location. After the transfer process has been completed, you are still logged in. With other ways, if you are logged out, you are lost because you cannot log in any more…

Be sure that you have DHCP enabled on the network.

Good luck. 😉

Links

Leave a Reply

Your email address will not be published. Required fields are marked *