Sunday, April 28, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 6915  / 1 Year ago, mon, december 26, 2022, 6:42:56

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


More From » command-line

 Answers
5

Errr... You could always try overwriting it in the Windows installation... smiley



Note - the reason it would not of wanted to delete is the hardlink in the iTunes folder - I would of thought deleting that, and then the main Java file would of worked... Windows probably just ignored all this and deleted it, which might cause a few problems with the one in the iTunes folder...


[#27903] Tuesday, December 27, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wenceslockro

Total Points: 494
Total Questions: 127
Total Answers: 97

Location: Chad
Member since Mon, Dec 5, 2022
1 Year ago
;