Borat
Posts: 26
Joined: Mon Jun 11, 2012 4:17 pm

Shutdown leading to blinking green led

Sun Jul 15, 2012 3:03 pm

I was trying to workout how to shutdown the pi into some sort of "standby" state. I typed something like sudo shutdown, or sudo poweroff. I thought I had suceeded because it did shutdown and I saw the red led was on after that. Anyway now it won't start up. The green (OK) LED blinks about 5 or 6 times, so according to this and to what I have read, a .elf file is not found.

Does anyone know anything about this or have a similar experience?

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13279
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Shutdown leading to blinking green led

Sun Jul 15, 2012 3:16 pm

I guess this was a first time boot.
After a first time boot there are some modifications that current distro's want to write to the card, but through the way writing to the card works, they are still in memory (write cache) waiting for a "flush" to the card. When the PI is then shutdown the wrong way (just a poweroff) the flush doesn't happen and important data isn't written to the card, which damages the filesystem.
You could have used the GUI for a shutdown, or used the official command line shutdown
shutdown -h now

I think the software guys should be aware there is a potential problem here, and issue a flush after the writing of these modifications, as the current situation is really unsatisfactory.

The only current solution AFAIK is to re-write the card image again.

Borat
Posts: 26
Joined: Mon Jun 11, 2012 4:17 pm

Re: Shutdown leading to blinking green led

Sun Jul 15, 2012 3:21 pm

helpful answer, thanks!

Borat
Posts: 26
Joined: Mon Jun 11, 2012 4:17 pm

Re: Shutdown leading to blinking green led

Sun Jul 15, 2012 4:05 pm

Just to add: It wasn't a first time boot, but I had probably used rpi-update during that boot, if that's relevant./

sharix
Posts: 200
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia

Re: Shutdown leading to blinking green led

Sun Jul 29, 2012 9:05 am

Also got this today after running:
sudo rpi-update
sudo shutdown -r now

(updating from Jul 14 to Jul 27)

User avatar
hibol
Posts: 33
Joined: Thu Jul 26, 2012 9:44 am
Location: Switzerland

Re: Shutdown leading to blinking green led

Mon Jul 30, 2012 9:32 am

And what about the command :

Code: Select all

sudo init 0
?
Can it lead to some problem, or is it ok to use it ?

PaulCheffus
Posts: 381
Joined: Tue May 29, 2012 2:51 pm
Location: Lincolnshire UK

Re: Shutdown leading to blinking green led

Mon Jul 30, 2012 9:02 pm

sharix wrote:Also got this today after running:
sudo rpi-update
sudo shutdown -r now

(updating from Jul 14 to Jul 27)
Hi

I had this too and replied to this thread.
http://www.raspberrypi.org/phpBB3/viewt ... 52#p136972

Cheers

Paul
Procrastination - The Thief of Time.

sharix
Posts: 200
Joined: Thu Feb 16, 2012 11:29 am
Location: Slovenia

Re: Shutdown leading to blinking green led

Tue Jul 31, 2012 8:20 am

Yes I did the same thing, manually overwrite the boot partition wth the files from github.

Return to “Troubleshooting”