[Novalug] excessively persistent files on a stick

Jon LaBadie novalugml@jgcomp.com
Mon Apr 28 14:23:25 EDT 2014


On Mon, Apr 28, 2014 at 09:12:49AM -0400, Derek LaHousse wrote:
> What is the stick file system?  Are you trying these operations as
> root?  (Note, "-f" is the more persuasive flag, not *)  Do you have
> xattrs?  One time, I ran into an issue like this because the file was
> marked "immutable".  http://en.wikipedia.org/wiki/Chattr for more
> details, I don't really remember it enough to add detail.
> 
While check the attributes, also check those of the directory.
Nothing can be removed (or added) to an immutable directory.

jl
> On Mon, Apr 28, 2014 at 8:22 AM, pereira <ninorpereira@gmail.com> wrote:
> >
> > On 04/28/2014 08:04 AM, Jeremy Trimble wrote:
> >
> > The "Read-only file system" error message is telling you that your stick is
> > mounted read-only (which could be either due to your mount options or maybe
> > due to a hardware "lock" switch on the stick).  Double check those and try
> > again.
> >
> > I expect that you'd see the same error for any file on your stick, not just
> > TEK00038.CSV.
> >
> >
> > Actually, not so. I have deleted various other files from this same
> > directory on the stick. I didn't
> > include those commands and their results in my question because I wanted to
> > keep it short.
> > I didn't intend to be misleading.
> >
> > How do you check for a file being locked? I see the proper pattern (rw  r
> > r).
> >
> > Nino
> >
> >
> >
> >
> > On Mon, Apr 28, 2014 at 7:53 AM, pereira <ninorpereira@gmail.com> wrote:
> >>
> >> Hi All,
> >>
> >> here's a mystery that I think I ran across before, but still don't know
> >> how to deal with it properly.
> >>
> >> I have a file on a stick that doesn't want to disappear, essentially
> >> like this:
> >> This is the file:
> >> ls  /media/LIVE/gun-i/
> >> /media/LIVE/gun-i/TEK00038.CSV
> >>
> >> I attempt to remove it:
> >> rm /media/LIVE/gun-i/*
> >> rm: cannot remove `/media/LIVE/gun-i/TEK00038.CSV': Read-only file system
> >>
> >> as per xckd, I remove it with some emphasis:
> >> sudo rm /media/LIVE/guin-i/*
> >> [sudo] password for pereira:
> >> rm: cannot remove `/media/LIVE/guin-i/*': No such file or directory
> >>
> >> Try it next on the directory: who knows whether this works?
> >> sudo rm /media/LIVE/gun-i/*
> >> rm: cannot remove `/media/LIVE/gun-i/TEK00038.CSV': Read-only file system
> >> it doesn't.
> >>
> >> Am I forever chained to this file? or can you remove it with still more
> >> emphasis?
> >>
> >> Thank you,
> >>
> >> Nino
> >>
> >> _______________________________________________
> >> Novalug mailing list
> >> Novalug@calypso.tux.org
> >> http://calypso.tux.org/mailman/listinfo/novalug
> >
> >
> >
> >
> > _______________________________________________
> > Novalug mailing list
> > Novalug@calypso.tux.org
> > http://calypso.tux.org/mailman/listinfo/novalug
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug
>>> End of included message <<<

-- 
Jon H. LaBadie                  novalugml@jgcomp.com
 11226 South Shore Rd		(703) 787-0688 (H)
 Reston, VA  20190		(609) 477-8330 (C)



More information about the Novalug mailing list