in reply to Debugging CPAN problem

It may be much easier to avoid troubleshooting. A quick way to get it back up and running is create an image of the good SD card, and restore that image to the bad one:

Put SD card from working unit into computer, and:

dd if=/dev/sdX conv=sync bs=4M of=disk.img

When done, put the bad SD card into the computer, and:

dd if=disk.img conv=sync bs=4M of=/dev/sdX

Where X is the letter of the inserted SD card (check with dmesg or the like). Double, triple and quadruple check that you've got the right disk, or you could very easily and quickly hose your system.

If you've got the capability of connecting two SD cards at once:

dd if=/dev/sdGOOD conv=sync bs=4M of=/dev/sdBAD

Replies are listed 'Best First'.
Re^2: Debugging CPAN problem
by Bod (Parson) on Dec 22, 2020 at 20:10 UTC
    It may be much easier to avoid troubleshooting. A quick way to get it back up and running is create an image of the good SD card, and restore that image to the bad one

    That is probably the best way. I will need to sort out hostnames etc but that is pretty trivial.

    Double, triple and quadruple check that you've got the right disk, or you could very easily and quickly hose your system

    Everything I have written, including the crontab entries are backed up safely - but yes, I shall take great care with which disk is which :)

    I don't have a Linux box to do this on but Win32 Disk Imager should do the trick just as well thanks.