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.
Best Answer
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
Alternatively you can click "check file system" after unmounting the drive in disk utility
Edit:
I have found another solution to this problem the steps are as follows
gksu palimpsest
Hopefully this will work if all else has failed