Bug in mount bind: files turn into directories
I'm sorry for this lengthy post, but the problem is complex and hard to explain. In short: Linux sometimes thinks that everything in directories mounted with the bind option is a directory! Hopefully someone here can tell me what's going on or help me debug the problem.
I'm having a bizarre problem on my Ubuntu Karmic 64-bit workstation: a number of directories mounted using the "bind" option has suddenly started to show every file in them with the same permissions as the directory itself, including the fact that it is a directory! In other words, Linux suddenly thinks all the files in my bound directories are directories!
Here's a part of my /etc/fstab:
But then suddenly all hell broke loose. Programs started going haywire. It turned out that this was because Linux had suddenly decided that all the files in my directories were now directories! As you can imagine my IDE went berserk. To illustrate, here's (the first few lines of) the result of an "ls -al" in /home/pepijn_remote/Documents:
When it happens it plays havoc with my system, since any process which processes directories recursively (such as trackerd, the search indexer) gets stuck in an endless loop, consuming more and more resources.
It gets even more bizarre: not only does Linux think every file is a directory, but it even thinks non-existent files are directories!!! I can "cd" to a non-existent directory completely successfully as far as the shell is concerned, it even thinks I'm in the directory. Here's a snippet I copy and pasted from my terminal window:
One program which seems to trigger the bug very often is Filezilla. For some reason when I start that the problem will almost always immediately occur. But not every time, and it also sometimes happens when Filezilla is not running.
I've filed a bug with Ubuntu, but they seem uninterested in helping me. I haven't received one single reply.
Hopefully someone here can help me! Is this a known problem? How can I debug it and try and find out what on Earth is going on? Many thanks in advance to anyone who can help me!
Linux peregrin 2.6.31-21-generic #59-Ubuntu SMP Wed Mar 24 07:28:27 UTC 2010 x86_64 GNU/Linux
mount from util-linux-ng 2.16 (with libblkid and selinux support)
I think you ought to read man mount and man fstab.
Forget what I wrote before, I was looking at an old version of man mount.
I suggest you use symlinks to your home directory, or use bind as specified in man mount.
Forget what you wrote before? What do you mean? Yours is the first reply.
And I am using bind exactly as specified in man mount. If you think I'm not, could you please specify what you think I'm doing wrong?
Reg. Linux user - 74778
|All times are GMT -5. The time now is 03:49 AM.|