SD Card Dead after upgrade. Recovery Options?
-
Hi,
I try to update the Pi and the Duet board regularly (unstable branch) and it's been running pretty well for most of this year now. However, after upgrading the Raspi/Duet yesterday (9/9/22)my system has crashed and will now not boot. It was actually running after the update as was able to connect to the web interface over my network but seems to have died since.
When powered up the RPi4 only shows 1 red LED with no other activity so I understand that this is most likely an SD card corruption issue. The SD Card is a Sony 64GB Class 10 FWIW.
I've tried to attach the SD card to a couple of computers but it won't mount at all - repeated windows mount/unmount beeps. Same behaviour on a Chromebook. So, this, I think, confirms my suspicions that it's an SD card issue.
If that IS the case, what are the recovery options for the system as a whole (various SD card recovery techniques have not worked or are not applicable thus far) ?
If I write a new Raspi Duet image on a new SD card and (assuming the Pi4 isn't actually damaged), load it onto the Pi4 (usual wifi config etc) should I expect it to reconnect with the Duet board without too much faff or am I likely to need to have to start from scratch. I don't know if any of my config/macro files are stored on the board itself.
I'm guessing that this is a lesson in backing-up files so I would also be interested in knowing a good approach for this. I run a Homeassistant instance on another raspberry pi and recovery from google cloud backups is very well implemented such that it's very reassuring that I won't have to set it all from scratch in the [likely] event of SD card failure. Is there a cloud backup mechanism for Duet/Pi?
It's a little frustrating as it was all a bit of a learning curve setting it up and, I must admit, I've forgotten a lot of it so I'm anticipating another ride on the learning curve ahead of me!
Any experience or advice is welcome.
Many thanks,
Jason (Bedford, UK)
-
...it's some consolation that I've previously posted my config.g file on this forum.
I've just checked to see if I had an SD card in the Duet board but it seems not, so I guess the only question here is what are the back-up options for next time....
J
-
@greeno76 said in SD Card Dead after upgrade. Recovery Options?:
start from scratch. I don't know if any of my config/macro files are stored on the board itself.
All config files are contained on the SD card. It sounds like the card has failed. If it's not readable on a computer then it's not likely recoverable.
Without a backup, starting from scratch is the only option. The online config tool should get you 90% of the way there though.
-
@phaedrux
It would be cool to add a scheduled reminder to the Duet system, which asks us to backup macros and config-folders regularily.
Or it pops up a warning message, when we upload new FW files. Not sure, how that would work with SBC, though -
@phaedrux OK, thank you. I thought that was probably the case. As I said, the config file is in one of my previous forum questions so I think I can just use that.
Sadly I have no record of the macros (touchplate WCS setting) but I'll work through those and get it up and running again asap.
Best wishes,
Jason
-
@o_lampe said in SD Card Dead after upgrade. Recovery Options?:
Not sure, how that would work with SBC, though
On the SBC you could setup a cron job to backup the files automatically.
I suppose it might be possible to setup a counter or date check in daemon.g and have a prompt that way.
A phone calendar reminder might be the more pragmatic solution.
-
This might provide a possible solution. https://github.com/rclone/rclone ??
Definitely want to avoid having to reinstall everything again in the event of an SD card failure!