delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/31/00:52:59

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,STOX_REPLY_TYPE,STOX_REPLY_TYPE_WITHOUT_QUOTES,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <BAY156-ds13727AB95EF851A7E89C5E9D4E0@phx.gbl>
From: Daniel D <ruby_user AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: error mounting smb shared with ~ in name
Date: Fri, 30 Mar 2012 21:52:35 -0700
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2V4qtcL001926

Howdy,

Is ~ allowed on a smb share name when mounting it? I keep getting errors 
while trying to mount //server/~foo via fstab.

If yes, can someone give me some tips for what to do to mount a share named 
\\server\~foo ?

Here’s what I already tried:
    - ls //server/~foo works – prints out the content for the dir
    - editing fstab, and adding
        //server/~foo /mnt/~foo smbfs binary,noacl 0 0
    then doing
        mount –a.
    This printed out
        mount: /mnt/~foo: Invalid argument
    - changing in fstab, from //server/~foo to //server/xyz  -- this worked. 
I.e. mount –a does not print out ‘mount: /mnt/~foo: Invalid argument’, and 
`ls /mnt/~foo` prints out the content of //server/xzy
    - mounting the smb share directly did not worked either. Running
        mount //server/~foo /mnt/foo
    also prints out the invalid argument error.
It looks like mount command does not like ~ in the smb share name, though it 
is fine with ~ in the the mount point name. Unfortunately changing the share 
name is not an easy task, and I prefer making this work rather than always 
using long paths with hard-coded remote hostnames.

TIA for any help. 


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019