NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
Rogue DirectoryYesterday I created a new directory on my workstation so I could mount a ?--------- ? ? ? ? ? /thresh I tried chown, rm, mv and other commands as root, but I can't do What can I do to either delete it (the only data in it is mounted from Thanks! Hal -- |
Rogue Directory
On Sep 5, 2007, at 10:03 AM, Hal Vaughan wrote:
> Yesterday I created a new directory on my workstation so I could
> mount a
> few NFS mounts on it. As root, I typed "mkdir /thresh" and it worked,
> or seemed to. I realize I didn't actually list it, I just tried
> mounting the imported filesystems on it and it worked. Now when I
> list
> it, I get:
>
> ?--------- ? ? ? ? ? /thresh
>
> I tried chown, rm, mv and other commands as root, but I can't do
> anything with this directory.
>
> What can I do to either delete it (the only data in it is mounted from
> other systems) or make it usable?
You need to unmount the NFS filesystem first, if there's still one
mounted. Removing a directory that has a filesystem mounted on it is
a no-no and I doubt the system will let the delete complete until the
filesystem is unmounted. (Note that if the NFS server has gone away
you may need to use umount -f to get the unmount to complete.)
If that's not the problem, I would boot into single user mode (or
boot a rescue CD) and run fsck on that filesystem. I've seen
directory entries like that on corrupt filesystems.
--
Rogue Directory
On Wednesday 05 September 2007, Hal Vaughan wrote:
> Yesterday I created a new directory on my workstation so I could
> mount a few NFS mounts on it. As root, I typed "mkdir /thresh" and
> it worked, or seemed to. I realize I didn't actually list it, I just
> tried mounting the imported filesystems on it and it worked. Now
> when I list it, I get:
>
> ?--------- ? ? ? ? ? /thresh
>
> I tried chown, rm, mv and other commands as root, but I can't do
> anything with this directory.
>
> What can I do to either delete it (the only data in it is mounted
> from other systems) or make it usable?
Okay, as some have suggested, it was a problem with the nfs mount. When
I umount'ed the share, ownership returned and it's okay.
It turns out the issue seems to be more of a DNS issue, which I've
fixed. (I had switched to DHCP for testing something else and a typo
when I switched back caused the problem.)
Hal