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?
-
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?– Aurora0001Apr 20, 2018 at 14:18
-
When the Pi was starting up, I pressed enter on accident and it started the reinstallation.– sugarfiApr 20, 2018 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?– Aurora0001Apr 20, 2018 at 14:21
-
I installed it with NOOBS.– sugarfiApr 20, 2018 at 15:30
-
1No backup, no mercy ;-) raspberrypi.org/documentation/linux/filesystem/backup.md– FabianApr 20, 2018 at 18:05
1 Answer
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.