delete .Trash in USB sticks
Murat D. Kadirov
md.kadirov at gmail.com
Sun Oct 14 07:46:44 UTC 2012
On 14.10.2012 12:42, Robert Holtzman wrote:
> On Sat, Oct 13, 2012 at 10:29:26AM +0600, Murat D. Kadirov wrote:
>> On 13.10.2012 01:58, Robert Holtzman wrote:
>>> On Fri, Oct 12, 2012 at 11:32:25PM +0600, Murat D. Kadirov wrote:
>>>> On 12.10.2012 20:36, oxy wrote:
>>>>> Hi all,
>>>>>
>>>>> I wanna delete this .Trash from my usb stick:
>>>>>
>>>>>> rm -rf /media/xxx/.Trash-1000
>>>>> rm: cannot remove `/media/xxxx/.Trash-1000/files/.Trash-abc/def (copy)/ghi':
>>>>> Read-only file system
>>>>>> chmod a+rw /media/xxxx
>>>>>> rm -rf /media/xxx/.Trash-1000
>>>>> rm: cannot remove `/media/xxxx/.Trash-1000/files/.Trash-abc/def (copy)/ghi':
>>>>> Read-only file system
>>>>>
>>>>> How to do that?
>>>>>
>>>>> thx ...
>>>>>
>>>> You need append -R (recursively) option
>>> Did You miss the part of the OP's message that said "Read-only file
>>> system"?
>> I may be wrong, but this alert also prompt because of insufficient
>> rights add/delete files on filesystem,
>> not only because read-only mounting.
> You may be right but I must say I have never heard that. Attribute?
Yes, You're right, I'm wrong:
$ mount | grep sdb1
/dev/sdb1 on /mnt type vfat (ro)
$ rm -rf /mnt/test/
rm: cannot remove `/mnt/test': Read-only file system
$ sudo rm -rf /mnt/test/
rm: cannot remove `/mnt/test': Read-only file system
Remount rw.
$ mount | grep sdb1
/dev/sdb1 on /mnt type vfat (rw)
$ rm -rf /mnt/test/
rm: cannot remove `/mnt/test': Permission denied
Sorry, mea culpa.
--
Murat D. Kadirov
PGP fingerprint: 3081 EBFA 5CB9 BD24 4DB6 76EE 1B97 0A0E CEC0 6AA0
* English - detected
* English
* Russian
* English
* Russian
<javascript:void(0);>
More information about the ubuntu-users
mailing list