Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have two directory with same name of "Unread".

ls -l
drwx------ 1 vg vg     200 Aug  4 21:57 Unread
drwx------ 1 vg vg     200 Aug  4 21:57 Unread

when I rm/mv the directory named "Unread", one is affected and the other gets this attributes:

rm -r Unread
ls -l
d????????? ? ?  ?        ?            ? Unread

any help would be greatly appreciated.

share|improve this question
1  
Something is wrong here, since two files/folders cannot have the same name in the same dirctory. What is the current state of your system(what is the current permission parameter)? –  Jobin Aug 4 '13 at 17:46
    
what do you mean by permission parameter? I tried super user permission with no success. can it be a filesystem corruption? –  V G Aug 4 '13 at 18:09
    
I meant the permissions, which I now assume are "?????????". –  Jobin Aug 5 '13 at 5:20
add comment

1 Answer

Try this.

sudo chmod -R 777 Unrea*

then

rm -R Unrea*.

share|improve this answer
    
This would delete not only the "duplicate" folder but also the "original" one. –  Jobin Aug 4 '13 at 17:57
    
rm: cannot remove `Unread': No such file or directory (One directory removed but the other remained with ??? attributes.) –  V G Aug 4 '13 at 18:05
    
Jobin, it doesn't matter to remove both directories! it is seemed that one is related to the other one. when I remove one, the other gets corrupted. and when I try to remove both at the same time, again one remains!! –  V G Aug 4 '13 at 18:13
1  
You had better boot from a LiveCD and check File System using fsck for errors. –  Babak Aug 4 '13 at 18:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.