DavidMS
Posts: 139
Joined: Fri May 25, 2012 8:48 pm
Contact: Website

Using Pi reset pins to get to a 'safe' state

Mon Sep 18, 2017 12:28 pm

I am looking for a simple way to 'safely' shut down a Rpi - without going through the sudo poweroff process.

I can see pulling a Rpi board in to reset by shorting the reset pins together is not the best way to get the board into a safe state before cutting the power but will it ensure I avoid corrupting the SD card ? The Rpi is not doing anything that writes to the SD card other than anything Linux is doing in the background. I can be relativity certain the Rpi will be able to complete any start-up processes before being turned off in this way, so I would not be resetting it part way through start-up.

I have tried quite a few times over the weekend and it seems ok but it would be good to know if I have just been luck !
http://meanderingpi.wordpress.com/
11 Raspberry Pi's and counting....

User avatar
DougieLawson
Posts: 38446
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Using Pi reset pins to get to a 'safe' state

Mon Sep 18, 2017 12:54 pm

If you run sudo poweroff then pulling the reset after the 10 blinks on the activity LED is perfectly safe.

Pulling it while the system is in full flow risks corrupting your SDCard.

For controlled power down, power up on a timer look at the WittyPi 2 add-on board.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

DavidMS
Posts: 139
Joined: Fri May 25, 2012 8:48 pm
Contact: Website

Re: Using Pi reset pins to get to a 'safe' state

Mon Sep 18, 2017 8:43 pm

Ok I get that but what happen when you out the pi in to reset but shorting the re-set pins together ?
http://meanderingpi.wordpress.com/
11 Raspberry Pi's and counting....

User avatar
DougieLawson
Posts: 38446
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Using Pi reset pins to get to a 'safe' state

Mon Sep 18, 2017 9:17 pm

Shorting the pins causes a dead halt of the processor, it takes no prisoners.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

I'll do your homework for you for a suitable fee.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Raspbian”