duckredbeard
Posts: 78
Joined: Mon Apr 29, 2019 1:53 am

Rescue files from a dying Pi

Sat Jan 11, 2020 4:34 pm

I am certain that my SD card is corrupted with the way this pi has been acting. It is a 3A+ and has been becoming more unresponsive. Latest lockup resulted in me pulling the power while it was showing a green active LED. Restoring power resulted in many hung boots, hanging at various stages with a variety of errors (not being able to switch to high speed, displaying rc.local with the splash screen, a few others). I am able to get it booted eventually, but wifi will not connect.

Since this is a 3A+ it only has one USB port, an I'm using it for the mouse. That prevents me from copying files from the SD to a USB. I have tried using a hub (USB3.0) and it does not work - the mouse and keyboard don't function with the hub. I can't use TeamViewer because internet is not connecting. I get the two red Xs and when I select various SSIDs nothing happens.

How can I get files from the pi if I have no usable USB or internet?
You can't know your limits until you exceed them.

User avatar
buja
Posts: 542
Joined: Wed Dec 31, 2014 8:21 am
Location: Netherlands

Re: Rescue files from a dying Pi

Sat Jan 11, 2020 4:42 pm

If you have another computer (Pi or PC) running Linux and a SD reader you can try to read the SD card and copy the important files.
(a Windows computer won't be able to read the file system)

duckredbeard
Posts: 78
Joined: Mon Apr 29, 2019 1:53 am

Re: Rescue files from a dying Pi

Sat Jan 11, 2020 5:08 pm

I do have a 3B+ and a microSD-USB adapter. I will give that a try. Thanks for the help.
You can't know your limits until you exceed them.

User avatar
Imperf3kt
Posts: 3378
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Rescue files from a dying Pi

Sun Jan 12, 2020 1:32 am

buja wrote:
Sat Jan 11, 2020 4:42 pm
(a Windows computer won't be able to read the file system)
There are however, utilities you can install that will allow Windows to read/write ext4 partitions.
55:55:44:44:4C
52:4C:52:42:41

manthony121
Posts: 13
Joined: Tue Feb 27, 2018 1:33 pm

Re: Rescue files from a dying Pi

Sun Jan 12, 2020 4:53 am

Run 'fsck.ext3 -f -p <dev>' on the unmounted SD card. The '-f' flag forces a check, even if the file system seem clean. The '-p' flag enables automatic repair if errors are found.

duckredbeard
Posts: 78
Joined: Mon Apr 29, 2019 1:53 am

Re: Rescue files from a dying Pi

Sun Jan 12, 2020 12:38 pm

I was able to use the 3B+ to get to the files. Quite an adventure finding them. When using a MicroSD-USB adapter for a card that had been in a pi, it shows up as three drives. Had to drill down into several folders to find the files but I was able to find them.
You can't know your limits until you exceed them.

User avatar
buja
Posts: 542
Joined: Wed Dec 31, 2014 8:21 am
Location: Netherlands

Re: Rescue files from a dying Pi

Sun Jan 12, 2020 12:46 pm

Good news!

Just one more word: backup :!:

Return to “Troubleshooting”