Take the 2-minute tour ×
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

I had to do a hard power off on my Pi, as it had crashed. Now, when I turn it on, I get 3 flashes of the OK LED, which means either loader.bin or start.elf is not found. I have plugged the SD card into my Windows PC to browse the boot partition and neither of those files is present. Is there any way to repair the boot partition and allow the Pi to boot without losing any data on the card? I have important data that hasn't been backed up yet on the card.

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

I'm afraid you're going to have to fix the installation manually.

You can download the relevant bin and elf files from the Raspberry Pi GitHub repository. Then mount the boot partition of the SD card and copy the files onto it.

If this doesn't work then something more serious has gone wrong and you're going to have to re-flash the entire image. However, you should be able to save your data if you can mount the SD card as you can simply copy off the files you want. They will be in the directory /home/[username].

I hope this helps, let me know if you have any more trouble.

share|improve this answer
    
This is pretty much what I did, except instead of getting the files from github, I flashed a spare SD card with the latest Raspbian and copied the entire contents of the boot partition to the non-working card. –  c.cam108 Dec 30 '12 at 15:46
    
Good job. Hope I helped :) –  Jivings Dec 30 '12 at 19:37
add comment

You could:

Backup the card.

Reflash the card with your OS, which would also fix the boot partition.

Copy the files you want back to your card.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.