NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
nd
Dec 08, 2008Aspirant
AFP auto mount on ReadyNAS startup (OSX 10.5.5)
Hi there
Is it possible to get some of the shares automatically mounted, when the NAS ist started up? Or even better as soon as the ReadyNas is visible in the Finder? This would also allow me to connect my macbook to the network when the ReadyNas is already running and get my shares auto mounted...
Thx in advance!
Is it possible to get some of the shares automatically mounted, when the NAS ist started up? Or even better as soon as the ReadyNas is visible in the Finder? This would also allow me to connect my macbook to the network when the ReadyNas is already running and get my shares auto mounted...
Thx in advance!
87 Replies
Replies have been turned off for this discussion
- KillerBobAspirantI like that solution, it is at least easier than logging off and back on again. However, I now have the folder on the desktop, with the links to the shares, but when I drag to the dock, it becomes another folder. So when I click on it, it opens and I see the share links inside. If I select any one of these, it will create the share link on the desktop.
How do you get it to do all share links when clicking on the folder in the dock?
KB - fixmacsGuideThe simplest solution is to turn off OS sleep. Allow the display to go to sleep but not the computer. The screen uses most of the energy. Set computer to Never in the Energy Saver.
As for the folder of aliases, if you put the folder left of the separator, in the application section of the Dock, the volumes should automount. If not, you can always do Cmd-A (select all), then double-click on any single alias.
Or....use Folder Actions (right click: More: Enable Folder Actions) and use the Mount Network Volume action...
Good luck. - Earl0101AspirantIn case anyone is interested in auto mount using a script, I have been using the script below successfully.
I've created one for each share that I frequently use and run it as 'login item' per the instructions.
For shares I use less frequently I run the created application only when I need it
Earl---------------------------------------------------------------------
(* This script will provide the needed User and password information
to Mount any desired NAS share without a dialog box.
To use:
1) Cut and past this script into the Apple "Script Editor" application
2) Set the name variables NAS_Location, NAS_share, NAS_user, NAS_pw,
User_LongName, and User_boot according to the instructions provided
3) Under the File menu choose "Save As"
4) Select File Format: Application
5) Check-box for "Run Only" and uncheck any other boxes ** see warning below **
6) Choose location (& new name if desired) to put application
7) Click Save
For automatic mounting at login:
1) In Finder, open System Preferences
2) Select Accounts
3) Select the Login item tab
4) Click + and add the application
**********************************************************
** WARNING **
** If you don't use "Run Only" Other users will be able **
** to use the Script Editor to see your password. **
** WARNING **
** If anyone gets a hold of this application they may have access to the **
** share with all privileges of the user/password combo you entered **
** by renaming their HD and creating a equivalent username! **
** (remove "as user name NAS_user with password NAS_pw" to disable) **
** WARNING **
**********************************************************
*)
set NAS_Location to "afp://192.168.1.xxx/" -- Location of NAS (in this cas the IP address... but can also use format: "afp://NASname.local./share_name" with desired 'NASname' and 'share_name' )
set NAS_share to "name_of_share" -- NAS share to mount (see "Shares listings" below "Shares" selection in "ReadyNAS Frontview" GUI; pick a Share Name you want to mount)
-- *** The name and password below essentially are coded into the script; this shouldn't be an issue if you are the only one with access to the file...
set NAS_user to "myname" -- ReadyNAS user/Group name to use (see "User & group Accounts" below "Security" selection in "ReadyNAS Frontview" GUI; pick a Name with proper access)
set NAS_pw to "mypassword" -- ReadyNAS user password to use corresponding to Name selected above
-- The two items below attempt to make the script somewhat safer in that it will only run if the specified user is logged in utilizing the specified startup disk
set User_LongName to "SysUser" -- Apple name of desired user allowed run the application (Select "System preferences" from the apple menu and pick "Accounts": see the name listed next to "User Name:")
set User_boot to "SysBoot" -- Apple name of boot volume at run time (Select "About this Mac" from the apple menu and see the name listed next to "Startup Disk")
set rtn to "
"
---------------------------------------------------------------------------------
set SystemInfoList to system info
set runTime_ShortName to short user name of SystemInfoList
set runTime_LongName to long user name of SystemInfoList
set runTime_boot to boot volume of SystemInfoList
set NAS_vol to NAS_Location & NAS_share
-- display dialog "Long name: " &c_LongName &rtn &"boot: " &c_boot &rtn&rtn "Long name: " &User_LongName &rtn &"boot: " &User_boot buttons {"Cancel"}
get system info
if runTime_LongName is equal to User_LongName then
if runTime_boot is equal to User_boot then
if (list disks) does not contain NAS_share then
try
mount volume NAS_vol as user name NAS_user with password NAS_pw
on error number errorNumber
-- it didn't happen (Finder will alert user)
end try
end if
else
display dialog "(bt) " & rtn & "File deleted for" & rtn & runTime_LongName & " on " & runTime_boot& "/" & User_boot & rtn buttons {"OK"}
return
end if
else
display dialog "(nm) " & rtn & "File deleted for" & rtn & runTime_LongName & "/" & User_LongName & " on " & runTime_boot & rtn buttons {"OK"}
return
end if
on quit
continue quit
end quit - Earl0101Aspirant... Should note that my configuration assigns a fixed Ethernet IP address instead of DHCP. This is defined in "Interfaces" below "Network" selection in "ReadyNAS Frontview" under Ethernet Tab.
Perhaps stating the obvious here but if you don't use a fixed IP address don't use it for the 'NAS_Location' variable.
Earl - fixmacsGuideDo you have a specific reason for not upgrading to 10.5.7?
- KillerBobAspirantIn 10.5.8 Apple screwed something up!!! I have the shares in my login items, and it has worked for ages. Now when I log in they get an icon on the desktop, AND they open up. I do not want them to open up!
Any suggestions how to make them not open up?
KB - dmgloverAspirantYou are correct. I had the same problem with 10.5.6. Apple fixed it with 10.5.7 and now with 10.5.8 I have the finder window opening with my shares at start-up. I have no idea how to get this fixed myself other than do not mount at login....
- wardieAspirantI'm using an AppleScript solution, see old post here:
viewtopic.php?f=28&t=21288&p=125889&hilit=script#p125889
It has worked fine for me under any 10.5.x and without any dropout issues following sleep (Pro or Book) and doesn't open the Finder windows under 10.5.8 either. - KillerBobAspirantHi wardie,
I have followed the script to the letter, and saved it as an Application. When I run it from the script editor all works fine. However, saved as an APL, and run from the desktop, or in the login items, it does not work???
The error is "Connection failed", and I only get this error (one time for every share) if I have any of the shares not already on the desktop.
My path to the shares is "afp://NASNAME (AFP)._afpovertcp._tcp.local/SHARENAME"
Thanks in advance for any suggestions...
KB - SpudGeekAspirantI have created aliases to my two mounts. Once mounted with the mounts displayed on my desktop, I added them to my login items. Works a treat when the ReadyNAS is powered on and I login to my OSX account.
What fails is when the ReadyNAS is booted (scheduled to shut down every night and power up every morning), the ReadyNAS (CIMS & AFP) appear under the Finder "SHARED" items but the Shares do not mount. When I try to mount using the Aliases, I receive a connection error (takes about a minute to get the error).
When this occurs I go to my ReadNAS Admin URL and stop and start the AFP service, then [re-]select the aliases and I'm back in business. So it would seem that there's something hokey about broadcasting the AFP service after a shutdown/restart of the ReadyNAS - remember ReadyNAS shows up under "SHARED" items in Finder but choosing the Aliases does not work.
Sure, Bonjour Mounter sounds like it might be a solution but it's feels to me like a workaround to a NetGear problem.
Thoughts anyone?
OSX 10.5.7
ReadyNAS Pro Pioneer Edition [X-RAID2] / Firmware: RAIDiator 4.2.4
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!