This is a weird one. Nautilus suddenly stopped showing any files in the Desktop folder of my Windows 7 partition. It correctly shows files in all other folders. What's even stranger is that if I do
cd /windows/Users/myuser/Desktop ls -l
from the terminal, all the files show, no problem.
Just noticed this part of the output of ls, I think this is the culprit:
drwxrwx--- 1 root plugdev 4096 2012-01-04 00:26 MyDirectory1 d????????? ? ? ? ? ? MyDirectory2
I had copied 'MyDirectory2' from my Linux partition to Windows while running Ubuntu. I know linux NTFS support is not as good as the native Windows support, so may be something went wrong. I can't delete this file. Trying to delete it (with 'rm -r MyDirectory2') gives:
rm: cannot remove `MyDirectory2': Input/output error