blueagent
Posts: 21
Joined: Fri Oct 19, 2018 1:21 am

can abrupt shutdowns cause OS to be corrupted?

Sun Sep 15, 2019 6:54 am

i usually just flip the switch on the power-strip to turn the pi3 off, even while its playing videos or running games.

will this cause the OS to become corrupted? or cause data corruption of my stuff on the SD-card?

thanks for letting me know!

mby
Posts: 11
Joined: Sat Dec 15, 2018 3:05 pm

Re: can abrupt shutdowns cause OS to be corrupted?

Sun Sep 15, 2019 7:01 am

Yes; particularly SD cards with read/write-access seem to be prone to corruption caused by sudden loss of power...

See for example https://www.raspberrypi.org/forums/view ... p?t=230135 for some use cases and ideas.

RonR
Posts: 520
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: can abrupt shutdowns cause OS to be corrupted?

Sun Sep 15, 2019 7:03 am

You're living on borrowed time. You MUST do any orderly shutdown:

Code: Select all

sudo halt
Wait until the green LED blinks 10 times and stops before removing power.

User avatar
B.Goode
Posts: 8600
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: can abrupt shutdowns cause OS to be corrupted?

Sun Sep 15, 2019 7:51 am

What is the question?

will this cause the OS to become corrupted?

Definitely, repeatedly, without exception? No. (As you have proved.. )

can abrupt shutdowns cause OS to be corrupted?

Randomly, unpredictably, at the worst possible time? Yes.



Conclusion: a clean shutdown prior to removing power will improve your chances of not encountering OS or data corruption.

Return to “Beginners”