Hot answers tagged

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, ...
tubedogg's user avatar
  • 15.2k
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) ...
Isaac's user avatar
  • 589
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, ...
Allison's user avatar
  • 1,414
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 "...
wytten's user avatar
  • 401
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-...
bmike's user avatar
  • 232k
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 ...
Allan's user avatar
  • 98.7k
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....
Monomeeth's user avatar
  • 64.3k
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 ...
John N's user avatar
  • 1,467
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 ...
Yuhang's user avatar
  • 156
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 ...
yssup's user avatar
  • 125
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: ...
Marian Rainer-Harbach's user avatar
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 ...
MarsArtis's user avatar
  • 111
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 ...
Mirco Widmer's user avatar
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 ...
Monomeeth's user avatar
  • 64.3k
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 ...
Mikey T.K.'s user avatar
  • 2,757
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 ...
user3439894's user avatar
  • 57.8k
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 ...
Brett's user avatar
  • 91
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.
Phil Hershkowitz's user avatar
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.
AJ Pal's user avatar
  • 91
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 ...
TFabris's user avatar
  • 91
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 ...
James Brickley's user avatar
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,...
WGroleau's user avatar
  • 4,670
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: ...
conny's user avatar
  • 421
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, ...
Tetsujin's user avatar
  • 113k
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 ...
klanomath's user avatar
  • 66k
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 ...
lx07's user avatar
  • 3,074
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 \ /...
bric3's user avatar
  • 604
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 ...
matthieu's user avatar
  • 171
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 ...
siho's user avatar
  • 171
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 ...
mivk's user avatar
  • 1,037

Only top scored, non community-wiki answers of a minimum length are eligible