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?
umount
needs root privileges normally. Are you sure the device name is correct? Please provide output oflsblk
. – mook765 Nov 25 '20 at 12:43umount
andextundelete
asroot
or usingsudo
? – pLumo Nov 25 '20 at 12:43