USB Storage - deleting files
Dustin Breese
dustin.breese at gmail.com
Wed Sep 17 13:21:42 UTC 2008
Your device was probably marked as "unclean" when it was used last.
You might be able to perform a filesystem check to fix the "unclean"
bit that was flipped:
sudo fsck /dev/sdb1
Just make sure to "unmount" it before next time.
You should also see dmesg logs if it was marked as unclean. I.e.,
something like:
[41743.408663] EXT2-fs warning: mounting unchecked fs, running e2fsck
is recommended
-Dustin
On Tue, Sep 16, 2008 at 11:30 PM, Chris Jeffries <chris at candm.org.uk> wrote:
> On Tue, 2008-09-16 at 22:23 +0100, ubuntu-users-request at lists.ubuntu.com
> wrote:
>> Re: USB Storage - deleting files
>
> Thanks for the comments guys. All are worth remembering. However I would
> still like to know how the device got to be read-only, and how
> connecting it to a Windows PC cleared the fault.
>
> In brief, after various (inappropriate) attempts to delete using
> Nautilus (that bit is now SOLVED - Thanks guys) - the USB mass storage
> device got flagged as being read-only.
>
> For example rm on Ubuntu was giving ´Device is read-only' messages.
> After trying various changes of ownership, and permissions with no
> progress, I unplugged the device, plugged it into a Windows PC deletd
> the trash files and then plugged it back into the UBUNTU PC (During this
> time I left UBUNTU running). When I plugged it back into the UBUNTU
> machine, the problem had gone away. The device was now read/writable.
>
> At the moment I cannot recreate the read only effect, but next time I
> do, I will try unplugging the device from UBUNTU PC and then plugging it
> back in (without going to a MS Windows PC), in case it was that that
> cleared it, and not the plugging into MS Windows.
>
> If I get any news on that front I will report. In the meantime, if
> anyone has any idea HOW the device might have become read only, I would
> love to know - and also whether there might have been a way to make it
> read write without resorting to MS (for example, I did not tinker with
> the dev attributes, only the media ones.)
>
> Chris.
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list