2

This question already has an answer here:

What easiest way to turn off/shut down the raspberry pi 3 model b? Would it be easier to just pull out my power source plug or to click menu --> shutdown --> shutdown and pull the plug or does it just do the same thing?

marked as duplicate by Steve Robillard Jun 26 '16 at 4:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Do not just pull the cord it can cause SD card corruption and th Pi not to boot. Use the menu. If you need to disconnect the power (to reboot for example) the best practice is to disconnect it at the wall not the Pi (this avoids wear to the connector). – Steve Robillard Jun 26 '16 at 4:41
  • 1
    @SteveRobillard You may mean wear on the plug. µUSB sockets are rated for 10K insertions, so it is unlikely you could ever wear one out. – Milliways Jun 26 '16 at 6:16
  • 1
    @Milliways I have to agree with Steve. Your wall outlet is rated even higher, not to mention some PSUs will spike from a no load situation. So if you plug in a hot PSU that does this, by by pi. Also to add, the socket may be rated at 10k, but it is the solder connections that usually break first at the board. – Dan V Jun 26 '16 at 8:29
  • Alternately, in a terminal window you can issue this command: sudo init 0 - Runlevel zero means it is off. Always watch the lights to make sure it finishes flushing out any cached disk writes before turning off power to protect the file system. – SDsolar Mar 21 '18 at 23:00
2

Do not pull the plug until the OS has shutdown completely. If you do, you risk corrupting the SD card and then needing to reformat and re-install. You can power down from the menu, once the green activity light goes off permanently and your display is off, you can safely assume the OS is done powering down and you can pull the plug. If you fancy the command-line, there's a command (poweroff) that will blink the green light 10 times once it's safe to unplug the Pi.

  • This sounds like a job for Win32DiskImager - to make sure there is a fresh, known good image copy of the SD card on hand. – SDsolar Jun 2 '17 at 17:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.