https://www.digitalocean.com/community/tutorials/photorec-recover-deleted-files-in-linux-ubuntu Install testdisk sudo apt -y install testdisk Then run sudo photorec Select your harddrive, and follow the steps