The value of being careful

Forumite Members General Topics Tech Other Tech The value of being careful

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #34736
    D-DanD-Dan
    Participant
      @d-dan
      Forumite Points: 6

      On a Sunday morning, early, I thought it was a good time to migrate an almost full 500Gb portable drive to a 1TB. This is an NFS drive, with boot systems for 5 raspberry Pis, and more importantly, all of my music, videos, and photos.

      Nice easy job, and to make it easier I cleaned the destination first.

      Except, it wasn’t. I managed to clean the destination drive, the source drive, and the backup, because I wasn’t paying attention.

      Most of the music is recoverable from a separate machine. The videos are gone, but replaceable. The photos on the other hand, are now nowhere, and irreplaceable.

      I’ve had better days 🙁

      Arch Linux, on a Ryzen 7 1800X, 32 GB, 5 (yes -5) HDs inc 5 SSDs, 4 RPi 3Bs + 1 RPi 4B - one as an NFS server with two more drives, PiHole (shut yours), Plex server, cloud server, and other random Pi stuff. Nice CoolerMaster case, 2 x NV GTX 1070 8GB, and a whopping 32" AOC 1440P monitor.

      #34737
      Dave RiceDave Rice
      Participant
        @ricedg
        Forumite Points: 7

        I tend to unplug devices I’m not working on. Are there not recovery tools for NFS?

        #34740
        JukeboxJukebox
        Participant
          @jukebox
          Forumite Points: 4

          Have you tried Recuva ? I’ve always found it pretty reliable. Note that if it does find lost files they should be saved to a different drive to prevent overwriting the files you’re trying to recover.

          #34755
          Ed PEd P
          Participant
            @edps
            Forumite Points: 39

            A quick Google shows that specific tools exist but the better ones probably cost money. I’m sure Dan has investigated these so the only reminder I would give would be to emphasise the importance of doing a full bit copy of the disk before trying to recover it. Failed recoveries can really screw things up beyond repair.

            #34758
            Wheels-Of-FireWheels-Of-Fire
            Participant
              @grahamdearsley
              Forumite Points: 4

              I really do like Recuva by the same people who bring us Ccleaner.

              You may have to do a deep scan to get everything back and if you do then be prepared for a session with a duplicate remover because it will recover stuff you deleted months or years ago ?

              #34759
              Dave RiceDave Rice
              Participant
                @ricedg
                Forumite Points: 7

                Don’t forget this is NFS not NTFS.

                #34760
                Wheels-Of-FireWheels-Of-Fire
                Participant
                  @grahamdearsley
                  Forumite Points: 4

                  Still worth a go if you have no backups ?

                  #34761
                  Wheels-Of-FireWheels-Of-Fire
                  Participant
                    @grahamdearsley
                    Forumite Points: 4

                    An example of duplicates it will find is if you ever use save as instead of save. The old versions will be recovered going back many generations.

                    #34764
                    Wheels-Of-FireWheels-Of-Fire
                    Participant
                      @grahamdearsley
                      Forumite Points: 4

                      For those who may not know “save” appends changes to the end of an existing but “save as” writes out a whole new file incorporating the changes. The new file will take up less space than the old one with changes added.

                      #34767
                      Bob WilliamsBob Williams
                      Participant
                        @bullstuff2
                        Forumite Points: 0

                        For those who may not know “save” appends changes to the end of an existing but “save as” writes out a whole new file incorporating the changes. The new file will take up less space than the old one with changes added.

                        +1 – If working on a large and/or complex document, I always use ‘Save As’.

                        When the Thought Police arrive at your door, think -
                        I'm out.

                        #34852
                        D-DanD-Dan
                        Participant
                          @d-dan
                          Forumite Points: 6

                          The problem is the drives were ext4 formatted, which whilst more fully featured generally than, e.g. NTFS, lacks file recovery options. If you permanently delete a file, it’s pretty much gone.

                          On a positive, I’ve tracked down copies of the more important photos, I had most of my music collection on my phone, and so copied back, and a good time to trim my video library (as in, start again), so it’s not as much of a disaster as I originally thought.

                          Arch Linux, on a Ryzen 7 1800X, 32 GB, 5 (yes -5) HDs inc 5 SSDs, 4 RPi 3Bs + 1 RPi 4B - one as an NFS server with two more drives, PiHole (shut yours), Plex server, cloud server, and other random Pi stuff. Nice CoolerMaster case, 2 x NV GTX 1070 8GB, and a whopping 32" AOC 1440P monitor.

                          #34853
                          Dave RiceDave Rice
                          Participant
                            @ricedg
                            Forumite Points: 7

                            Still worth a go if you have no backups ?

                            It’s like saying put petrol in a diesel car as it’s all fuel, it won’t work. Even if you’ve mounted an NFS drive in Windows – which is an arcane art in itself –  as the filing structure is totally different. Recuva has nothing to work with.

                            Dan, can you make use of the snapshot function of NFS? Not something I’ve played with myself. At this level I chicken out and let Synology do it for me.

                            My latest NAS allows me to set up a Windows Domain (not of interest to you) but that also means it has the CPU power to use BTRFS which allows pooling, snapshots and checksums (self healing, no bit rot).  It also de-duplicates automatically, mine is running at about 2:1

                            The Active Backup Suite can deal with just about anything client wise and Hyper Backup (to backup the NAS) can be done to a local USB disk or the Synology C2 Cloud service – 1TB is £70 a year (you can get bigger and smaller plans).

                            All of my important data is now on a Synology NAS and I can just let it get on with it knowing that of there any glitches it will let me know. This doesn’t mean I’ve stopped using or experimenting with Linux, but having been in your situation more than once I decided that I couldn’t be any more.

                            EDIT – My mobile devices all have DS Photo installed to automatically backup photos when they see some WiFi (think your own personal Google Photos). Although they’re set up correctly, last week I had warning emails from my NAS that someone claiming to be me was logging in from Switzerland and then Italy. Nothing was blocked as the authorisations were correct but it’s reassuring to know that the NAS is always on the lookout for unusual activity. The email had a link to take me straight to my login, nice.  I could have set that warning up as an SMS via Clickatell too.

                            #34899
                            D-DanD-Dan
                            Participant
                              @d-dan
                              Forumite Points: 6

                              NFS is a basic NFS share on a Raspberry Pi (now a 4b model which, honestly, is awesome for this), so no fancy imaging. What’s gone is gone. I’d forgotten most of my music was also stored on my phone, so nice recovery from there, and I’ve located copies of my most precious photos. Just Videos, which I can simply for the most part re-rip from DVD.

                              The more troublesome part seems to have been the PIs themselves. They all (apart from one) boot via NFS from the trashed drive, so I’ve been rebuilding the installs to allow each to do what I intend it to do. The one exception boots directly from the external HD (well, it did, it’s now the Pi4 which doesn’t yet support USB boot, so I have /boot on a MicroSD and it hands over to a dedicated partition on the connected drive, with sda2 being the NFS drive)

                              Nextcloud has been a proper PITA, though. No matter how manny times I rsync it to the drive, I get multiple failures on boot. It’s now set up and working from the MicroSD, so at least migrating means I always have a working setup to fall back on.

                              Lesson learned.

                              Arch Linux, on a Ryzen 7 1800X, 32 GB, 5 (yes -5) HDs inc 5 SSDs, 4 RPi 3Bs + 1 RPi 4B - one as an NFS server with two more drives, PiHole (shut yours), Plex server, cloud server, and other random Pi stuff. Nice CoolerMaster case, 2 x NV GTX 1070 8GB, and a whopping 32" AOC 1440P monitor.

                            Viewing 13 posts - 1 through 13 (of 13 total)
                            • You must be logged in to reply to this topic.