AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Please post anything pertaining to Mac and OS X compatibility issues here.

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby fixmacs » Sat Jul 18, 2009 9:25 am

An MBA is a master's of business administration.

This seems like it is as you suggest--a problem with the MacBook Pro, but not the ReadyNAS.

This is a work-around (not an elegant fix). Create a folder on the desktop. Drag the nine(! why would you have nine shares? oh well) shares into the folder. Then, drag the folder into the Dock. Clicking once on the folder in the Dock will connect to all shares.
fixmacs
ReadyNAS User
 
Posts: 54
Joined: Sun Aug 13, 2006 5:58 pm
Location: San Francisco Bay area
ReadyNAS: NV

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby KillerBob » Sat Jul 18, 2009 10:32 am

I 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
Mac Pro (2.8GHz 8C, 16GB RAM, 960GB Accelsior, 500GB SSD, 2x750GB RAID0) - MacBook Pro (15", 2.66GHz i7, 8GB RAM, 250GB SSD) - MacBook Pro (15", 2.53GHz, 8GB RAM, 250GB SSD) - MacBook Air (2GHz i7, 8GB RAM, 250GB SSD) - Mac Mini (2.3GHz, 8GB RAM, 500GB) - Pro Pioneer (3x3TB + 3x1TB) - Ultra 2 (2x3TB) - Time Capsule (3TB)
KillerBob
ReadyNAS Expert
 
Posts: 436
Joined: Sat Dec 09, 2006 10:41 am
ReadyNAS: Pro

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby fixmacs » Sat Jul 18, 2009 12:46 pm

The 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.
fixmacs
ReadyNAS User
 
Posts: 54
Joined: Sun Aug 13, 2006 5:58 pm
Location: San Francisco Bay area
ReadyNAS: NV

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby Earl0101 » Fri Jul 31, 2009 9:50 am

In 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
Code: Select all
---------------------------------------------------------------------
(*   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
Earl0101
ReadyNAS Newbie
 
Posts: 24
Joined: Wed Nov 14, 2007 11:29 am

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby Earl0101 » Fri Jul 31, 2009 10:07 am

... 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
Earl0101
ReadyNAS Newbie
 
Posts: 24
Joined: Wed Nov 14, 2007 11:29 am

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby fixmacs » Fri Jul 31, 2009 12:15 pm

Do you have a specific reason for not upgrading to 10.5.7?
fixmacs
ReadyNAS User
 
Posts: 54
Joined: Sun Aug 13, 2006 5:58 pm
Location: San Francisco Bay area
ReadyNAS: NV

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby KillerBob » Fri Aug 07, 2009 1:08 am

In 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
Mac Pro (2.8GHz 8C, 16GB RAM, 960GB Accelsior, 500GB SSD, 2x750GB RAID0) - MacBook Pro (15", 2.66GHz i7, 8GB RAM, 250GB SSD) - MacBook Pro (15", 2.53GHz, 8GB RAM, 250GB SSD) - MacBook Air (2GHz i7, 8GB RAM, 250GB SSD) - Mac Mini (2.3GHz, 8GB RAM, 500GB) - Pro Pioneer (3x3TB + 3x1TB) - Ultra 2 (2x3TB) - Time Capsule (3TB)
KillerBob
ReadyNAS Expert
 
Posts: 436
Joined: Sat Dec 09, 2006 10:41 am
ReadyNAS: Pro

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby dmglover » Fri Aug 07, 2009 8:14 pm

You 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....
ReadyNAS Duo
RAIDiator 4.1.6
Memory: 1024 MB
Apple AirPort Extreme N (Dual Band)
Linksys SLM-2008 Smart Switch
Apple AirPort Extreme N (Gigabit)
Apple MacBook Aluminum 10.5.8
dmglover
ReadyNAS Newbie
 
Posts: 8
Joined: Sat May 10, 2008 9:27 am
ReadyNAS: Duo

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby wardie » Mon Aug 10, 2009 3:53 pm

I'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.
ReadyNAS NV+, 4x500GB Seagate ST3500630NS, RAIDiator 4.1.6, APC Back-UPS ES 700VA 230V UK
ReadyNAS Duo, 2x1TB Samsung HD103UJ, RAIDiator 4.1.6
wardie
ReadyNAS User
 
Posts: 68
Joined: Thu Aug 09, 2007 1:49 am
Location: London, UK
ReadyNAS: NV+

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby KillerBob » Tue Aug 11, 2009 11:02 am

Hi 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
Mac Pro (2.8GHz 8C, 16GB RAM, 960GB Accelsior, 500GB SSD, 2x750GB RAID0) - MacBook Pro (15", 2.66GHz i7, 8GB RAM, 250GB SSD) - MacBook Pro (15", 2.53GHz, 8GB RAM, 250GB SSD) - MacBook Air (2GHz i7, 8GB RAM, 250GB SSD) - Mac Mini (2.3GHz, 8GB RAM, 500GB) - Pro Pioneer (3x3TB + 3x1TB) - Ultra 2 (2x3TB) - Time Capsule (3TB)
KillerBob
ReadyNAS Expert
 
Posts: 436
Joined: Sat Dec 09, 2006 10:41 am
ReadyNAS: Pro

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby SpudGeek » Tue Aug 11, 2009 12:42 pm

I 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
SpudGeek
ReadyNAS Newbie
 
Posts: 4
Joined: Tue Aug 11, 2009 11:36 am
ReadyNAS: Pro

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby KillerBob » Tue Aug 11, 2009 12:57 pm

That issue has been reported long ago and Chewbacca has promised a fix in the next FW.

KB
Mac Pro (2.8GHz 8C, 16GB RAM, 960GB Accelsior, 500GB SSD, 2x750GB RAID0) - MacBook Pro (15", 2.66GHz i7, 8GB RAM, 250GB SSD) - MacBook Pro (15", 2.53GHz, 8GB RAM, 250GB SSD) - MacBook Air (2GHz i7, 8GB RAM, 250GB SSD) - Mac Mini (2.3GHz, 8GB RAM, 500GB) - Pro Pioneer (3x3TB + 3x1TB) - Ultra 2 (2x3TB) - Time Capsule (3TB)
KillerBob
ReadyNAS Expert
 
Posts: 436
Joined: Sat Dec 09, 2006 10:41 am
ReadyNAS: Pro

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby petespee » Sun Aug 16, 2009 8:20 am

I can confirm this bug is appearing in my setup as well.....


Just set the ReadyNas Pro Pioneer to turn off at midnight and on at 6am for the first time.

This morning, my MacPro could not connect to the AFP Shares. SMB shares were fine.

Stopped the AFP service, restarted it, and immediately the AFP shares appeared.


Peter
petespee
ReadyNAS Newbie
 
Posts: 21
Joined: Thu Jul 30, 2009 10:54 pm
ReadyNAS: Pro

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby benfrain » Mon Aug 24, 2009 6:59 am

Anyone know yet if the same problem exists in 10.6?
benfrain
ReadyNAS Newbie
 
Posts: 48
Joined: Thu Jul 16, 2009 2:42 pm
Location: UK
ReadyNAS: Duo

Re: AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby andy.eakin » Tue Sep 01, 2009 1:21 am

benfrain wrote:Anyone know yet if the same problem exists in 10.6?


Still there fore me on a MacMini & MBP.
andy.eakin
ReadyNAS Newbie
 
Posts: 18
Joined: Tue Aug 25, 2009 3:39 am
ReadyNAS: Pro

PreviousNext

Return to Mac / OS X



Who is online

Users browsing this forum: No registered users and 1 guest