1

I am not able to delete a folder from my trash. It shows:

enter image description here

I have followed the following: Why can't I delete a folder in my trash?

But, it did not help. My deleted folder shows up in 'Trash' folder not in ~/.local/share/Trash/. I have Ubuntu 17.04 (development branch) in my machine.

Output of sudo rm -rf ~/.local/share/Trash/* is:

Enter image description here

Output of sudo rm -rf /media/wings/B6A411BAA4117E55/.Trash-1000/ is:

Enter image description here

8
  • Please tell us the output of sudo rm -rf ~/.local/share/Trash/* – pLumo Jan 5 '17 at 15:57
  • It's nothing: blank – Wings Jan 5 '17 at 16:00
  • Did it delete the file in question ? – George Udosen Jan 5 '17 at 16:05
  • Please copy any output and paste into your post, no text in image allowed, or is discouraged. – George Udosen Jan 5 '17 at 16:17
  • And that command [sudo rm -rf /media/wings/B6A411BAA4117E55/.Trash-1000/] you ran should end in a file name I don't see one – George Udosen Jan 5 '17 at 16:18
2

The description in that article "Why can't I delete a folder in my trash?" works only for your local Trash. If the file you want to delete is on an external drive, you need to type

sudo rm -rf /path/to/external-drive-mountpoint/.Trashes/*

replace the path accordingly.

Update

According to the error messages, the problem exists because your external drive is mounted read only. There are many questions around here related to that problem.

6
  • I have mount point as: / ; and using $ sudo rm -rf /.trashes/* gives nothing. – Wings Jan 5 '17 at 16:04
  • I mean the mountpoint of the external drive .... something like/media/username/hdd/. Find out using lsblk – pLumo Jan 5 '17 at 16:05
  • So a right click won't delete ? – George Udosen Jan 5 '17 at 16:06
  • @ RoVo, plz check the description for the output of: sudo rm -rf /path/to/external-drive-mountpoint/.Trashes/* – Wings Jan 5 '17 at 16:14
  • Okay then it's a different problem. Search for that read only file system error here, there are many questions to this problem – pLumo Jan 5 '17 at 16:22
0

I needed to check disk for errors but fsck did not work too. Then I used my Windows to

  • check for errors in that drive, and
  • repair.

Did reboot and everything was ok.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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