RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Backup SD Card by copying out files?

    Scheduled Pinned Locked Moved Help and Support
    sd card failurebackupimage
    87 Posts 10 Posters 33.6k Views
    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.
    • pjftP
      pjft @TMNTturtlguy
      last edited by

      @TMNTturtlguy Definitely go to sleep, we'll sort things out one way or the other :)

      I'm confused as to why the USB drive doesn't even show up. You do confirm it shows up using your other card, correct?

      What does dfshow on the other scenario? What does lsusbshow when you plug the USB drive in? What about dmesg | tail? And what about cat /etc/fstab, in both your SD cards?

      I am not an expert in Raspbian, nor in the auto-mount mechanism from recent RetroPie, but I'm happy to chime in and attempt to help you out. Also, this thread might help if nothing funny is going on at the moment.

      1 Reply Last reply Reply Quote 0
      • I
        ibiza7 @pjft
        last edited by

        merci beaucoup !!:D ca va mieux

        1 Reply Last reply Reply Quote 0
        • TMNTturtlguyT
          TMNTturtlguy
          last edited by

          @pjft Thanks for all the help as usual!

          Yes, confirmed I am running off of the USB on the original card. Here is the info for the original card running off of the USB:
          Working card with working USB - all commands shown
          0_1493814158356_working card.JPG

          rpi-clone card non working usb - all commands shown
          0_1493814452336_not working.JPG

          pjftP 1 Reply Last reply Reply Quote 0
          • pjftP
            pjft @TMNTturtlguy
            last edited by

            @TMNTturtlguy Is your USB drive a Kingston drive?

            In the "bad" card, you mention the USB drive blinks, then stops. Can you unplug it, run those commands (dmesg | tail, lsusband df), and then replug it and run the commands again?

            Also, does cat /var/log/syslogoutput anything for you? If so, what does it state for both cards?

            I'm somewhat stumped, but we'll make it work.

            Alternatively, if this thread doesn't help (just noticed I forgot to paste the link earlier), I'd love to read up on both boot logs (dmesg) - for the good and bad cards.

            But a few things first to try. As I said, I have this working though I am not using the automated mount from RetroPie, but rather the old method via fstab. I am confused as to why you would have such differences between cards, though.

            TMNTturtlguyT 1 Reply Last reply Reply Quote 1
            • TMNTturtlguyT
              TMNTturtlguy @pjft
              last edited by

              @pjft The usb drive is a computer stores brand - they offer lifetime warranties on them, so if they go bad, they just give you a new one. So i can't be positive, but I assume it is the one that shows up.

              No USB inserted
              0_1493819510358_no usb.JPG

              USB inserted
              0_1493819607103_usb inserted.JPG

              Cat /var/log/syslog for non working Card
              0_1493820099608_usb fail.JPG

              cat /var/log/syslog for working card
              0_1493820345199_working mount.JPG

              pjftP 1 Reply Last reply Reply Quote 0
              • pjftP
                pjft @TMNTturtlguy
                last edited by

                @TMNTturtlguy Thanks.

                A few questions, if possible - and thanks for putting up with all of this.

                So, the USB drive seems to be detected - as you can tell by the Kingston device showing up in both versions. However, it's not being mounted for some reason.

                1. What does ls /dev/sd*show in your bad card?
                2. What does cat /etc/usbmount/mount.dshow in both?

                I'm also wondering if that's your entire syslog for the working card? Seems awfully short.

                Also, on the one that doesn't work, there seems to be an awfully long (4-min?) gap between a device being apparently disconnected, and a new one connecting? See device disconnect 4, and new number 5. Does that happen at all boots?

                I'm happy to help you set it up as mounted via the old process, though I'm more keen on exploring why the difference in behavior here.

                1 Reply Last reply Reply Quote 1
                • SanoS
                  Sano
                  last edited by

                  I think a "sudo fdisk -l /dev/sda" could provide some useful information too.

                  pjftP 1 Reply Last reply Reply Quote 1
                  • pjftP
                    pjft @Sano
                    last edited by

                    @Sano If you have the expertise here, would love your inputs as I'm certainly out of my league here :)

                    By the way, love your avatar!

                    1 Reply Last reply Reply Quote 0
                    • TMNTturtlguyT
                      TMNTturtlguy
                      last edited by

                      @pjft The syslog for both cards is very very long, i just cut out the parts i saw about the usb drive. is there a way i can output the entire log? I went into the folder, but the log is not a typical file type that i could open and read.

                      1. ls /dev/sd* shows: /dev/sda /dev/sda1
                      2. cat /etc/usbmount/mount.d in the bad card = cat: /etc/usbmount/mount.d: Is a directory

                      Sano: sudo fdisk -l /dev/sda on bad card
                      0_1493822588370_bad card.JPG

                      i will do the same for good card and post back momentarily
                      Thanks!

                      pjftP 1 Reply Last reply Reply Quote 0
                      • pjftP
                        pjft @TMNTturtlguy
                        last edited by

                        @TMNTturtlguy So, the drive is there, and it's in the right mount point (sda1) - for whatever reason, it fails to be mounted.

                        Can you do ls /etc/usbmount/mount.dand then cat /etc/usbmount/mount.d/<filenames>one by one, for both cards?

                        TMNTturtlguyT 1 Reply Last reply Reply Quote 1
                        • TMNTturtlguyT
                          TMNTturtlguy @pjft
                          last edited by

                          @pjft not sure i am doing the cat /etc/ correct, i am guessing i am supposed to be putting something else in instead of <filenames>? but here is what i get

                          good card
                          0_1493823292102_upload-3b000022-30bb-474f-9c27-227bc5627d9f

                          Bad card
                          0_1493823494164_upload-24509540-2860-42be-957e-086e2f7aa92c

                          pjftP 1 Reply Last reply Reply Quote 0
                          • SanoS
                            Sano
                            last edited by

                            @pjft Thanks :) Had it for many years now.

                            @TMNTturtlguy could you please do a ls -l /media and post the result ?

                            TMNTturtlguyT 1 Reply Last reply Reply Quote 1
                            • pjftP
                              pjft @TMNTturtlguy
                              last edited by

                              @TMNTturtlguy Definitely - replace <filenames> with 10_retropie_mount

                              :)

                              And follow @Sano 's advice, as he definitely seems more knowledgeable about this :)

                              TMNTturtlguyT 1 Reply Last reply Reply Quote 1
                              • TMNTturtlguyT
                                TMNTturtlguy @Sano
                                last edited by

                                @Sano ls -l/media on bad card gives me this: total 0

                                Do you want that for the good card?

                                1 Reply Last reply Reply Quote 0
                                • SanoS
                                  Sano
                                  last edited by

                                  Nope, just do a "sudo mkdir /media/usb0" and retry :)

                                  Here is what /media should be like :
                                  pi@retropie:~ $ ls -l /media
                                  total 68
                                  lrwxrwxrwx 1 root root 4 nov. 5 22:35 usb -> usb0
                                  drwxr-xr-x 2 root root 3488 nov. 5 22:35 usb0
                                  drwxr-xr-x 2 root root 3488 nov. 5 22:35 usb1
                                  drwxr-xr-x 2 root root 3488 nov. 5 22:35 usb2
                                  drwxr-xr-x 2 root root 3488 nov. 5 22:35 usb3
                                  drwxr-xr-x 2 root root 3488 nov. 5 22:35 usb4
                                  drwxr-xr-x 2 root root 3488 nov. 5 22:35 usb5
                                  drwxr-xr-x 2 root root 3488 nov. 5 22:35 usb6
                                  drwxr-xr-x 2 root root 3488 nov. 5 22:35 usb7

                                  TMNTturtlguyT 1 Reply Last reply Reply Quote 1
                                  • TMNTturtlguyT
                                    TMNTturtlguy @pjft
                                    last edited by

                                    @pjft bad card
                                    0_1493824487298_upload-56ff12ed-18e1-4e0e-a273-a9edef980eca
                                    0_1493824533677_upload-2c88aa17-6465-4f53-8803-38668613f36c

                                    1 Reply Last reply Reply Quote 0
                                    • TMNTturtlguyT
                                      TMNTturtlguy @Sano
                                      last edited by

                                      @Sano 0_1493824665985_upload-3d9cd622-2436-4650-8246-6cfd9720a6bd

                                      1 Reply Last reply Reply Quote 0
                                      • SanoS
                                        Sano
                                        last edited by Sano

                                        Ok, try to plug your USB thumbstick now. This should work.
                                        It seems that the content of the folder /media was not copied.
                                        It is used by usbmount as mountpoints.
                                        Fortunately, you could just recreate the folders with mkdir, and eventually the symlink witn ln -s.
                                        Alternatively you can reinstall the usbmount package.

                                        1 Reply Last reply Reply Quote 2
                                        • TMNTturtlguyT
                                          TMNTturtlguy
                                          last edited by

                                          @Sano and @pjft it worked!

                                          Sorry for the delay, i was on a work call. This absolutely worked. I need to make sure that everything is there, but when i restarted, the USB was recognized and the roms appeared!

                                          So I am 100% sure that my process to create the copy using rpi-clone was correct, and i performed the clone twice with identical results. Every other aspect of the clone looks to be 100% correct at this point. I am going to add the mkdir command to my personal instructions. When i do this for my other build I will see if i have to follow the same steps. If so, i might attempt a wiki on how to use the rpi-clone tool with the automated usb service.

                                          Thanks to both of you for all the help. i can't believe it was something so simple after all that work.

                                          1 Reply Last reply Reply Quote 3
                                          • SanoS
                                            Sano
                                            last edited by

                                            Nice.
                                            Glad I could help a bit. :)
                                            And don't blame you, a lot of resolutions tend to be simple when the problem is identified.

                                            pjftP 1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.