Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 30289  / 1 Year ago, thu, march 9, 2023, 8:06:10

I'm trying to delete the .Trash-1000 from my pen drive, but with



sudo rm -rf .Trash-1000/


I got



rm: cannot remove `.Trash-1000/expunged/2660089871/apps.log': Read-only file system


(one line of this for each file within .Trash-1000/)



I found this similar question, but I still got the same result after running:



sudo mount -o remount,rw '/media/SGTL MSCN'
sudo rm -rf .Trash-1000


So, any idea how to remove this folder (or its content)?



By the way, I need to remove it because I'm using the pen drive to test a software, and there's a file there that should not be found in the pen drive.



--update



I thought it was corrupted, like Allan pointed, but the same just happened to another new pen drive I plugged here.. After use it on VMWare (in a new OS that still don't have a name), and go back to Ubuntu, I can no more edit it's files, nither make a filesystem check or format it.


More From » trash

 Answers
5

If I were to guess it sounds to me like your Pendrive is corrupted.
the simple solution is to back-up and reformat however if you want to find out if it is really corrupted or not which could be a sign of a failing flash drive use fsck



first back-up your pendrive/card then find out what mount point its under eg. /dev/sdb , /dev/sdc etc.



You can find this information in disk utility under the heading Device:



in the screen shot it is /dev/sdb1



You can then modify these commands and run each



sudo umount /media/disk

sudo fsck -favVr /dev/sdb1


Alternatively you can click "check file system" after unmounting the drive in disk utility



Disk Utility



Edit:



I have found another solution to this problem the steps are as follows




  1. Mount the USB Drive you are having the problem with

  2. Open Disk Utility as root open a terminal and enter gksu palimpsest

  3. Unmount the Drive and remove

  4. Plug it back in



Hopefully this will work if all else has failed


[#43895] Friday, March 10, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
diffeah

Total Points: 78
Total Questions: 130
Total Answers: 98

Location: Peru
Member since Fri, Oct 14, 2022
2 Years ago
;