bireswardas21
Posts: 1
Joined: Wed Mar 22, 2023 4:01 pm

restore raspberry pi data

Wed Mar 22, 2023 4:11 pm

due to high power supply my raspberry pi is not working(cannot boot) but the sd card was intact. now how can I restore my important program(python programs) from the sd card!! pls help

User avatar
thagrol
Posts: 9255
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK

Re: restore raspberry pi data

Wed Mar 22, 2023 5:01 pm

If it's important you'll have a backup you can restore it from won't you?

If not, a Linux computer and a USB SD card reader should do the job.

That Linux computer could be another Pi or a PC (or Intel Mac) running a live USB/CD/DVD distro like the one found here.
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

drgeoff
Posts: 13587
Joined: Wed Jan 25, 2012 6:39 pm

Re: restore raspberry pi data

Thu Mar 23, 2023 10:21 am

saradean90 wrote:
Thu Mar 23, 2023 5:07 am
If your Raspberry Pi is not working due to high power supply but the SD card is intact, you can remove the SD card from the Raspberry Pi and insert it into a computer with an SD card reader. From there, you can access the files on the SD card and copy any important Python programs to the computer. Once you have the programs saved on your computer, you can transfer them to a new Raspberry Pi or a repaired one once you have resolved the power supply issue.
Do not overlook the fact that most computers run MS Windows and that OS cannot read Linux file systems unless extra software is installed.
Quis custodiet ipsos custodes?

User avatar
thagrol
Posts: 9255
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK

Re: restore raspberry pi data

Thu Mar 23, 2023 12:11 pm

drgeoff wrote:
Thu Mar 23, 2023 10:21 am
Do not overlook the fact that most computers run MS Windows and that OS cannot read Linux file systems unless extra software is installed.
Beat me to it. :)
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

peterlite
Posts: 920
Joined: Sun Apr 17, 2016 4:00 am

Re: restore raspberry pi data

Fri Mar 24, 2023 11:01 pm

Windows? Install Linux along side and dual boot. Eventually you will complete the upgrade to full Linux. :D

From my experience of working with a Pi Zero, you need a second Linux for help. I use a Pi 4 with keyboard, screen, etc to develop for Zero etc. I also have an old notebook loaded with Linux Mint. The other machine with a big SSD can store multiple images as backups. in Linux, the backup images can be mounted to view the files, the same as looking at the files on the microSD card.

User avatar
thagrol
Posts: 9255
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK

Re: restore raspberry pi data

Sat Mar 25, 2023 12:45 am

peterlite wrote:
Fri Mar 24, 2023 11:01 pm
Windows? Install Linux along side and dual boot. Eventually you will complete the upgrade to full Linux. :D

From my experience of working with a Pi Zero, you need a second Linux for help. I use a Pi 4 with keyboard, screen, etc to develop for Zero etc. I also have an old notebook loaded with Linux Mint. The other machine with a big SSD can store multiple images as backups. in Linux, the backup images can be mounted to view the files, the same as looking at the files on the microSD card.
In my experience all that's really needed is a second SD card with a clean default RPiOS on it and a USB card reader. That'll let you fix most problems with an ext4 file system or its contents (bad fstab entry; broken autostart or .bashrc; etc). No need to install Linux along side or in place of windows.

Oh, and only for the zero series a USB OTG cable/adapter/shim and, maybe, a USB hub. A hub may also be desirable for an A/A+/3A+.

If you must use a "real" PC for recovery use a live Linux CD/DVD/USB - there is no need to install it.
Knowledge, skills, & experience have value. If you expect to profit from someone's you should expect to pay for them.

All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides

peterlite
Posts: 920
Joined: Sun Apr 17, 2016 4:00 am

Re: restore raspberry pi data

Sat Mar 25, 2023 7:15 am

second SD card with a clean default RPiOS on it and a USB card reader
I find that small config errors, like following any instructions not specifically written for bullseye, can be difficult to track back. That is why I make one little change then image it. Comapring multiple image sis easier on a bigger machine with meld or similar.
the zero series
Have not tested the Zero 2 as I cannot buy one. The Zero and Zero W are so slow I would not perform that type of investigation on a Zero. Same with copying data. Much easier on a Pi 4 set up as a desktop.

Return to “Beginners”