I do some photography, and I was trying to copy all of my recent raws (.NEF files, since I use a Nikon camera) from my SD card to an HDD that I have mounted (formatted in NTFS) using the basic copy/paste function in Nautilus. During the file transfer, my system crashed for some unknown reason (this has been happening occasionally recently, although I don't believe the mounted HDD is at fault). When the system rebooted, I attempted to continue the file transfer, but it kept running into an error. I then browsed to the destination folder in Nautilus, and it simply said "Folder is Empty." Concerned, I went to the command line and received this output from ls
:
username@localhost:/path_to_main_folder/destination_directory$ ls
ls: reading directory '.': Input/output error
Switching to the main folder, I got this output from ls -l
:
username@localhost:/path_to_main_folder$ ll | grep destination_directory
drwxrwxrwx 1 username username 1036288 Apr 14 15:27 destination_directory/
So, strangely, ls
sees that the destination directory must have sizeable contents, but can't actually see what's inside the directory. Similarly, cp
also spits out an input/output error. The HDD seems otherwise fine - all other files are perfectly intact, it's just that one folder.
Is there any way I can potentially recover this data from this broken directory?