34
votes
Accepted
command line: unmount a smb network drive
umount is the opposite of mount. You'll need to know the name of the mount point - that is, the name in /Volumes that corresponds to that network drive.
umount /Volumes/VolumeName
Per man umount, ...
33
votes
Accepted
Mac mini can't connect to my corporate SMB server. Was working some days ago
SUCCESS!!
After 2 months of (moderate) misery I've finally found the reason SMB didn't work with my Sierra Mac Mini.
TL;DR The reason was this installed kext:
com.intel.kext.intelhaxm (6.0.1) ...
33
votes
Accepted
Adding a Time Machine destination fails with OSStatus error 17
Digging through the console I found this telling error:
NetAuthSysAgent already_mounted: share <TIMEMACHINE> already mounted
TIMEMACHINE is my share name in this case. As the error suggests, ...
30
votes
How can I mount an SMB share from the command line?
Using AppleScript is convenient because it stores your passwords in the Keychain. Bash function:
function mymount
{
osascript <<EOF
mount volume "smb://user@fqdn1/volume1"
mount volume "...
29
votes
Accepted
How can I tell what version of SMB is negotiated when I connect to a share from macOS?
The smbutil command can dump the attributes for all shares or you can target one particular share and parse out the version string:
smbutil statshares -a
In the case of the listing below:
site-test-...
18
votes
Accepted
Is AFP slated to be removed from future versions of macOS?
Apple Filing Protocol is deprecated1, not "dead". There's a big distinction and that is being deprecated, it's still included and still works at the time of last development but it has been ...
17
votes
Accepted
Connect to SMB server on startup
There's a number of options for doing this, but the easiest way is to just use your Login Items. More specifically:
In the Finder, press CommandK (or click on the Go menu and select Connect to Server....
14
votes
Accepted
Mounting Samba shares under /Volumes without GUI fluff
The following is what I use to mount Samba shares via launchd:
/usr/bin/osascript -e "try" -e "mount volume \"smb://guest@${host}\"" -e "end try"
Using osascript's mount means any keychain access ...
14
votes
Accepted
What causes some Network Drives using SMB no longer connect to macOS Catalina?
The solution is in Catalina release note
https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_beta_2_release_notes
NetBIOS is disabled in macOS 10.15 to speed up ...
14
votes
How to restart SMB client on macOS Catalina? (Finder not connecting to shares)
I had the same problem, solved it by launching Activity Monitor and stopping netbiosd process, it gets restarted and then the connections started working immediately.
It's possible that I also stopped ...
14
votes
Accepted
"The operation couldn't be completed"/"Operation canceled" error message when saving to a Samba share via Files app
There does not seem to be any documentation from Apple on changes related to SMB in iOS/iPadOS 14.5. However, the following configuration change on the Samba server restores Files app functionality:
...
11
votes
Can't connect from macOS High Sierra to Windows 10 share on home network
For me the solution was to check if SMB server was active on windows pc (and it was not!!, just SMB client is active by default):
go in search field at the right of WINDOWS icon and type: WINDOWS ...
10
votes
Add samba folder to favorite into finder sidebar
I found out, that the following process adds a folder mounted on a samba share to the sidebar/favorites in my finder. They 'survive' a restart of my mac. I guess they also work as intended if you ...
10
votes
Accepted
How do I connect my iMac to a Windows SMB share drive
This answer assumes a few things:
your iMac is already connected to the network (most likely via ethernet)
that your credentials are all setup (based on your question, they are)
that you’ve been ...
9
votes
Accepted
Trouble using Time Machine with SMB share in OSX El Capitan
This is going to be a throughly unsatisfying answer, but it comes down to the fact that random network drives were not meant to be used as time machine backup targets.
I'd wager one of the things you ...
9
votes
Accepted
Why is my Hard Drive and User folder shared when I turn on osx file sharing?
Prior to Mac OS X Lion, Mac OS X Client came with SAMBA Server and Client and what you defined to share was all that was shared. Since Mac OS X Lion, and continuing with OS X Mountain Lion and other ...
9
votes
Mac mini can't connect to my corporate SMB server. Was working some days ago
I had the same problem (1025 failures to open smb device, syserr = No such file or directory) and finally tracked it down to the /dev/nsmb0 device not being correctly configured because of a ...
9
votes
Accepted
Manually add shared Windows printer in macOS
You can access the advanced tab by right clicking just to the left of the word Add, selecting Customize Toolbar, and dragging the advanced tab onto the tool bar.
9
votes
Streaming media from Mac to VLC for Android
You can just enable guests to access shared folders. Go to Users and Groups and give access to Guests to Shared folders/Sharing.
9
votes
How to restart SMB client on macOS Catalina? (Finder not connecting to shares)
As stated by @yssup - Using the mac "Activity Monitor" tool to stop "NetAuthSysAgent" solved the problem for me.
Note that stopping "netbiosd" did not solve the problem.
Ideally one would do this by ...
9
votes
Accepted
List and define SMB shares from command-line
On macOS open Terminal and type man sharing to review the manual page. You can use sharing -l to list AFP/SMB share info. You can add and remove shares using this command line tool.
You can use the df ...
8
votes
How can I mount an SMB share from the command line?
What worked for me to make them mount during boot:
==> /etc/auto_master <==
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,...
8
votes
Quick way to "link" to location on a shared SMB server?
Since Mojave 10.14 - Catalina 10.15 versions of macOS Finder, you can easily get a copy of any of the path variants:
Edit > Copy the good old Cmd+C becomes just the filename when pasted as text:
...
8
votes
How do I connect my iMac to a Windows SMB share drive
Your IT department shouldn't have just abandoned you at this point. They should have worked through it with you.
We can't really answer this without knowing more detail of the network setup there, ...
8
votes
How does Time Machine encrypt backups to network disk?
Neither the remote disk nor the remote volume is encrypted by Time Machine. Instead a special "sparse bundle (disk image)" ("backupbundle" for Catalina) is created on the network drive. In fact it's ...
8
votes
Can I not share external hard drives through my Macbook's standard file sharing system?
To add to @nohillside answer you can share a FAT32 formatted drive but not set permissions as the filesystem doesn't support it.
If you want to control access to files on the USB by permissions then ...
7
votes
Mount a samba drive, with password from keychain
Here's how I did it
mkdir -p /Volumes/work && mount \
-t smbfs \
//smb-user:$(security find-internet-password -D "Network Password" -l "share name" -w)@server/work \
/...
7
votes
How can I mount an SMB share from the command line?
I would add that if you have a username of the form "workgroup\username", you should mount it like this :
mount -t smbfs "//WORKGROUP;username:password@MACHINENAME/SHARENAME" /SomeLocalFolderOfChoice
...
7
votes
Why is my Hard Drive and User folder shared when I turn on osx file sharing?
Yes, this is the default behavior. Apple describes this in Settings > Sharing:
File Sharing allows other users to access shared folders on this computer and allows administrators to access all ...
7
votes
Terminal (bash) - copy files from Windows (SMB) shares without mounting
You cannot do that without first mounting the share.
For mounting it from the command-line, whether through Terminal or from an SSH session, there are several methods with different advantages and ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
smb × 526macos × 251
network × 164
finder × 83
file-sharing × 62
sharing × 54
mount × 51
afp × 43
windows × 42
nas × 38
permission × 35
time-machine × 31
terminal × 24
mac × 22
catalina × 22
high-sierra × 19
mojave × 19
automount × 16
backup × 15
command-line × 15
unix × 14
server.app × 13
printing × 10
monterey × 9
ios × 8