Page 1 of 1

Shutdown leading to blinking green led

Posted: Sun Jul 15, 2012 3:03 pm
by Borat
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?

Re: Shutdown leading to blinking green led

Posted: Sun Jul 15, 2012 3:16 pm
by mahjongg
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.

Re: Shutdown leading to blinking green led

Posted: Sun Jul 15, 2012 3:21 pm
by Borat
helpful answer, thanks!

Re: Shutdown leading to blinking green led

Posted: Sun Jul 15, 2012 4:05 pm
by Borat
Just to add: It wasn't a first time boot, but I had probably used rpi-update during that boot, if that's relevant./

Re: Shutdown leading to blinking green led

Posted: Sun Jul 29, 2012 9:05 am
by sharix
Also got this today after running:
sudo rpi-update
sudo shutdown -r now

(updating from Jul 14 to Jul 27)

Re: Shutdown leading to blinking green led

Posted: Mon Jul 30, 2012 9:32 am
by hibol
And what about the command :

Code: Select all

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

Re: Shutdown leading to blinking green led

Posted: Mon Jul 30, 2012 9:02 pm
by PaulCheffus
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

Re: Shutdown leading to blinking green led

Posted: Tue Jul 31, 2012 8:20 am
by sharix
Yes I did the same thing, manually overwrite the boot partition wth the files from github.