mounting a network drive cifs mac osx

9

3

I've been handed a mac and I'm having issues. I had an ubuntu setup where I would type:

sudo mount -t cifs //fs/CakeRecipes /mnt/fs/CakeRecipes -o username=fegur,domain=KitchenLord,iocharset=utf8,file_mode=0777,dir_mode=0777

to get access to the CakeRecipes folder. Sadly this does not work on OSX. If I type in this command directly, I get

mount: exec /Library/Filesystems/cifs.fs/Contents/Resources/mount_cifs for /mnt/fs/KitchenLord: No such file or directory

I have created /mnt/fs/KitchenLord on my local machine, so I'm not sure what this error is talking about.

Any hints would be appreciated. Googling is not helping much.

Mr. Fegur

Posted 2016-03-31T23:23:21.153

Reputation: 225

Answers

7

On OS X, the filesystem plugin for CIFS/SMB is named smbfs, and its options are a bit different. I think it should be something like this:

sudo mount -t smbfs -o -f=0777,-d=0777 '//KitchenLord;fegur@fs/CakeRecipes' /mnt/fs/CakeRecipes

...but in my quick test it doesn't seem to be obeying the -f and -d options. Anyway, check the man page for mount_smbfs for more info.

Gordon Davisson

Posted 2016-03-31T23:23:21.153

Reputation: 28 538

1

cifs and smbfs are not the same thing with a different name on macOS: https://unix.stackexchange.com/questions/34742/cifs-vs-samba-what-are-the-differences

– RemyNL – 2018-02-16T10:31:25.257

3

To mount

mount_smbfs //username@server.name/share_name share_name/

To unmount

umount share_name

William

Posted 2016-03-31T23:23:21.153

Reputation: 143