

You will only get the content of the file, not the file names. mnt/recover/disk is the path where files will be restored You can find that using the fdisk command. dev/xvdf1 as the actual volume that has /home/username data. I tried to restore all file types, so used photorec /debug /log /d /mnt/recover/disk /cmd /dev/xvdf1 partition_none,options,mode_ext2,fileopt,everything,enable,search


Let's say you lost the folder in /home/username/webroot, then we can try restoring the whole volume. In Ubuntu/Debian-based system, you can install using apt-get install testdisk I stumbled upon "extundelete" but that could not restore any important files. So we had to restore it though initially, it looked gloomy. It happened to us, that one of our team members on the way to remove a symbolic link, accidentally deleted a web folder using rm -rf, though we normally maintain a GIT repo, for this temporary project, we did not. There are odd times when we would have accidentally deleted some important folders without having any actual backup.
