bash - Mount SMB share from a server with a space in its name -


i'm trying mount smb share on terminal. i'm able that, if server has no space in name using command:

$ mount -t smbfs //user:password@server/resource /volumes/resource 

however in case server name has space , can't figure out how pass such name.

i tried using double or single quotes:

$ mount -t smbfs "//user:password@ser ver/resource" /volumes/resource mount_smbfs: url parsing failed, please correct url , try again: invalid argument 

i tried escaping space:

$ mount -t smbfs //user:password@ser\ ver/resource /volumes/resource mount_smbfs: url parsing failed, please correct url , try again: invalid argument 

i tried using %20, \x20 , \040, error:

mount_smbfs: server connection failed: no route host 

i know use ip address or rename server, workaround , not solution , i'm wondering i'm missing.

what happens if combine quotes , escape:

mount -t smbfs "//user:password@ser\ ver/resource" /volumes/resource 

that reportedly worked when mounting smbfs volume space in username.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -