Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'using mount_smbfs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
using mount_smbfs
Authored by: monkeyvoodoo on Jun 11, '02 05:33:54AM
'mount -t smbfs' is really just a pointer to 'mount_smbfs', and everything works just fine under 10.1.5 (actually, 10.0 through 10.1.5...), assuming you do things right (i.e. have your permissions set correctly and whatnot).

mounting an smb share should be as easy as:

mount_smbfs //user@servername/share /Volumes/share

where "servername" is the NetBIOS name of the server (an IP address may also be substituted), "user" is a valid user on that server, and "share" is the name of the share you wish to mount locally (you'll most likely have to create the /Volumes/share directory)

I'll also note that if you place your mount in the /Volumes directory, will see it, and place an icon for it on the desktop (assuming your Finder preferences are set to place shared volumes on the desktop). If the share isn't appearing on your desktop, use the Go to folder... command in the Go menu in the Finder, and point it to /Volumes, the share will appear on the desktop as soon as you click on its icon in the Finder.

doing a manual mount like this will leave unable to unmount the share, but if you feel the need to manually mount a share, you should of course be prepared to manually unmount it using:

umount /Volumes/share

If you are still having troubles unmounting the share, unmount as root:

sudo umount /Volumes/share

none of this functionality requires anything remotely related to fink, as it is standard Darwin functionality

[ Reply to This | # ]
addendum: using mount_smbfs
Authored by: monkeyvoodoo on Jun 11, '02 05:40:31AM
You really shouldn't need to manually mount an SMB volume in OSX. From the Finder, in the Go menu, choose Connect to server..., and input:
into the Address field.

The only time you should ever need to manually mount a share is if the share name has a space in it, or you need to specify some really weird SMB options, which in most cases, nobody would need to do.

[ Reply to This | # ]

addendum: using mount_smbfs
Authored by: balthisar on Jun 11, '02 06:13:43AM

On the other hand, mounting it manually is a good way to emulate the Windows "reconnect on startup" to networked drives. I can't remember the file offhand, but I already have "special" mounts for my /Users partition, and I'm sure all of the swap-drive hacks are similar. Putting in the mount_smbfs there would connect to the other computer every time you start up. I imagine this would happen for every user, though, which may not be a good thing. Likewise, if the volume is not available, it may not be to graceful when it tries to mount. I'll have to look into this, because my 60GB iMac drive is getting kinda full, and my Windoze-box is near emtpy -- plenty of extra storage there!

[ Reply to This | # ]
addendum: using mount_smbfs
Authored by: kerim on Jun 11, '02 07:33:04AM

Wouldn't this hint make it easy to create an applescript of some sort that would automatically mount the same share every time. This could be faster than having to use the Go menu.

I wish mounting shared volumes worked like iDisk ...

[ Reply to This | # ]
addendum: using mount_smbfs
Authored by: rah on Jun 11, '02 09:35:10PM

You could add it to a .profile/.login, then fire up a shell.

[ Reply to This | # ]
addendum: using mount_smbfs
Authored by: bkperry on Jun 11, '02 01:17:16PM

Sometimes I find it faster to copy files through the command line to windows shares. So, if I'm there, I mount the share that way.

[ Reply to This | # ]
addendum: using mount_smbfs
Authored by: nevermind on Aug 18, '02 04:35:47PM

Use %20 for a space in your shares.

See: and search for 106471 to get the appropriate knowledge base document "Mac OS X 10.1: How to Connect to an SMB Volume (Microsoft Windows)"

[ Reply to This | # ]
using mount_smbfs: Printing to smb printer shares??
Authored by: TXLogic on Jun 11, '02 10:51:38PM
Dandy -- now does anyone know how to print to a samba printer share?

I've set up my linux box as a samba server on a wireless network and it works beautifully as a file server to my partner's Windows 2000 laptop and my OS X iBook, but only my partner's machine can see and print to the printer (via samba) that is attached to the linux box. The ignominy! Anyone have a solution to this? I've searched the net and Google Groups far and's gotta be possible...


[ Reply to This | # ]

using mount_smbfs
Authored by: froz on Jun 13, '02 04:58:38AM

Well, I still maintain there is a bug here. I realize "whatnot" covers a lot of ground, but on any other version of Unix, you can mount a share anywhere you want and unmount it at will. In OS X, you get a cute icon on the desktop if you do a "normal" mount, .e.g. /Volumes/whatever, but if you follow the instructions in the original post, you don't get the icon until you click on the share and then you can't unmount the share.

Permissions has nothing to do with it and remounting the share on a different mount point should not suddenly allow the original mount to go away, especially since there is an "in use" error message, but it still unmounts, hence the bug.

[ Reply to This | # ]