Re: Can't remove or change a directory [corrected]



Robert P. J. Day wrote:
On Thu, 15 Nov 2007, Gijs wrote:


Les wrote:

On Thu, 2007-11-15 at 11:44 -0800, Les wrote:


On Thu, 2007-11-15 at 13:49 -0500, James Pifer wrote:


I have an fc7 box that I'm trying to remove a directory on. I don't
remember why I was playing with the directory permissions in the first
place, but I just want to get rid of it.

the directory is in /root and looks like this:
dr-xr-xr-x 1 root root 2048 2007-11-09 15:35 tmp

I can't do anything with it. Any file change I try to make, chmod, rm,
mv, etc I get this error like:
chmod: changing permissions of `tmp': Read-only file system

How can I get rid of this directory? I've been googling in circles and
can't find a solution.


if, indeed, you're talking about the directory /root/tmp, then what
you're describing is just strange. typically, /root is in the
top-level root directory, and that's the filesystem that would be
relevant here. i can't see how the root filesystem could currently be
mounted read-only.

what's the output of "mount"? and what happens if you try to do some
trivial file operation in /root, like just "touch fubar"?

and, finally, it really could be just a weird bit of corruption.
fairly recently, i had a similar issue regarding the mount attributes
of a filesystem that just didn't make sense, and i couldn't fix it no
matter what i did. rebooting finally resolved it, but that's my
solution of last resort.

rday

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================


Qoute :

You were right. Had an iso mounted to that dir, duh!!!!

All is good now.


:)
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Relevant Pages

  • Re: Cant remove or change a directory [corrected]
    ... remember why I was playing with the directory permissions in the first ... How can I get rid of this directory? ... and that's the filesystem that would be ... i had a similar issue regarding the mount attributes ...
    (Fedora)
  • Re: Cant remove or change a directory [corrected]
    ... remember why I was playing with the directory permissions in the first ... How can I get rid of this directory? ... Since root owns the directory, you have to be root to change it. ... be aware that tmp is a system directory. ...
    (Fedora)
  • Re: Cant remove or change a directory
    ... remember why I was playing with the directory permissions in the first ... Any file change I try to make, chmod, rm, ... How can I get rid of this directory? ... What is the output of the mount command? ...
    (Fedora)
  • Re: Cant remove or change a directory
    ... remember why I was playing with the directory permissions in the first ... Any file change I try to make, chmod, rm, ... How can I get rid of this directory? ... What is the output of the mount command? ...
    (Fedora)
  • Several Math Books For Sale
    ... I'm willing to ship out the books at the buyer's expense. ... I need to get rid of these ASAP ... Introduction to Real Variable Theory ... Robert T. Smith & Roland B. Minton ...
    (sci.math)

Loading