So we copied some photos in a directory across to a NTFS partition last night, and they were viewable from ubuntu.
Today the directory is not accessible from Windows, and when we booted back into linux, the directory appears as a file and Nautilus thinks its a gzip archive.
ls -la gives the following:
-rw------- 1 kim kim 16769 Jun 17 22:47 DirectoryName
My assumption is that the "directory" and its pointers to the other files are still there, it just has the wrong attributes.
sudo chmod a+rwx DirectoryName
But this didn't have any affect.
Any ideas how I can convince my directory that its a directory again??
Or otherwise recover the files that are now orphaned on the drive?
update and solution
So I went home last night, tried to open the directory in Windows but it is still represented as a file in explorer. So I booted back into ubuntu to run
And the "file" is now gone. Not even appearing via ls anymore.
So we took a different tack, and recovered the files from the SD card using this excellent tool.
Thanks all for your help anyway