Setting up new SD card (and transferring files from old SD card)
-
TLDR: Old SD card broke, trying to set up a new one but confused about the process. Also trying to retrieve files from the old (now unformatted) card. Please help.
Hello!
While using a E3D ToolChanger and Motion System 3D printer equipped with Duet 2 Ethernet and Duex expansion board, the printer randomly lost connection while homing, and now is unable to connect through ethernet. Connecting through USB gives the error as shown .
When trying to read the microSD card, Windows insists that the card needs to be formatted first, and cannot access the data within (although it is recognized as a healthy drive, just in the RAW format).
So, a new microSD card was ordered. Now, I am confused on how to set up this new microSD card to match the old one. I have been trying to follow this user manual (https://docs.duet3d.com/User_manual/RepRapFirmware/SD_card). Can anyone provide me with more detailed steps? I came across this set of files (https://github.com/Duet3D/Duet-2-Hardware/tree/master/Duet2/SD Card Contents) for the as-shipped contents of the SD card. Would it be okay to load these as a starting point? Furthermore, someone mentioned to me that I just need to flash a "Duet Image" onto the new SD card. Does anyone have knowledge about what this "Duet Image" is referring to? Is it the configuration files?
Lastly, does anyone know of an easy way to extract the data from the old SD card? There are some custom macros and gcode files that I would like to have in the new one.
Thank you!
-
@ZayvinnLin Unfortunately, your 'Error Message' and 'Disk Manager' images aren't showing; they appear to be linked to your Gmail account. You can upload images to the forum, then they should be visible.
If you SD card isn't showing up in Windows, there may be little you can do to recover the card. It's possible that it has been formatted with two partitions; SD cards that are used in Duet 3 boards have a FAT32 partition (readable by Windows) and a second partition for running in SBC mode on a Raspberry Pi, though these are not usually shipped with Duet 2 boards. Check in Windows Disk Management if there's any extra partitions on the SD card. If not, there are some software tools around that may be able to recover information from SD cards that you might have success with.
The process of setting up a new SD card are:
- Get a good SD card: https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_card#specification
- Format the SD card: https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_card#formatting
- Create folders on the SD card: https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_card#sd-card-structure and copy the files back from your old SD card (if possible)
- If you cannot recover the files from your old SD card you have a few choices:
- Download the configuration files from E3D - I think this might be what is being referred to as the 'Duet Image'. E3D have a list of Toolchanger related documentation and the 'Toolchanger firmware' option should give you the 'RepRapFirmware-SD-master.zip' as a place to start.
- Create a new configuration set using the configuration tool
- Populate/replace the folders on the SD card with the files/folders from the above step.
- To get DWC working, you will need to manually update the SD card /www folder with the matching version of DWC that your firmware is running. Connect via USB and send M115 to show which firmware version you are running. From the Duet RRF releases on Github, find the matching version and download the 'DuetWebControl-SD.zip', and unzip that into the /www folder on the SD card. For example, if you're running RRF 3.4.6, go to https://github.com/Duet3D/RepRapFirmware/releases/tag/3.4.6 and download and install the 'DuetWebControl-SD.zip' there.
- Remember to backup the SD card more often!
Ian
-
@droftarts Hello! Thank you so much for your help. I will try those steps. I have uploaded the respective images below.
-
@ZayvinnLin It looks like your SD card was formatted with one partition. If it's not mounting, it may indeed be lost. Usually 'RAW' partitions are unformatted (or formatting not recognised), so the partition table is corrupt. It may be possible to recover the files from it using software tools, but I don't really know what's a good option to do that on Windows.
Is the other image from using a new SD card? The good news is that the Duet is on the network, so probably the config.g is being read. You just need to get the version of DWC that matches your RRF version into the www folder on the SD card.
Ian
-
@droftarts Thank you for getting back to me! I was able to recover the files using Disk Drill (https://www.cleverfiles.com/data-recovery-software.html) and transfer the files to the new SD card. The printer is now working again
The second image saying "Your Duet rejected the HTTP request" is from using the old SD card connecting through USB
-
-