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 sphardy » Tue Aug 02, 2011 8:57 am

Up to you - I would but then I prefer a clean filesystem

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Image
User avatar
sphardy
ReadyNAS Junkie
 
Posts: 4626
Joined: Thu Feb 28, 2008 3:34 am
Location: France
ReadyNAS: Ultra

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

Postby BeatCrazy » Tue Aug 02, 2011 4:22 pm

Still a no-go.

Latest error is:

Code: Select all
mount_afp: AFPMountURL returned error 1, errno is 1


I know the command I'm using is correct, because it originally returned that the share was already mounted (which it was). So, I restarted the mini and of course the NAS AFP was unmounted. When I did the code again, I got the above message.
BeatCrazy
Advanced ReadyNAS User
 
Posts: 110
Joined: Tue Dec 19, 2006 8:39 pm

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

Postby BeatCrazy » Wed Aug 03, 2011 4:25 pm

Just as a follow-up, I finally did get this to work, but not via command-line.

The same thing can be accomplished via System Preferences->Users & Groups->Current User->Login Items-> + button to add Volume.
BeatCrazy
Advanced ReadyNAS User
 
Posts: 110
Joined: Tue Dec 19, 2006 8:39 pm

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

Postby rcarr6502 » Mon Aug 08, 2011 11:47 am

Using Login Items will work fine. A couple of things to know about AFP mounting of shares:

1. Any shares mounted from a host must all be mounted using the same credentials. ie, you can't mount NAS/share-1 as user jsmith and mount NAS/share-2 as guest. You have to mount all those shares as jsmith or guest.

2. The Login Items method of mounting a share can be slow. You could login, get to the Finder, and find that your share still hasn't mounted yet. Bonjour Mounter seems to be faster in this respect.

3. Mounting of shares by multiple users on a single Macintosh is not fast-user-switching friendly. Let's say your iTunes library exists on your NAS and that you have two local users on your Macintosh. When each user mounts NAS/media, there's no guarantee as to what the mount-point will be. Whoever gets there first will get /volumes/media and the second person to mount it will get /volumes/media-1. Consequently, it's difficult to programmatically set a symbolic link from ~/Music/iTunes to the iTunes library on NAS/media/Music/iTunes.
rcarr6502
Advanced ReadyNAS User
 
Posts: 162
Joined: Tue Feb 17, 2009 8:38 pm

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

Postby BeatCrazy » Mon Aug 08, 2011 7:37 pm

Good tips, thank you.

Luckily I'm the only user. I don't think I can handle any more hiccups for a while.

Yes, mounting this way can either be fast or slow. I've seen it mount immediately, but other times take over a minute after the desktop appears. Too bad I couldn't get the Command prompt method to work, but this gets me the same goal with minimal hassle.
BeatCrazy
Advanced ReadyNAS User
 
Posts: 110
Joined: Tue Dec 19, 2006 8:39 pm

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

Postby Singularity » Mon Oct 24, 2011 4:14 am

Did you manage to sort your problem out.

To auto mount discs or shares you do not need any form of scripting or any other 3rd party software. You can auto mount a disc or share by specifying them as a Login item in your 'User & Groups' of your preferences panel. You could actually specify different shares for different users if required. It is a simple drag and drop routine.

This is by far the easiest way and no need for complicated routines.

Cheers

NAS: Readynas Pro 6 - 3x2TB [ST32000542AS], ReadyNas Duo - 2x1TB [ST31000528AS]
Network: Airport Extreme [Gigabit Ethernet / Wireless], Western Digital 2TB, Virgin Media Super Hub [30Mbps]
Hardware: 24" iMac, 13" MacBook, 11" MacBook Air, 2 x Apple TV2's, iPad 1, iPhone 3G
Clients: OSX 10.7.2, IOS 5.0/4.3, Plex 9.3.4
Music: 1 x Logitech SqueezeBox Classic, 2 x Logitech SqueezeBox Boom's, M-Audio Oxygen 88, Apogee Duet 2
Software: Adobe CS4, Aperture 3.2, Guitar Pro 6, Logic Pro 9, Vectorworks 2009
Singularity
Advanced ReadyNAS User
 
Posts: 146
Joined: Fri Aug 12, 2011 10:31 am
Location: Swansea, UK
ReadyNAS: Pro

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

Postby BeatCrazy » Wed Oct 26, 2011 11:18 am

Singularity wrote:Did you manage to sort your problem out.

To auto mount discs or shares you do not need any form of scripting or any other 3rd party software. You can auto mount a disc or share by specifying them as a Login item in your 'User & Groups' of your preferences panel. You could actually specify different shares for different users if required. It is a simple drag and drop routine.

This is by far the easiest way and no need for complicated routines.

Cheers


Yes, I got this sorted out. I used the method you're describing. Works fine, every time.
BeatCrazy
Advanced ReadyNAS User
 
Posts: 110
Joined: Tue Dec 19, 2006 8:39 pm

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

