Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   delete .Trash (or anything else) in (read-only mounted) USB sticks (http://www.linux-archive.org/ubuntu-user/712290-delete-trash-anything-else-read-only-mounted-usb-sticks.html)

Paul Sladen 10-14-2012 07:40 PM

delete .Trash (or anything else) in (read-only mounted) USB sticks
 
On Fri, 12 Oct 2012, oxy wrote:
> I wanna delete this .Trash from my usb stick:
> Read-only file system

I suspect that the filesystem on the USB stick is corrupted.

In this case, Ubuntu will only allow read-only access, to avoid any
additional damage occuring to what is already on there. This is the
meaning of the 'errors=remount-ro' you will see if you run 'mount' on
its own without any parameters.

You can try to force the USB sticked to be remounted read-write with
something like:

mount -o remount,rw /media/xxx/

and this will then enable the deleting of material stored on the USB
('/.Trash' included). However at this point, if it's a corrupted
filesystem you probably want to acquire a new USB stick and copy over
the important stuff.

-Paul



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

"Kevin O'Gorman" 10-14-2012 09:06 PM

delete .Trash (or anything else) in (read-only mounted) USB sticks
 
On Sun, Oct 14, 2012 at 12:40 PM, Paul Sladen <ubuntu@paul.sladen.org> wrote:
> On Fri, 12 Oct 2012, oxy wrote:
>> I wanna delete this .Trash from my usb stick:
>> Read-only file system
>
> I suspect that the filesystem on the USB stick is corrupted.
>
> In this case, Ubuntu will only allow read-only access, to avoid any
> additional damage occuring to what is already on there. This is the
> meaning of the 'errors=remount-ro' you will see if you run 'mount' on
> its own without any parameters.
>
> You can try to force the USB sticked to be remounted read-write with
> something like:
>
> mount -o remount,rw /media/xxx/
>
> and this will then enable the deleting of material stored on the USB
> ('/.Trash' included). However at this point, if it's a corrupted
> filesystem you probably want to acquire a new USB stick and copy over
> the important stuff.
>
> -Paul

Such corruption need not be fatal. Most such sticks come with Windows
formatting. Windows has repair utilities, and Linux may as well. In
any event, you do not need to trash it. You can just copy stuff off
of it and reformat like any other drive, to vfat, ntfs, ext{2,3,4} or
whatever.

--
Kevin O'Gorman

programmer, n. an organism that transmutes caffeine into software.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Liam Proven 10-15-2012 12:12 AM

delete .Trash (or anything else) in (read-only mounted) USB sticks
 
On 14 October 2012 20:40, Paul Sladen <ubuntu@paul.sladen.org> wrote:
> On Fri, 12 Oct 2012, oxy wrote:
>> I wanna delete this .Trash from my usb stick:
>> Read-only file system
>
> I suspect that the filesystem on the USB stick is corrupted.
>
> In this case, Ubuntu will only allow read-only access, to avoid any
> additional damage occuring to what is already on there. This is the
> meaning of the 'errors=remount-ro' you will see if you run 'mount' on
> its own without any parameters.
>
> You can try to force the USB sticked to be remounted read-write with
> something like:
>
> mount -o remount,rw /media/xxx/
>
> and this will then enable the deleting of material stored on the USB
> ('/.Trash' included). However at this point, if it's a corrupted
> filesystem you probably want to acquire a new USB stick and copy over
> the important stuff.

(I don't know why this has appeared as a new thread, but anyway...)

I think Paul has hit upon a very good point here. This may well be the cause.

What is the device name of the USB device & where is it mounted? Is it
really (according to an earlier message) /media/xxx?

Can you cut & paste the output of the command `mount' here for us?

If we can work out the device that you are mounting, we can give you
instructions for how to unmount it and then run a filesystem check and
repair upon it.

--
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: lproven@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lproven@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 • Cell: +44 7939-087884

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 07:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.