Recovering accidentally deleted files

crskhr

I accidentally deleted a file from my laptop. I'm using Fedora. Is it possible to recover the file?

Steven D

I would advise against immediately installing some utility. Basically your biggest enemy here are disk writes. You want to avoid them at all costs right now.

Your best bet is an auto-backup created by your editor--if it exists. If not, I would try the following trick using grep if you remember some unique string in your .tex file:

$sudo grep -i -a -B100 -A100 'string' /dev/sda1 > file.txt

Replace /dev/sda1 with the device that the file was on and replace 'string' with the unique string in your file. This could take some time. But basically, what this does is it searches for the string on the device and then returns 100 lines before and after that line and puts it in file.txt. If you need more lines returned just adjust the -B and -A options as appropriate. You might get a bunch of extra garbage returned, but you should be able to get your text back.

Good luck.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Accidentally deleted ~/.config directory

From Dev

Accidentally deleted tmp folder

From Dev

Accidentally deleted 'sudo'

From Dev

recovering deleted data sources ssrs-2008

From Dev

Accidentally deleted efi partition

From Dev

Accidentally deleted tmp folder

From Dev

Accidentally deleted 'sudo'

From Dev

How do I recover or "undelete" files that I accidentally deleted?

From Dev

Recovering a accidently deleted file in Ubuntu

From Dev

Accidentally deleted ICEauthority and Xauthority files

From Dev

accidentally deleted partitions

From Dev

Folder from which to restore accidentally deleted files

From Dev

Recovering Deleted Data onto the Same Drive

From Dev

Accidentally deleted all files by rm - rf /* ... In my macbook pro

From Dev

Recovering deleted/removed .class files from Java project

From Dev

Recovering deleted files from a ghost image

From Dev

Accidentally deleted all files older than 7 days

From Dev

Accidentally deleted all kernel files from /boot

From Dev

Accidentally deleted lock folder

From Dev

Accidentally deleted /usr/include. What can I do to reinstall the files that were in that directory?

From Dev

Probability of recovering files - 100%

From Dev

Accidentally deleted ~/.config directory

From Dev

Accidentally deleted everything with GParted

From Dev

Accidentally deleted /usr directory

From Dev

Recovering files on CentOS 7

From Dev

How to add back accidentally deleted pod files that are residing inside the pod folder?

From Dev

Recover files that were added to git, not committed and then accidentally deleted by git reset --hard

From Dev

Recover image files accidentally deleted from Google Cloud bucket

From Dev

Recovering Deleted Record From Backup

Related Related

  1. 1

    Accidentally deleted ~/.config directory

  2. 2

    Accidentally deleted tmp folder

  3. 3

    Accidentally deleted 'sudo'

  4. 4

    recovering deleted data sources ssrs-2008

  5. 5

    Accidentally deleted efi partition

  6. 6

    Accidentally deleted tmp folder

  7. 7

    Accidentally deleted 'sudo'

  8. 8

    How do I recover or "undelete" files that I accidentally deleted?

  9. 9

    Recovering a accidently deleted file in Ubuntu

  10. 10

    Accidentally deleted ICEauthority and Xauthority files

  11. 11

    accidentally deleted partitions

  12. 12

    Folder from which to restore accidentally deleted files

  13. 13

    Recovering Deleted Data onto the Same Drive

  14. 14

    Accidentally deleted all files by rm - rf /* ... In my macbook pro

  15. 15

    Recovering deleted/removed .class files from Java project

  16. 16

    Recovering deleted files from a ghost image

  17. 17

    Accidentally deleted all files older than 7 days

  18. 18

    Accidentally deleted all kernel files from /boot

  19. 19

    Accidentally deleted lock folder

  20. 20

    Accidentally deleted /usr/include. What can I do to reinstall the files that were in that directory?

  21. 21

    Probability of recovering files - 100%

  22. 22

    Accidentally deleted ~/.config directory

  23. 23

    Accidentally deleted everything with GParted

  24. 24

    Accidentally deleted /usr directory

  25. 25

    Recovering files on CentOS 7

  26. 26

    How to add back accidentally deleted pod files that are residing inside the pod folder?

  27. 27

    Recover files that were added to git, not committed and then accidentally deleted by git reset --hard

  28. 28

    Recover image files accidentally deleted from Google Cloud bucket

  29. 29

    Recovering Deleted Record From Backup

HotTag

Archive