Shut Down and Restart Raspberry Pi  Step by Step Guide ▷ 2021

Raspberry devices are a marvel for developers, students, and tech professionals. They simplify work at a reduced price. However, this has some “Small print” in terms of the care of the equipment, which is more fragile than you think.

As you will have noticed, this board does not have an on or off button And this is a problem for newbies and unsuspecting people who think that turning off the power is a good idea.

We will tell you the reasons why you should properly shut down your Raspberry equipment and what you should do, step by step, to ensure that the shutdown process is safe.

What are the most dangerous risks of shutting down or restarting a Raspberry Pi improperly?

The first thing to remember is that the operating system on Raspberry computers are installed on a Micro SD card, which is not more resistant than the rest of the cards on the market, so it requires a lot of care.

Review this list of the potential risks of incorrectly turning off a Raspberry, whatever model you have in your projects:

  • Data loss: when talking about data, one talks about all the configurations, files and procedures with which a Raspberry has been working. Most likely, what is lost first is the last stored and modified data.
  • File corruption: It is one thing for the data to disappear and another for it to be there, but remain unusable. This occurs due to variations in the direct feed in the equipment. For this reason, the use of UPS systems and voltage regulators is always recommended when you have a really important project in progress.
  • Micro SD card damage: The manufacturers claim that the cards are highly resistant to shocks, even water resistant, but we do not recommend doing a resistance test. The Micro SD card, when used in Raspberry, works excessively and you may have to change it once a year due to its fragility.
  • Damage to Raspberry components: the processor, RAM, and onboard chips can be affected by a direct feed disturbance. Although the board will not burn from unplugging the power cord, it may not work properly when you turn the computer back on.
  • Delays in your project: If you are the main author of a project, you will know how important it is to take care of the work you do. An oversight in the way of turning off a Raspberry can lead to wasted valuable time and delays in meeting goals.
  • Loss of money: Although Raspberry equipment is affordable, when a board is damaged you must replace it completely and that requires a new investment of money. If you are just an entrepreneur or enthusiast, you know that this implies the use of resources that you probably do not have on hand.

Learn step by step how to restart or shut down your Raspberry Pi single board correctly and without risks

Believe it or not, Raspberry computers are designed to stay on for hours, days, and weeks. They even have a power supply via USB so that the board does not overheat so quickly. The processor and the ethernet chip are the hottest components on a Raspberry board And there are heat sinks on the market that can improve its performance. However, it is unlikely that there will be high temperature problems when you leave the equipment connected.

Even with this explanation, if you have questions about how to take care of your Raspberry and need to turn off the mini computer, you just have to follow these simple steps:

From the command console

As it is quite common that you carry out projects without the support of a monitor, you better learn how to use command console that comes by default in the Raspberry PI OS operating system, which is called Bash.

Once you make the SSH connection and have access to your Raspberry, write these lines of code in the console:

  • sudo shutdown -h now: When writing these lines, a series of steps are executed to follow and that are seen in the same command console.

Command console on Raspberry Pi

  • SIGTERM: this is the order that the computer issues so that all processes save information and begin to close.
  • SIGKILL: the rest of the processes that are running will be stopped. There will be no active processes at this point.
  • SYSTEM HALT: is the command console warning that the system has come to a complete stop.

After completing these steps, you can now proceed to power your Raspberry Pi equipment, in any of its versions, because none of them comes with a built-in button.

From the desk

When you use a Raspberry as a mini desktop computer, it is easier to perform the shutdown process safely.

You just have to follow the following steps:

  • At the top and left, locate the Raspberry logo, which is actually a button that displays the menu.

Raspberry Pi Start Menu

  • Find and select the button “Shutdown”.
  • Wait for the processes to finish which are not visible as in the case of the command console.

Turn off button on Raspberry Pi

  • The computer will tell you when to turn off the power.

It is important to highlight that, while hardware is receiving power, remains on, although with a minimum of active processes.

Restart a Raspberry

The only way to turn on a Raspberry device is by connecting the power through the USB-c port, which is the only one that works to allow electricity to pass through. Taking into account this foundation, the only way to restart the mini computer is to carry out all the processes that we have been explaining in this article to properly turn off the equipment, remove the power cord, and reconnect it. Only then is a safe reboot performed.

Raspberry Pi power cable

Remember that these devices are low cost and are used for different technology projectsTherefore, it is not convenient for all of them to be manufactured as if the sole purpose is to serve as a desktop computer for end users.

If you have any questions, leave them in the comments, we will answer you as soon as possible, and it will surely be of great help to more members of the community. Thanks! 😉

Author: Mario José

Graduated in journalism, specialized in investigation, I seek the truth of all things. Now 100% focused on technology, computing and Internet issues.

You may be interested:

Leave a Comment