Can't Delete Folder

Asked by Philip Paquette

philip@paquette-laptop:~$ cd /media/special/.Trash-philip/

philip@paquette-laptop:/media/special/.Trash-philip$ ls -lh
total 0
drwxr-xr-x 2 philip philip 144 2007-11-04 18:58 folder0
drwxr-xr-x 3 philip philip 80 2007-11-04 18:58 folder1
drwxr-xr-x 2 philip philip 176 2007-11-04 18:58 folder2
drwxr-xr-x 3 philip philip 80 2007-11-04 18:58 folder3
drwxr-xr-x 4 philip philip 112 2007-11-04 18:58 folder4

philip@paquette-laptop:/media/special/.Trash-philip$ rm -R folder0/
rm: cannot remove directory `folder0/': Directory not empty

philip@paquette-laptop:/media/special/.Trash-philip$ cd folder0/

philip@paquette-laptop:/media/special/.Trash-philip/folder0$ ls -lhA
total 0

philip@paquette-laptop:/media/special/.Trash-philip/folder0$ cd ..

philip@paquette-laptop:/media/special/.Trash-philip$ rm -R folder0/*
rm: cannot remove `folder0/*': No such file or directory

philip@paquette-laptop:/media/special/.Trash-philip$ sudo rm -R folder0/
rm: cannot remove directory `folder0/': Permission denied

philip@paquette-laptop:/media/special/.Trash-philip$ sudo rmdir folder0/
rmdir: folder0/: Permission denied

philip@paquette-laptop:/media/special/.Trash-philip$ sudo chmod 777 folder0/
chmod: cannot access `folder0/': Permission denied

philip@paquette-laptop:/media/special/.Trash-philip$

Any idea?
How the folders got broken?
I had 4 folders:
server1.site.com
server2.site.com
server3.site.com
server4.site.com

I created folder "server.site.com", and then issued:
"mv server1.site.com/* server.site.com/"
"mv server2.site.com/* server.site.com/"

the 1st one worked, the second one complained about a recursive folder (you can't move because folder will be parent of itself) or something like that. Completed server3 and server4 by hand (via nautilus). Now folder[01234] where childs of server2.site.com, their content wasn't moved to server.site.com, but they seem to be empty...

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Philip Paquette
Solved:
Last query:
Last reply:
Revision history for this message
Philip Paquette (pcpaquette) said :
#1

Workaround:

> ls -il
to find the inode number of the folder
then navigate to the encrypted directory on the underlying fs (reiserfs in my case) and delete the encrypted directory...

The bug is caused because encfs doesn't see any files with "f0", but the files are actually there in the encrypted folder on the underlying fs...