1

so I accidentally deleted a dirrectory using "rm -rf". I am trying to recover is using extundelete. So far I have done these:

$ sudo umount -l /dev/sda5
$ extundelete --restore-directory {directory_path} /dev/sda5

When I enter the last command it says:

extundelete: No such file or directory /dev/sda5
extundelete: No such file or directory when trying to open filesystem /dev/sda5

Any idea why?

  • 2
    umount needs root privileges normally. Are you sure the device name is correct? Please provide output of lsblk. – mook765 Nov 25 '20 at 12:43
  • 2
    did you run umount and extundelete as root or using sudo ? – pLumo Nov 25 '20 at 12:43
  • You can also explore using the related tools TestDisk and PhotoRec. – sudodus Nov 25 '20 at 13:22
  • I did with "sudo umount" but after that sudo did not work. thus I only did "extundelete" – pigwidgeon Nov 25 '20 at 13:33
  • Answers in this link may help, particularly if you do not turn off the computer. Otherwise there is a risk, that things are lost; maybe you can save some of the removed files using the data that is still there on the drive. Anyway, if you turn off the computer, boot from a live drive and avoid mounting the affected drive. – sudodus Nov 25 '20 at 13:42

0 Answers0