1

I accidentally reinstalled Raspbian on my Raspberry Pi and it erased all files I had on my desktop. Is there any way to get them back, or do I have to redo everything I had?

5
  • In what way did you reinstall Raspbian? Did you write a new disk image to the SD card, or did you do it from the Pi through some command? – Aurora0001 Apr 20 '18 at 14:18
  • When the Pi was starting up, I pressed enter on accident and it started the reinstallation. – sugarfi Apr 20 '18 at 14:19
  • Hmm, I wasn't aware that could happen; how did you install the OS in the first place? With NOOBS, or just a Raspbian image from the website? – Aurora0001 Apr 20 '18 at 14:21
  • I installed it with NOOBS. – sugarfi Apr 20 '18 at 15:30
  • 1
    No backup, no mercy ;-) raspberrypi.org/documentation/linux/filesystem/backup.md – Fabian Apr 20 '18 at 18:05
4

Unfortunately not... unless you made a backup, or saved the files somewhere other than on your SD card, the installation overwrites everything that's on the card.

Looking at it in a positive light though, you've learned a lesson that all of us get "refresher classes" on from time to time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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