Reply
   
 [Merged] SMB Auto Mount on Mac OSX 
 
 
  #1 (permalink)  
Old 06-08-2006, 02:10 PM
Regular

Group: Regulars
Location: Kellyville, NSW Australia


Post [Merged] SMB Auto Mount on Mac OSX

Hi everyone,

I am a relatively new (12 months) Mac user for my personal computer needs, however I have a mixed environment (Windows Media Center, Xbox 360, Windows Desktop PC's & Laptops and some Buffalo Linkstation network drives), so have alot of Windows File Shares.

I've searched everywhere for information on how to auto connect (auto mount) Windows File Shares (SMB) during bootup of my MBP and Mac Mini, but have had little success. In the end what I came up with was to create an Automator script, save it as an application then run that application at startup.

The script I made in Automator looks like below. Drag 1 & 2 in order over to the right workflow window in automator.

1.
Library: Finder
Action: Get Specified Servers
Name: smb://workgroup;servername/sharename

2.
Library: Finder
Action: Connect to Servers

Once done it should look like this:


With the smb "Name" above - you add this by clicking on the +, then choosing "File Servers" from the "Show" drop down box, then browsing your network until you find what you want. You then need to add the "/sharename" to the end of the "Address". You can get this share name from the Windows PC, or via the drop down box that comes up when you connect using the "Network" link in the Finder.

Once done, disconnect the shares you may have manually connected yourself (they'll be on your desktop), then run the script. You should see the red automator dot up near the clock of your Mac, then the shares should turn up one at a time on your desktop.

Once this works, choose "Save As..." from the File menu, and save it as an application somewhere on your Mac (somewhere you'll remember). You can then go into the "System Preferences" then into Accounts, and go to Login Items, click the + and browse to the app you just created and add it.

You'll then have your SMB shares mount automatically every time you load your Mac.

Note: If anyone has a better way to do this that is easier, please let me know.

Thanks,
Shane.
scritch is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #2 (permalink)  
Old 06-08-2006, 02:17 PM
Regular

Group: Regulars
Location: Geelong, Victoria


It can also be done by mounting the share manually, then drag-and-drop the share's icon into your Login Items in the System Prefrences...
You need to have the share's username and password details saved in a keychain for this to work.
(I've only tested it with AFP, but I assume it works the same for Samba)

Only downfall is that it opens the share at startup, so you have to close the finder window...
__________________
...because the people who are crazy enough to think they can change the world, are the ones who do.
dangelovich is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #3 (permalink)  
Old 06-08-2006, 02:18 PM
Regular

Group: Regulars
Location: Kellyville, NSW Australia


<div class='quotetop'>QUOTE(dangelovich @ Aug 6 2006, 03:17 PM) [snapback]201922[/snapback]</div>
Quote:
It can also be done by mounting the share manually, then drag-and-drop into your Login Items in the System Prefrences...
You need to have the share's username and password details saved in a keychain for this to work.
[/b]
The weird thing is this is the first thing I tried, but it has been inconsistent (ie sometimes works, sometimes doesn't) between different Mac's, users and/or new installs of OSX. Hence the reason I made this script.

Regards,
Shane.
scritch is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #4 (permalink)  
Old 09-01-2007, 07:35 AM
Member

Group: Regulars


I know this is an old topic but...

Is it possible to mount SMB shares somewhere other than the desktop?
TheOneWhoIsMany is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #5 (permalink)  
Old 09-01-2007, 07:49 AM
Regular

Group: Regulars
Location: In a secret red pillar box
Blog Entries: 1


Quote:
Originally Posted by TheOneWhoIsMany View Post
I know this is an old topic but...

Is it possible to mount SMB shares somewhere other than the desktop?
wow...that's a long time between joining and first post.

anyway...yes it is. Being unix you can mount a volume pretty much anywhere in the filesystem using the 'mount' command on the command line. Type 'man mount' on the comman line to find out more. Not sure if this can be done via gui (i.e. specify the mount location).

Bartron
__________________
1.83G 15" MBP, 2.8G 24" iMac, 1.83G 17" iMac
flickr : redbubble
70 b3 0r |\|07 70 b3, 7|-|@ 1$ 7|-|3 QU3$710|\|
bartron is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #6 (permalink)  
Old 09-01-2007, 07:55 AM
Regular

Group: Regulars
Location: Behind you


Finder will mount any "Media" type of volume on the desktop. What Bartron says is correct, in the UNIX Terminal you can mount any volume anywhere you like.

pipsqeek
__________________
WTF is Harmonytech? | The iBook Saga. | Successful Trades: Currawong, Byrd, xedos, Decryption, Greenie, Mivory
sudo chmod 327 /etc/car/subaru
pipsqeek is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #7 (permalink)  
Old 09-01-2007, 09:36 AM
Merry Pagan Sun God's day

Group: Administrators
Location: Fukuoka, Japan (originally Canberra)
Blog Entries: 4


More correctly, depending on the server, it will be mounted in /Volumes or /Network and shows on the Desktop.
__________________
A bunch of stuff for sale here - PCI and graphics cards, mostly.
The question you're about to ask me or post in MacTalk Community is answered in the Forum Rules & FAQ.
As men, however, make little effort to exercise their intellect, or imagine that they possess knowledge before they really learn, the consequence is that they never begin to have knowledge..."
— Origen in De Principiis
Currawong is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #8 (permalink)  
Old 09-01-2007, 04:43 PM
Member

Group: Regulars


Quote:
Originally Posted by bartron View Post
wow...that's a long time between joining and first post.

anyway...yes it is. Being unix you can mount a volume pretty much anywhere in the filesystem using the 'mount' command on the command line. Type 'man mount' on the comman line to find out more. Not sure if this can be done via gui (i.e. specify the mount location).

Bartron
What can I say...long time reader first time poster

I also like to use the "Search" option.

Ok excelent. I know what you mean by that. However is it possible to mount smb shares without placing a link on the desktop?
TheOneWhoIsMany is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #9 (permalink)  
Old 21-01-2007, 11:06 AM
Member

Group: Regulars


How to auto mount a smb share?

So I have a Lacie ethernet mini drive with a smb share setup. I use this to store my eyetv recordings etc. Is there a way to have this share automatically mounted everytime I boot my mac or wake from sleep. Kinda sucks having to click on network etc in finder each time.

Edit: never mind. I found this

[Merged] SMB Auto Mount on Mac OSX

Guess i should have searched before posting

Last edited by floyd; 21-01-2007 at 11:09 AM.
floyd is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #10 (permalink)  
Old 21-01-2007, 11:09 AM
Regular

Group: Regulars
Location: Wellington, NSW
Blog Entries: 2


You can drag the share into your sidebar. I am not sure if this will auto mount the share but it at least will save you having to search through the network every time.
__________________
->insert something witty here<-
feeze is offline
Profile CardPM
Go to the top of the page
Reply With Quote
  #11 (permalink)  
Old 21-01-2007, 11:33 AM
Regular

Group: Regulars
Location: Victoria


I was looking for something totally different yesterday but stumbled onto this http://www.macosxhints.com/article.p...60731083131745 Is that what your after?
__________________
My Apple goodness includes:
Mac Mini 1.66 GHz Core Duo, 2GB Memory, 160GB HD | 16GB iPod Touch
23" Cinema Display | Airport Extreme (n) | MBP 17" 2.4 GHz Core 2 Duo (Santa Rosa), 4GB Memory, 160GB HD with Hi-Res Display | 8GB Black iPod Nano 2nd gen
mini_Matt is offline
Profile CardPM
Go to the top of the page
Reply With Quote
 
Reply

Thread Tools

 
Similar Threads
 
Thread Thread Starter Forum Replies Last Post
Mac Mini + Magnetic iSight mount thatfilthyspringbok Desktop Computers 17 11-09-2006 10:58 AM
[Merged] Defragmenting and optimising OSX designers_hub Mac OS X & All Software 20 09-04-2006 08:57 AM
Icons Disappear from SMB mount dangelovich Help and New Mac User Support 0 24-11-2005 06:55 PM
Osx Auto Logout nath Mac OS X & All Software 0 11-09-2005 11:52 PM