Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Setting up new SD card (and transferring files from old SD card)

    Scheduled Pinned Locked Moved Solved
    General Discussion
    2
    5
    399
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ZayvinnLinundefined
      ZayvinnLin
      last edited by

      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 Error Message.

      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). Disk Manager

      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!

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @ZayvinnLin
        last edited by

        @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:

        1. Get a good SD card: https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_card#specification
        2. Format the SD card: https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_card#formatting
        3. 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)
        4. 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
        5. Populate/replace the folders on the SD card with the files/folders from the above step.
        6. 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.
        7. Remember to backup the SD card more often!

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        ZayvinnLinundefined 1 Reply Last reply Reply Quote 0
        • ZayvinnLinundefined
          ZayvinnLin @droftarts
          last edited by

          @droftarts Hello! Thank you so much for your help. I will try those steps. I have uploaded the respective images below. image (4).png image (3).png

          droftartsundefined 1 Reply Last reply Reply Quote 0
          • droftartsundefined
            droftarts administrators @ZayvinnLin
            last edited by

            @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

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            ZayvinnLinundefined 1 Reply Last reply Reply Quote 0
            • ZayvinnLinundefined
              ZayvinnLin @droftarts
              last edited by ZayvinnLin

              @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

              1 Reply Last reply Reply Quote 1
              • Phaedruxundefined Phaedrux marked this topic as a question
              • Phaedruxundefined Phaedrux has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA