I am having the same issue regarding NAS and found this, but I have not tried it yet.
Automounting Sharepoints at Startup
Remember in Mac OS 9 how easy it was to mount a server automatically on startup? All you had to do was check that little box in the dialog asking you which volumes you wanted to mount. This check box isn't available in Mac OS X, and placing an alias to servers in your login items isn't exactly the solution either. Mac OS X does provide, however, a method to mount server volumes on startup that comes from the Unix/NetInfo roots of Mac OS X. This feature is called the "automount daemon".
In the past, configuring automount would have involved editing some text files in the invisible depths of the System. Mac OS X provides a database that stores many of these configurations, though, making the management of these configurations much easier. This database is the NetInfo database, and can be edited with the NetInfo Manager application in your Utilities folder. Note that the NetInfo DB also contains user account information and other information that is important to making your computer run correctly. Editing this database can have negative consequences, and is not supported by Apple, so you will be performing these tasks at your own risk. That said, as long as you follow these instructions closely, it is very unlikely that you will cause irreversible harm to your system. You can backup your NetInfo database in the NetInfo Manager by selecting "Save Backup" from the "Management" menu.
In a typical NetInfo deployment environment, there is a master NetInfo parent that maintains directory information that is shared with all the client machines. For example, if your computer was "bound" to a NetInfo parent machine, your computer would be able to use that machine's NetInfo DB. In such a setup, it would only be necessary to modify automount settings on one machine; every machine that was bound to this NetInfo server would automatically take advantage of the new settings. Mac OS X Server is setup this way; creating automatically mounted sharepoints is as easy as checking a couple of checkboxes and configuring the clients to bind to the NetInfo server. Setting up a Mac OS X Server is beyond the scope of this article, though. Here, I will describe how to setup a standalone client to mount any server's sharepoints automatically on startup.
Automount background
There are only a few properties in an automount NetInfo entry. The picture below is an example entry.
name
Name of the server and path to the sharepoint.
vfstype
Virtual filesystem type. Possible values: url, nfs
opts
There can be one or two values in this property. The url path to the sharepoint is defined here. If this sharepoint is to be dynamically mounted, then the "net" value should also be included here. This property is not required for statically mounted NFS sharepoints.
dir
This is the local directory where the sharepoint will be mounted. Statically mounted sharepoints will have a value something like /Network/sharepoint_name. Dynamically mounted sharepoints will always have a value of /Network/Servers/. The value must be in /Network.
Creating an automount entry
Before you begin, you need four pieces of information:
1. Server name or IP address (server.example.com, 192.168.1.2)
2. Path of the sharepoint (/Users, /Applications)
3. How is the sharepoint shared (AFP or NFS)
4. Where do you want the sharepoint to mount: dynamically in /Network/Servers or statically in /Network
Static vs. dynamic mounting
When you mount a sharepoint statically, it is mounted during startup and available immediately when you click on its icon. You can assign statically mounted sharepoints specific directories within the /Network directory (that blue globe you see sitting next to all the other volumes on your system). Dynamic sharepoints always reside in /Network/Servers/server_name. They do not actually mount when the computer is started up, instead, they mount on the fly when you request information from them (e.g., when you double-click on its icon). Static sharepoints have the advantage of being assigned to specific directories within /Network and being available immediately. Dynamic sharepoints have the advantage of using less server resources when the sharepoint is not being used. Apple recommends having User home directories served on dynamically mounted sharepoints, while statically mounting other resources, such as a Library folder.
Here's what to do
1. Launch NetInfo Manager; it is located in the /Applications/Utilities folder.
2. Authenticate by clicking on the lock in the lower left corner.
3. Click on the /mounts directory.
4. Click on "New+" icon. An item named "new_directory" will appear.
5. Double-click on the value "new_directory" for the "name" property and change it to "servername:/sharepoint". You can use the IP address, the hostname or the fully qualified hostname in place of servername.
6. Select "New Property" from the "Directory" menu. Set the property name to "vfstype". Set the value to "url" if this is an AFP sharepoint or "nfs" if this is an NFS sharepoint.
7. Skip this step for statically mounted NFS sharepoints. Otherwise, select "New Property" from the "Directory" menu. Set the property name to "opts". If this is a dynamically mounting NFS sharepoint, set the value to "net". Follow the instructions below for static and dynamic AFP sharepoints:
Special steps for AFP sharepoints only:
+ Set the "opts" value to:
url==afp://;AUTH=NO%20USER%20AUTHENT@servername/sharepoint
+ If this sharepoint will mount dynamically, click on the opts property and select "Insert Value" from the "Directory" menu. Set the value to "net".
8. Select "New Property" from the "Directory" menu. Set the property to "dir". If this sharepoint will mount dynamically, set the value to "/Network/Servers/". If this is a statically mounted sharepoint, set the value to "/Network/sharepoint".
9. Select "Save Changes" from the "Domain" menu and restart the computer. Verify that the sharepoint mounted correctly in the appropriate location in the /Network directory.
Alternatively, you can use the application SharePoints AutoMounter to setup these settings, though it only sets up dynamic mounts.
Note that you must have guest access enabled on an AFP sharepoint in order to automount it. See the Mac OS 10.2 Server Administrator's guide for more details on setting up sharepoints.
Appendix
Dump of a typical /mount entry:
{
"name" = ( "mounts" );
CHILDREN = (
{
"name" = ( "roscoe:/Users" );
"opts" = ( "net", "url==afp://;AUTH=NO%20USER%20AUTHENT@10.0.7.1/Users" );
"dir" = ( "/Network/Servers/" );
"vfstype" = ( "url" );
},
{
"name" = ( "roscoe:/home-alt" );
"opts" = ( "url==afp://;AUTH=NO%20USER%20AUTHENT@10.0.7.1/Music" );
"dir" = ( "/Network/Music" );
"vfstype" = ( "url" );
}
)
}