zeff
Posts: 1
Joined: Wed May 08, 2013 3:52 pm

Power failure, pi doesn't boot anymore

Wed May 08, 2013 4:07 pm

Hi all,

Due to a power failure, my Raspberry Pi doesn't boot anymore... When plugin the power supply, the red led lights up but the system doesn't start.

I think my filesystem has been corrupted, but how could I fix it and recover my data on the SD card (I'm not able to mount the ext4 partition on a linux machine...)?

Many thanks in advance!

Zeff

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: Power failure, pi doesn't boot anymore

Wed May 08, 2013 7:22 pm

Get another SD card and write Raspbian to it. Now you have a Linux computer. Put original SD card in reader and plug into USB socket on RPi.

User avatar
jasonjpeters
Posts: 3
Joined: Tue May 14, 2013 12:04 am
Location: Vernon, British Columbia - Canada
Contact: Website

Re: Power failure, pi doesn't boot anymore

Tue May 14, 2013 12:10 am

I am having the same issue with this. if the power goes out, or I unplug the system while still running, the card will no longer boot unless I re-flash it.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5621
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Power failure, pi doesn't boot anymore

Tue May 14, 2013 7:33 am

jasonjpeters wrote:I am having the same issue with this. if the power goes out, or I unplug the system while still running, the card will no longer boot unless I re-flash it.
Whilst genuine power failures "can't be helped", never just unplug power to the Pi, always shutdown cleanly first ("sudo shutdown -h now"), wait until all green LED activity has finished (no more writes to the SD card, usually 20 - 30 secs.) and only then switch-off the PSU - if you must unplug to do this do it at the "wall-wart" end rather than at the micro-usb connector. That way you reduce the chance of ending up with a corrupted SD card to almost zero. Of course, if the system hangs (equivalent to the Windows "blue screen of death") simply unplugging is the only way, but this is as a "last resort" not "normal practice".
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

User avatar
jasonjpeters
Posts: 3
Joined: Tue May 14, 2013 12:04 am
Location: Vernon, British Columbia - Canada
Contact: Website

Re: Power failure, pi doesn't boot anymore

Wed May 15, 2013 3:53 pm

Thank You for the advice. However that has not been the issue. It really has been you average everyday "Uh oh the lights went out" power failure. This happend a couple of days ago once again during an electrical storm. Upon restoring power the Pi would not boot once again.

Something I did notice during this round, the Act light was working so I left it for a bit and the Pi eventually as it appeared to reset itself. This took approximately 2 minutes.

I am currently running Debian with my own install of SLiM DM and Openbox WM.

To shutdown I use "sudo halt". Less to type out and does the same as "sudo shutdown -h now".

Joe Schmoe
Posts: 4277
Joined: Sun Jan 15, 2012 1:11 pm

Re: Power failure, pi doesn't boot anymore

Wed May 15, 2013 3:58 pm

To shutdown I use "sudo halt". Less to type out and does the same as "sudo shutdown -h now".
FWIW, "init 0" works just as well, and is even easier to type. That's what I always do.
And some folks need to stop being fanboys and see the forest behind the trees.

(One of the best lines I've seen on this board lately)

Return to “Troubleshooting”