Postby victorhortaliveson » Sun Nov 27, 2011 11:03 am

What is the situation of this automount wrt using a Win7 Bootcamp partition in Parallels ?
If I automount a NAS share under User Login alternatives (with CIFS) and then start Parallels where the same share is mapped to a Win7 drive, is the share already mounted before Parallels starts ? Or does is it get mounted twice ?

Reason I ask is that if I let my MBA sleep with a Parallels Bootcamp already running it seems to take a long time for NAS shares to be available in Win7. Specifically, if I open Outlook and look for emails (my email store is on the mapped NAS share), then I am likely to get a hung programme for 30 secs or so. If I can mount the share before I open Outlook then maybe this is avoided.
User avatar
victorhortaliveson
Advanced ReadyNAS Expert
 
Posts: 561
Joined: Fri Nov 24, 2006 9:24 am
Location: Xhystos
ReadyNAS: Pro

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

Postby sphardy » Sun Nov 27, 2011 11:22 am

I'm a little confused by your terminology - Parallels enables you to run Windows as a VM, whereas Bootcamp is Apple technology to allow Windows to be run natively on Mac hardware

Either way, Windows will mount the shares separately to OSX unless there is a mode in Parallels to make already mapped shares available to the Windows installation (and you are using that)

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Image
User avatar
sphardy
ReadyNAS Junkie
 
Posts: 4626
Joined: Thu Feb 28, 2008 3:34 am
Location: France
ReadyNAS: Ultra

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

Postby victorhortaliveson » Sun Nov 27, 2011 12:04 pm

OK let's try again.

I'm using my MBA to run Win7 in Parallels. The method I am using involves splitting the MBA SSD drive into 2 partitions, one with OSX installed, the other with Win7 installed via Bootcamp.
Once this is setup, I install and run Parallels in OSX. Parallels allows the Bootcamp partition to be accessed from OSX in a really slick method called "Convergence". In this mode, any Win7 app is available from the dock with only 2 mouse clicks.

So to use this, I boot up OSX (no shares loaded by user login) and then run Parallels to select Outlook that is running in Win7. As part of my Bootcamp setup, I have mapped the NAS share where my Outlook .pst file is located onto a Win7 drive that is mounted when Win7 starts. (Normal stuff in a Win7 environment)

All this works fine, but if I let the MBA sleep with the Parallels Win7 VM active, then there is a lag when awakening which I suspect is the Win7 VM reconnecting the mapped NAS share.

Can I avoid this lag if I mount the same NAS share first in OSX at OSX user startup?

UPDATE : Empirical evidence suggests this doesn't solve the problem, but what might be the theoretical answer ?
User avatar
victorhortaliveson
Advanced ReadyNAS Expert
 
Posts: 561
Joined: Fri Nov 24, 2006 9:24 am
Location: Xhystos
ReadyNAS: Pro

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

Postby sphardy » Sun Nov 27, 2011 1:12 pm

The mode you are using is running Windows as a VM, though using the physical installation installed using Bootcamp (rather than from a disk image for example). As such it will be accessing shares directly, not via OSX, and so mounting in OSX first should not make any difference.

FYI: I have noticed that my macs do tend to take longer to mount CIFS based shares vs AFP - never figured why, but I'm meaning maybe 10-15 seconds mac, not 30 secs as you describe.

NAS: Ultra-4, NV+ & Duo v2 :: ST31500341AS & HDS723020BLA642 Drives
Network: Netgear GS108Tv2 / DM111P :: Airport Extreme / Express & Time Capsule
Clients: OS X 10.6 - 10.8 :: Ubuntu 11.x :: Win 7 + SP#1
UPS: APC ES-550

Image
User avatar
sphardy
ReadyNAS Junkie
 
Posts: 4626
Joined: Thu Feb 28, 2008 3:34 am
Location: France
ReadyNAS: Ultra

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

Postby victorhortaliveson » Sun Nov 27, 2011 2:01 pm

OK thanks. So my empirical test is correct.
I guess I'll have to wait while Win7 re-establishes the CIFS links before firing up Outlook. I did notice that I also get a similar effect in coming out of sleep in native Win7 (on a Win PC), but in that case Outlook tells me it can't find the *.pst file and shuts down. Then it does find it the second time around. Here it seems it doesn't get that far, but hangs while it make up its mind.
User avatar
victorhortaliveson
Advanced ReadyNAS Expert
 
Posts: 561
Joined: Fri Nov 24, 2006 9:24 am
Location: Xhystos
ReadyNAS: Pro

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

Postby cloud » Sun Feb 24, 2013 9:25 am

mark this!
User avatar
cloud
ReadyNAS User
 
Posts: 72
Joined: Thu Jul 26, 2012 6:26 pm
ReadyNAS: Repertoire

Previous

Return to Mac / OS X



Who is online

Users browsing this forum: No registered users and 3 guests