I have a symlink:

/test

Which is pointing at a directory:

/source

I want to do a bind mount to mount /new over /test

mount -o bind /new /test

However this binds /new over /source (with /test pointing at /source - showing the files from /new, but not what I want). How do I stop mount following the symlink and get it to mount at /test.

link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

Since /test is not a real directory, this won't work.
Unlink it, create it as a real directory, then do the bind mount.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.