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

MarianD
  • 1,008
  • 2
  • 10
  • 15
Wings
  • 117
  • 2
  • 19

2 Answers2

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.

pLumo
  • 26,204
  • 2
  • 57
  • 87
  • I have mount point as: / ; and using $ sudo rm -rf /.trashes/* gives nothing. – Wings Jan 05 '17 at 16:04
  • I mean the mountpoint of the external drive .... something like`/media/username/hdd/`. Find out using `lsblk` – pLumo Jan 05 '17 at 16:05
  • So a `right click` won't delete ? – George Udosen Jan 05 '17 at 16:06
  • @ RoVo, plz check the description for the output of: sudo rm -rf /path/to/external-drive-mountpoint/.Trashes/* – Wings Jan 05 '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 05 '17 at 16:22
  • Thanks @RoVo. I searched for 'read only file system error' and found an answer [here](http://askubuntu.com/questions/56852/cant-delete-edit-files-on-my-pendrive) by [Allan](http://askubuntu.com/users/6450/allan). His edit worked for me. – Wings Jan 05 '17 at 16:55
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.

Wings
  • 117
  • 2
  • 19