Linux deleted files

Discussion in 'Technical Corner' started by flhrci, Nov 3, 2019.

  1. flhrci

    flhrci Final Approach

    Joined:
    Jan 26, 2007
    Messages:
    5,165
    Location:
    Ashville, OH
    Display Name:

    Display name:
    David
    Is there any way to recover files that were deleted? Nothing big here. Just a few tv shows that got deleted off my NAS by accident. If I can't do it, no big deal.
     
  2. RJM62

    RJM62 Touchdown! Greaser!

    Joined:
    Jun 15, 2007
    Messages:
    12,799
    Display Name:

    Display name:
    Geek On The Hill
    I haven't done it in quite a while, but I think the photorec tool in Testdisk would be a good place to start.

    Rich
     
  3. flhrci

    flhrci Final Approach

    Joined:
    Jan 26, 2007
    Messages:
    5,165
    Location:
    Ashville, OH
    Display Name:

    Display name:
    David
    Something to try. Thank you!
     
  4. flhrci

    flhrci Final Approach

    Joined:
    Jan 26, 2007
    Messages:
    5,165
    Location:
    Ashville, OH
    Display Name:

    Display name:
    David
    I was able to get that program running. 67 hours till completion. lol

    Thank you!
     
    RJM62 likes this.
  5. asicer

    asicer En-Route

    Joined:
    Jan 1, 2015
    Messages:
    4,387
    Display Name:

    Display name:
    asicer
    Next time do `shred -u` ;)
     
  6. flhrci

    flhrci Final Approach

    Joined:
    Jan 26, 2007
    Messages:
    5,165
    Location:
    Ashville, OH
    Display Name:

    Display name:
    David
    me thinks not. LOL it was an accident anyway.
     
  7. murphey

    murphey Final Approach PoA Supporter

    Joined:
    Aug 21, 2008
    Messages:
    8,724
    Location:
    Colorado
    Display Name:

    Display name:
    murphey
    first thing I do with any new system (linux)

    alias rm "rm -i"

    Doesn't solve all problems, but it's a first try to offset my stupidity.
     
  8. flhrci

    flhrci Final Approach

    Joined:
    Jan 26, 2007
    Messages:
    5,165
    Location:
    Ashville, OH
    Display Name:

    Display name:
    David
    A bunch of programs disappeared from my DVR program on my NAS. I deleted a whole series and later on I noticed another series was completely gone. I do not know if I did it accidentally or if the program did it accidentally. No big deal but I was not using the command line, but a GUI app remotely.
     
  9. asicer

    asicer En-Route

    Joined:
    Jan 1, 2015
    Messages:
    4,387
    Display Name:

    Display name:
    asicer
    NetApp and/or .snapshot directory is a bit more thorough.
    Surprised the DVR program doesn't have a scheduled delete feature. Usually programs of that ilk mark programs for deletion and then does it for real only when space goes below a set threshold.
     
  10. schmookeeg

    schmookeeg Cleared for Takeoff

    Joined:
    Nov 6, 2008
    Messages:
    1,217
    Location:
    Hipsterdelphia PDX
    Display Name:

    Display name:
    Mike Brannigan
    67 hours. Eesh.

    Far quicker to download new porn^H^H^H^HTV Episodes
     
    RJM62 likes this.
  11. flhrci

    flhrci Final Approach

    Joined:
    Jan 26, 2007
    Messages:
    5,165
    Location:
    Ashville, OH
    Display Name:

    Display name:
    David
    LOL

    I fixed the time issue last night. I figured out how to get the program to only find deleted .ts files, not everything. It was done this morning and only found 47 GB in fragments. Oh well, no big deal and I learnt more about Linux in the process.

    David
     
    schmookeeg likes this.