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=0777to 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/ for /mnt/fs/KitchenLord: No such file or directoryI 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.
2 Answers
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.
To mount
mount_smbfs //username@ share_name/To unmount
umount share_name