From owner-freebsd-questions@FreeBSD.ORG Sun Aug 3 11:55:23 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3B5E37B401 for ; Sun, 3 Aug 2003 11:55:23 -0700 (PDT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 6A09443FB1 for ; Sun, 3 Aug 2003 11:55:22 -0700 (PDT) (envelope-from alexander.pohoyda@gmx.net) Received: (qmail 18414 invoked by uid 65534); 3 Aug 2003 18:55:21 -0000 Received: from p508BD31F.dip.t-dialin.net (EHLO oak.pohoyda.family) (80.139.211.31) by mail.gmx.net (mp001) with SMTP; 03 Aug 2003 20:55:21 +0200 Received: from oak.pohoyda.family (oak.pohoyda.family [127.0.0.1]) by oak.pohoyda.family (8.12.9/8.12.6) with ESMTP id h73ItKWS008186 for ; Sun, 3 Aug 2003 20:55:20 +0200 (CEST) (envelope-from apog@oak.pohoyda.family) Received: (from apog@localhost) by oak.pohoyda.family (8.12.9/8.12.9/Submit) id h73ItKhw008183; Sun, 3 Aug 2003 20:55:20 +0200 (CEST) Date: Sun, 3 Aug 2003 20:55:20 +0200 (CEST) Message-Id: <200308031855.h73ItKhw008183@oak.pohoyda.family> From: Alexander Pohoyda To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: mounting symlinked directory X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2003 18:55:23 -0000 Hi all, Running on the FreeBSD 4.8-STABLE i386 with a following setup: apog@oak:~$ ls -la /workspace/mus/ | grep big drwxr-xr-x 2 apog wheel 512 Jun 6 15:00 big apog@oak:~$ grep big /etc/fstab ls3610:/home/d038533/mus /workspace/mus/big nfs ro,noauto 0 0 apog@oak:~$ mount /workspace/mus/big apog@oak:~$ works as expected. Now, ~/mus is symlinked to /workspace/mus/ : apog@oak:~$ ls -la | grep mus lrwxr-xr-x 1 apog users 15 Mar 1 21:37 mus -> /workspace/mus/ apog@oak:~$ mount mus/big mount: mus/big: unknown special file or file system apog@oak:~$ I patched the mount utility, and it works for me. Patch is here: http://www.alexander-pohoyda.privat.t-online.de/patches/usr.src.sbin.mount.c.diff Why isn't it done this way by default? Am I doing it wrong? Thanks for any advice! -- Alexander Pohoyda