mounting symlinked directory

Alexander Pohoyda alexander.pohoyda at
Sun Aug 3 11:55:23 PDT 2003

Hi all,

Running on the FreeBSD 4.8-STABLE i386 with a following setup:
apog at oak:~$ ls -la /workspace/mus/ | grep big 
drwxr-xr-x  2 apog  wheel       512 Jun  6 15:00 big
apog at oak:~$ grep big /etc/fstab    
ls3610:/home/d038533/mus   /workspace/mus/big  nfs  ro,noauto  0 0
apog at oak:~$ mount /workspace/mus/big
apog at oak:~$ 
works as expected.

Now, ~/mus is symlinked to /workspace/mus/ :
apog at oak:~$ ls -la | grep mus
lrwxr-xr-x   1 apog  users        15 Mar  1 21:37 mus -> /workspace/mus/
apog at oak:~$ mount mus/big
mount: mus/big: unknown special file or file system
apog at oak:~$ 

I patched the mount utility, and it works for me.
Patch is here:

Why isn't it done this way by default? Am I doing it wrong?

Thanks for any advice!

Alexander Pohoyda
<alexander.pohoyda at>

More information about the freebsd-questions mailing list