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 BeatCrazy » Sun Jul 31, 2011 2:06 pm

Interesting. What network settings in OS X would I need to check into?

Yes, AFP is turned on in the NAS. My screen looks exactly like yours above, except I also have a box to Advertise AFP service over AppleTalk. I checked that too, makes no difference.

I can access the files on the share just fine. But obviously I need to do additional steps!
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 KillerBob » Sun Jul 31, 2011 2:55 pm

Hi,

Check out the forum discussion I haf a few years ago, dealing with exactly this topic:

https://discussions.apple.com/thread/14 ... 0&tstart=0

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: 435
Joined: Sat Dec 09, 2006 10:41 am
ReadyNAS: Pro

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

Postby BeatCrazy » Sun Jul 31, 2011 3:12 pm

KillerBob wrote:Hi,

Check out the forum discussion I haf a few years ago, dealing with exactly this topic:

https://discussions.apple.com/thread/14 ... 0&tstart=0

KB


Reading that thread, it appears your solution was to tell the NV+ to advertise AFB over Bonjour, which is what I've done. That still doesn't allow OS X to see the data in the Get info.
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 sphardy » Mon Aug 01, 2011 1:26 am

The lack of share info is due to the way you are selecting the share

You appear to have selected your NAS in the Finder sidebar and then the share that appears in the right pane - that will not show the requested info as Finder considers the share unmounted.

Instead you need to select the mounted share itself from the finder sidebar and then do "Get Info". Alternatively double click on the share and when the shares files/folders are shown in the right finder pane, but without selecting any file/folder, do a "Get Info"

Here I reproduce the issue as confirmation:

Image

Back to your original issue - there are reports of problems with Lion mounting AFP shares via the command line (not just for ReadyNAS users and not all users are affected - Google around for confirmation)

That said, the correct command is:

Code: Select all
mount -t afp <source> <destination>

For example:

Code: Select all
mount -t afp afp://mynas.local/backup /mnt/backup

I confirmed the above does work for me, though note my NAS is still running 4.2.17

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 » Mon Aug 01, 2011 7:11 am

sphardy, thank you! I will try this later today.

For the command:
Code: Select all
mount -t afp afp://mynas.local/backup /mnt/backup


Does my NAS name need to be designated as:

afp://nas-01-XX-XX/share
or
afp://192.168.1.XXX/share
?
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 sphardy » Mon Aug 01, 2011 7:33 am

It can be any name recognised by your mac - but the options will depend on different factors and what name services are available on your network

For purely Mac users:

IP address is safest, then "mynas.local" or "mynas (AFP)._afpovertcp._tcp.local" (change 'mynas' to the name of your own NAS)

typo corrected
Last edited by sphardy on Mon Aug 01, 2011 10:56 pm, edited 1 time in total.

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 » Mon Aug 01, 2011 7:40 am

I use fixed LAN IP for the ReadyNAS, I may try it with IP, first.

EDIT: I need to remember to add the .local!

afp://192.168.1.XXX.local/share
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 » Mon Aug 01, 2011 6:53 pm

sphardy wrote:
Instead you need to select the mounted share itself from the finder sidebar and then do "Get Info". Alternatively double click on the share and when the shares files/folders are shown in the right finder pane, but without selecting any file/folder, do a "Get Info"


:x I tried all the steps you described, still not getting any info from "Get Info".

sphardy wrote:
Code: Select all
mount -t afp afp://mynas.local/backup /mnt/backup

I confirmed the above does work for me, though note my NAS is still running 4.2.17



Oh for two!

I tried each way (making sure to include the .local) with both IP, and NAS name, and only get:

Code: Select all
mount: realpath /mnt: No such file or directory


This is really frustrating, because I can absolutely manually mount the share, and it shows as (AFP) in Finder.

And I did do a sudo mkdir /Share before I tried these.
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 » Mon Aug 01, 2011 7:18 pm

Actually, I did get the Get Info to work!

That helped me find the right path to do the mount, but it still doesn't work!

Here's what I'm trying:

Code: Select all
mount -t afp afp://nas-XX-XX-XX (AFP)._afpovertcp._tcp.local/Share /mnt/Share


and I get:
Code: Select all
-bash: syntax error near unexpected token '('


EDIT: I tried something else....Does this mean success?

Code: Select all
usage: mount [-dfruvw] [-o options] [-t external_type] special node
       mount [-adfruvw] [-t external_type]
       mount [-dfruvw] special | node
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 sphardy » Mon Aug 01, 2011 10:54 pm

Sorry - typo in one of the hostnames in my last post.

Code: Select all
mount -t afp "afp://nas-XX-XX-XX (AFP)._afpovertcp._tcp.local/Share" /mnt/Share


