DirectNET

Data Center Management Solutions including UPS Systems, Data Center Cooling, KVM over IP & IP Power Strips, Server Racks and Server Rack accessories; KVM Switches and KVM Extenders; Rackmount Monitors and Rackmount Keyboards.


NAVIGATION
Home
Store
INSIDE MAC
Television Shows
Broadcast Shows
Daily News Shows
Special Shows
EVENTS
DAILY TIPS
Design
Mac OS X
Mac OS X UNIX
COMMUNITY
Surveys
NEWS
Current
Press
Archive
FEATURES
Editorial
Dr. Mac
Reviews
Reader Reports
RESOURCES
FAQ
Documentation
Learning Center
MAN pages
Glossary
Tutorials
Tips
Links

OUR PARTNERS

OSXFAQ Mac OS X Tip-of-the-Day  

Apple File Server (AFS) - Auto Mounting

By Adrian Mayo - Editor - OSXFAQ

Auto Mounting

Automatically mount AFS shares when they are accessed.

OS X is able to automatically mount shares (both AFS and NFS). This can be done statically (at startup) or dynamically (when the mount point is accessed).

Fire up NetInfo and in the top pane navigate to / config. Add new entries as show below:

This creates a dynamically mounted AFS share. The share is only mounted when it is in use.

'name' is the hostname and name of the share to mount as seen in the Finder's 'Connect...' dialogue.

'dir' must be /Network/Servers for dynamic mounts.

'vfstype' (virtual file system type) must always be URL for AFS.

'opts' contains two values:
'net' specifies a dynamic mount
'url==...' specifies the share to mount.
replace 'carcharoth.mayo-family.com' with the IP address or hostname of the server
replace '/Users-Shared' with the share point as seen in the Finder's 'Connect...' dialogue

To create a static mount do not add the 'net' value to property 'opts'. Whereas dynamic mounts always appear under /Network/Servers, static mounts appear under /Network/any-directory (you must create the directory 'any-directory' first).

If you are not comfortable using NetInfo, see Thursday's tip.

The mount given above creates a guest login. It is possible to create a real login by specifying a user name and password. However automount operates as the root user, so other users will not gain any advantage. The format for a real login is:

'url==afp://username:password@server/share-point'

Remember that anyone will be able to see the password by looking at NetInfo.

Enjoy !! :-)

Panther 10.3.4

To discuss this tip in the OSXFAQ Mac OS X Tip-of-the-Day Forum, click here:

http://forums.osxfaq.com/viewforum.php?f=100

E-mail your comments or suggestions to webmaster@osxfaq.com

Copyright © 2000-2010 Inside Mac Media, Inc. All rights reserved.
Apple assumes no responsibility with regard to the selection, performance, or use of the products or services. All understandings, agreements, or warranties, if any, take place directly between the vendors and prospective users.
Apple, the Apple logo, Mac, PowerMac G4, PowerMac G5, Xserve, Xserve RAID, PowerBook, iBook, Airport, AirPort Extreme, iMac, eMac, iLife, iMovie, iCal, iPhoto, iTunes, QuickTime, FireWire, iPod, iSight, AppleWorks, Macintosh, Jaguar, Panther, Mac OS, Mac OS X and Mac OS X Server are trademarks of Apple Computer, Inc.