Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

simon lefisch

macrumors 65816
Original poster
Sep 29, 2014
1,006
253
Hello everyone,

I have a CentOS file server running SMB and I am unable to mount it in macOS using Terminal. I have ran the following commands and receive errors:

Code:
$mount -t smbfs //username:password@server_ip/share\ name ~/local_dir

mount_smbfs: URL parsing failed, please correct the URL and try again: Invalid argument


I then came across something saying to use %20 for the space in-between the share name:

Code:
$mount -t smbfs //username:password@server_ip/share%20name ~/local_dir


Which then gave me the following output:

Code:
usage: mount [-dfruvw] [-o options] [-t external_type] special node
       mount [-adfruvw] [-t external_type]
       mount [-dfruvw] special | node

I'm at a bit of a loss here now. I've tried to Google what I should input next but have yet to find something to guide as to what to do now. Everything I found says the above command should've mounted the share. Any ideas as to what I'm missing?
 

simon lefisch

macrumors 65816
Original poster
Sep 29, 2014
1,006
253
So, nothing? Bummer.

I think I'm actually going to ditch macOS as a server on my Mac Pro 5,1 and install CentOS anyway. After messing around with configuration, macOS as a server OS is quite horrible.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.