Presuming /mnt/Share exists

Also can I recommend that you take a little time to try to understand the commands you are entering. Your last posts seem to indicate you are just trying different combinations in the hope you stumble on the right one

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 3:57 am

sphardy wrote:Sorry - typo in one of the hostnames in my last post.

Code: Select all
mount -t afp "afp://nas-XX-XX-XX (AFP)._afpovertcp._tcp.local/Share" /mnt/Share


Presuming /mnt/Share exists

Also can I recommend that you take a little time to try to understand the commands you are entering. Your last posts seem to indicate you are just trying different combinations in the hope you stumble on the right one


Well, it's been 20 years since I last took a programing class, and it wasn't Unix! ;-)

Still no success, I'm close to giving up.

Code: Select all
mkdir: /Music: File exists
mini2011:~ Mini2011$ mount -t afp "afp://nas-XX-XX-XX (AFP)._afpovertcp._tcp.local/Music" /mnt/Music
mount: realpath /mnt: No such file or directory
BeatCrazy
Advanced ReadyNAS User
 
Posts: 110
Joined: Tue Dec 19, 2006 8:39 pm

AFP auto mount on ReadyNAS startup (OSX 10.5.5)

Postby sphardy » Tue Aug 02, 2011 5:44 am

As the error states there is no path /mnt - and your other commands seem to be creating folders in the root of your OSX filesystem eg /Music rather than as /mnt/Music or wherever you want to mount your shares

Are you familiar with creating a folder structure with subfolders?

The command I gave you was an *example* that must be adapted to your setup which is unique to you (and why I suggested you learn more to understand the command rather than continuing as you are)

In that last example I mounted the nas share so that it appears as the folder /mnt/Share on your mac, as stated "presuming that /mnt/Share already exists"

So create the mount point ( ie folder) where you want the share to appear and then adapt the mount command based on the syntax:

mount -t afp source destination

Where source is the nas share (beginning afp://) and destination is the folder on your mac where you want the share to appear. Eg /Music or /mnt/Music or wherever makes sense for you

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 6:01 am

Thank you again sphardy, for your responses.

Yes, I do understand the logic behind what I'm trying to do. I actually have done this type of thing, in the past, even if I muddle through it.

For "presuming that /mnt/Share already exists", I thought I made that Share path via "mkdir /Share", in my case "mkdir /Music". Is that not correct?

I am starting to think my understanding of creating a share vs. creating a directory path (folder) in the Mac OS are two different things?

I still think this syntax should work:
Code: Select all
mount -t afp "afp://nas-XX-XX-XX (AFP)._afpovertcp._tcp.local/Music" /mnt/Music


Replacing XX with my appropriate letters/numbers. I don't presume I should be replacing the ._afpovertcp._tcp.local with anything?
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 sphardy » Tue Aug 02, 2011 8:41 am

First let''s clarify terms - just to be sure we're both using them consistently

A "share" - in this instance - refers exclusively to your NAS and is defined as a network accessible folder on the NAS which you control the contents of and access rights to.

A "mount point" is a folder on your Mac which, once the share is mounted by the Mac, is where you see the contents of the NAS share

So if we assume you are trying to, for example, mount a share called "music" such that it is mounted at the mount point "/mnt/music" (ie "music" being a subfolder of folder "mnt", which is in the root of your OSX filesystem)

Create parent folder of mount point /mnt:
Code: Select all
mkdir /mnt

Create mount point:
Code: Select all
mkdir /mnt/music

or
Code: Select all
cd /mnt
mkdir music

Mount share:
Code: Select all
mount -t afp "afp://nas-xx-xx-xx (AFP)._afpovertcp._tcp.local/music" /mnt/music


Notes:

- the above is exactly what finder does when you mount a share via the finder GUI - but it uses the parent folder /Volumes instead of /mnt
- parent folder /mnt was only an example - you can use virtually any name, or even none - it's up to you. Your key error has been not creating the mount point correctly (
- the share name abov must be in quotes because of the space character in the name (between nas-xx-xx-xx and (AFP) ), else you get an error as previously reported

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 8:51 am

Thank you for taking the time to explain that. I was not using the terms consistently, and now have a better understanding of each.

My error was in never creating the /mnt parent folder mount point. For some reason, I assumed that already existed, as part of the OS.

I think I can get this to work now. I appreciate your examples above.

Should I remove the /Music parent that I created by mistake?
BeatCrazy
Advanced ReadyNAS User
 
Posts: 110
Joined: Tue Dec 19, 2006 8:39 pm

PreviousNext

Return to Mac / OS X



Who is online

Users browsing this forum: No registered users and 5 guests