Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I created a mess with symlinks that I cannot clear now:
- moved a directory from /home/user1/somedir to /largestoragearea/somedir
- created a symlink to its old place (symlinked /largestoragearea/somedir to /home/user1/somedir), which was a big mistake, since /home is also a symlink to /usr/home on that machine
- also symlinked /largestoragearea/somedir to /home/user2/somedir (this was also a mistake of the same sort)
- when seeing the mistake I successfully removed one of the symlinks (/home/user2/somedir)
But now I am still faced with the folowing problems:
- /home/user1/somedir seems to be not existing (although it was never deleted)
- listing /largestoragearea shows that there is a symlink (/home/user1/somedir) pointing to /largestoragearea/somedir
- /home/user1/somedir cannot be removed (no such file error)
- the ownership of /largestoragearea/somedir can no longer be changed (by root!), it remains owned by the person who is the owner of the (not existing?) symlink /home/user1/somedir
So, how can I clear this mess up?
I.e. how to remove the symlink (/home/user1/somedir), that seems to be not existing on one hand (when trying to list or remove it), but seems to exist on the other hand (since it produces strange side effects as if it was existing).
Used fsck /largestoragearea and now an other strange thing occured:
It seemed to correct an error, but the only thing that happened is that the semi-existing symlink now points to /largestoragearea/somedir/somedir (previously it pointed to /largestoragearea/somedir).
It is not reiserfs (I use an other kind of unix there that must not be named at this forum).
The problem seems to be solved in the meantime: since the semi-existing symlink pointed to a surplus directory (not existing before) after the fsck, I risked to delete that directory and I succeeded.