Search code examples
raspberry-piconfigbootraspbiandelete-file

Raspberry pi boot partition cannot be accessed after change in boot folder


I am trying to boot my raspberry pi and the first light is green, the second red and the other ones are not on. It was working fine until I unplugged the SD Card from the pi and plugged it in windows, then i deleted the config.txt file.

I tried to put SD card in the pi again but it just doesn't boot, noting happens except the two lights I talked about. I took another raspberry pi and another SD card and installed a raspbian image (like on the first one). Everything is working on this second SD card and raspberry pi so I copied the boot folder from this one into the boot folder of the other one.

Now both of them are not working !!!!! I would like to get the first pi to boot without re-installing everything because a lot of stuff was configured, do you have any ideas ?

Maybe re-installing the image on the first pi but before that saving the entire pi folder, then after re-installing copying it back would work ?

Thank you for your time and expertise.


Solution

  • Alright I found the solution, Windows sucks a LOT less today in my mind. Thanks to chkdsk I restored the first config.txt file, fsck didn't manage. So to everyone doing some stupid deletion like me, you got windows having your back with chkdsk.

    To go back in time : open a command prompt (cmd) then type : chkdsk /F.

    If your file system is F of course.