I run ubuntu as a dual boot along with Windows and last time I was on ubuntu, I created a folder (Java) in the following directory. This time, when I logged on, I was unable to navigate into the folder, and in nautilus the folder appears with the image of binary.
I don't really mind losing the data that was in the folder, so I'm just trying to delete it so I can make a new one. However, each time I try deleting, moving, or performing any other operation on the 'folder' it gives me a message like in the following:
user@user:/media/user/DATA/Personal/Program$ ls -l
total 788888
drwxrwxrwx 1 root root 0 Aug 17 19:30 Github
-rwxrwxrwx 2 root root 269367 Dec 19 01:30 Java
drwxrwxrwx 1 root root 4096 May 14 2013 Learning
-rwxrwxrwx 2 root root 17929538 Aug 11 2012 mediawiki-1.19.1.tar.gz
-rwxrwxrwx 1 root root 5810 Nov 30 23:55 mtee.zip
drwxrwxrwx 1 root root 4096 Sep 30 23:41 Projects
-rwxrwxrwx 1 root root 0 Dec 19 15:15 Text-1.txt
-rwxrwxrwx 1 root root 782 May 23 2012 ToRuby.lnk
-rwxrwxrwx 2 root root 789884928 Mar 16 2013 ubuntu-12.10-desktop-i386.iso
drwxrwxrwx 1 root root 0 Mar 3 2013 Utility
-rwxrwxrwx 2 root root 5435945 Jul 31 19:20 wordpress-3.5.2.zip
user@user:/media/user/DATA/Personal/Program$ rm Java
rm: cannot remove ‘Java’: No such file or directory
user@user:/media/user/DATA/Personal/Program$
Edit: When I try to do any operations on 'Java' in nautilus, I get a "Error removing file: No such file or directory" message as well.
Edit2: I attempted to delete using srm, and received a new error: "Error: File Java - file is hardlinked 1 time(s), skipping!"
Edit 3: I found the second hardlink was in my iTunes library file.
Resolved: I ended up trying to create a new folder in Windows and had absolutely no problems. Rebooted in ubuntu and everything is hunky dory
sudo rm java
sudo rm J{tab}
and make it autocomplete. It will pick up any specials chars that way.Java
?