Existing users, log in.  New users, create a free account.  Lost password?


MacFixIt Logo
 
Contact Us | About MacFixIt | Who's Online  

Page 1 of 3 1 2 3 >
Topic Options
#314774 - 11/17/05 05:55 PM How to get network shares to automount on restart?
dschwartzer Offline
MacWriter

Registered: 05/20/05
Posts: 131
I have just added an external NAS drive to my network. I have two shares configured on the disc (one public and one private) and have mounted both of them on my desktop.

I dragged each of the network icons from the desktop onto my Lonin Items in the Account section of System Preferences. When I add the icons they are listed in the Login Items with the names of the shares and lists them as Volumes. When I do a restart the icons do not mount automatically and when I look in the Login Items the proper names are still listed but instead of Volumes they are listed as Unknown.

The account is set up as an administrator and I have added the NAS password to my keychain to take care of authentication. I even fully defined the name and path (smb://device name/share name) in the Connect To Server dialog box and added both paths to my server favorites list.

I am running 10.4.3 but also want to set up my wife's iBook which is running 10.3.9.

Any suggestions and/or help would be appreciated.

Thanks,

David

Top
#314775 - 11/17/05 08:50 PM Re: How to get network shares to automount on restart? [Re: dschwartzer]
Virtual1 Offline
MacGuru

Registered: 01/20/01
Posts: 10527
Loc: Middle 'o Nowhere
Make an applescript or a terminal script that mounts the volumes, and add that to your startup items.

Adding a volume to your startup items used to work, but I think that was back in the days of 10.1. It has since stopped working with 10.3 and 10.4 at least.
_________________________
- I work for the Department of Redundancy Department

Top
#314776 - 11/18/05 03:18 AM Re: How to get network shares to automount on restart? [Re: Virtual1]
dschwartzer Offline
MacWriter

Registered: 05/20/05
Posts: 131
Thank you for the prompt response. Being fairly new to Macs I don't have any experience with Applescripts. Can you provide some direction on how to write the script.

Thanks,


David

Top
#314777 - 11/18/05 04:17 AM Re: How to get network shares to automount on restart? [Re: dschwartzer]
Virtual1 Offline
MacGuru

Registered: 01/20/01
Posts: 10527
Loc: Middle 'o Nowhere
Open the Script Editor and make a script something like this:

tell application "Finder"
open location "afp://myusername:mypassword@myserveraddress/path/path/path"
end tell


so maybe it would look something like

tell application "Finder"
open location "afp://todd:goldfish2@192.168.1.50/Users/todd"
end tell

Save it as an application. Then put that application in your startup items. It may not be necessary to include the password in the applescript, it may use it from the keychain if available.
_________________________
- I work for the Department of Redundancy Department

Top
#314778 - 11/18/05 05:13 AM Re: How to get network shares to automount on restart? [Re: Virtual1]
dschwartzer Offline
MacWriter

Registered: 05/20/05
Posts: 131
Virtual:

Thanks. This is a big help. One more question if you don't mind.

I see yopu start the volume description as afp://. I have the volume described in the Connect To Server list as smb://. What is the difference between afp and smb? Should I be changing the volume description to afp?

Thanks again.

David

Top
#314779 - 11/18/05 05:21 AM Re: How to get network shares to automount on restart? [Re: dschwartzer]
Virtual1 Offline
MacGuru

Registered: 01/20/01
Posts: 10527
Loc: Middle 'o Nowhere
change that to smb if that's what you see in the connnect dialog. that means you are connecting to a windows file server, or something sharing as a windows fileserver. If you're sure you're connecting to a mac, stick with afp.
_________________________
- I work for the Department of Redundancy Department

Top
#314780 - 11/18/05 07:42 AM Re: How to get network shares to automount on restart? [Re: Virtual1]
dschwartzer Offline
MacWriter

Registered: 05/20/05
Posts: 131
Don't mean to beat this to death but I am fairly new to all of this.

I am using smb per the drive user's guide. The drive is formatted in ResierFS file system which supports both Macs, Windows and Linux. I am connecting from my Mac and my wife will also use her iBook. We do have one Windows 2000 PC on the network and want to share files across both the Macs and Windows units.

With all of that info. can you tell if I should use apf or smb? What is the difference/benefots of one over the other?

Thanks again for all of your help.

David

Top
#314781 - 11/18/05 07:52 AM Re: How to get network shares to automount on restart? [Re: dschwartzer]
Virtual1 Offline
MacGuru

Registered: 01/20/01
Posts: 10527
Loc: Middle 'o Nowhere
For network attached storage (NAS) like that, it's probably better to use SMB. But that's just my opinion. If both AFP and SMB are supported, which you use is up to you.

AFP is the native mode for Macintoshes, and may provide a little bit of additional support for things like custom icons.
_________________________
- I work for the Department of Redundancy Department

Top
#314782 - 12/01/05 04:12 PM Re: How to get network shares to automount on restart? [Re: Virtual1]
mrchevelle Offline
New User

Registered: 12/01/05
Posts: 1
Hello,

I have tested this script and it does automount the drives, and I have placed it in the login items folder for the user. Each time I log on though, I am prompted if I want to run the script or cancel, instead of running automatically. Is there a setting I am missing?

Thanks a lot.

Top
#314783 - 12/01/05 04:24 PM Re: How to get network shares to automount on restart? [Re: mrchevelle]
Virtual1 Offline
MacGuru

Registered: 01/20/01
Posts: 10527
Loc: Middle 'o Nowhere
You are probably saving it as a script.

Select to save as "Application", and make sure "startup screen" and "stay running" are NOT checked.
_________________________
- I work for the Department of Redundancy Department

Top
Page 1 of 3 1 2 3 >


Moderator:  dianne, dkmarsh, joemikeb, MacManiac 

VersionTracker: Software Updates and Downloads | iPhone Atlas: iPhone Help, News, Tutorials, and Tips