I would like to mount an SMB network share from the command line (terminal); how would I go about that?
I am using Mac OS X 10.6.4.
|
|
|
You could easily achieve this using
Optionally, add the workgroup :
You could, of course, change the After doing this, simply go to To unmount, using the following command :
|
|||||||||||||||||||||
|
|
You should take a look at mount’s help:
Upon closer inspection you’ll see that the filesystem’s type is:
Password (and theoretically username) are optional. The result of the above command will be no output (if all went ok), but a You can also use mount_smbfs to replace the mount -t smbfs. |
||||
|
|
|
Use the
Pros: Creates the mount point in Cons: Requires the Finder to be running. |
|||||||||||||||||
|
|
What worked for me to make them mount during boot:
For some reason, neither the short name nor the FQDN of the server worked, so I used 'ping (name) to get the IP. In other words, DNS would resolve the name, but mount_smbfs could not. And I could not put the mount point in /Volumes, because boot up would delete it. One quirk: After this worked fine for a few days, for two or three days, LibreOffice, Adobe Reader, and Finder could not find ONE of the two shares, but the shell and TextEdit had no problem. After two or three days of that, it mysteriously started working again. If you do these edits and don't want to reboot, you can mount them with 'auto mount -vc' |
|||
|
|