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 am a user of Xubuntu and I have a problem with it. When I delete any files outside home they can't be deleted and instead of that, a message appears to me and says "Unable to find or create trash directory". I hope I find a solution for this problem, as I can't get rid of useless files. Thanks.

share|improve this question
    
It is probably a mounting problem. Please post the line from /etc/fstab where the directory resides. –  Rinzwind Mar 1 '13 at 19:43
    
I have no folder in etc called fstab but I have fstab.d –  حسن الشناوي Mar 5 '13 at 19:27
add comment

3 Answers

up vote 2 down vote accepted

If you have touched your /etc/fstab then you have to fix it. Your lines there must be something like /dev/sdc1 /media/Data ntfs-3g defaults,uid=1000,locale=en_US.utf8 0 2.

Note about uid=1000

share|improve this answer
    
I have no folder in etc called fstab but I have fstab.d –  حسن الشناوي Mar 5 '13 at 19:27
    
fstab is not a folder, it is a file –  Mostafa Shahverdy Mar 6 '13 at 1:14
    
Thanks a lot , it works very well now –  حسن الشناوي Jul 15 '13 at 19:58
    
The trick with uid=1000 (my user id on a single user system) works. But does that not mean that if there is another user, she/he will create all files with myself as the owner? There must be some other solution... –  ubuplex Jan 28 at 20:47
add comment

This happens if you delete the trash directory. If you are the only user in the system, it is a hidden directory named ".Trash-1000" in each partition (HDD or removable device). This must contain three directories: 1. "expunged" 2. "files" 3. "info"

I would suggest copying the directory from another partition and deleting the files in it.

I had the same problem and it was solved this way. Your case may be different.

share|improve this answer
    
That explains why it can't "find" the trash directory. Do you have any idea why it wouldn't be able to "create" it? (I am not saying this answer is wrong; I think it is right. I'm just wondering if you have any insight into this.) –  Eliah Kagan Mar 23 '13 at 17:46
    
I really don't know and I have the same question. –  MakisH Mar 23 '13 at 17:50
add comment

My tip is to you give permissions to the trash directory, try typing chmod 777 trash in the explorer (of folders in the case)

share|improve this answer
    
Never advise to give 777 permissions to anything - it is simply not useful. –  guntbert Dec 4 '13 at 16:52
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.