Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I tried to use mount_afp afp://user:111@127.0.0.1/home ~/Documents to mount the ~/Documents folder to the shared folder, but it shows the error like below:

mount_afp: AFPMountURL returned error 62, errno is 62

What am I doing wrong?

share|improve this question

migrated from stackoverflow.com May 14 '12 at 2:13

This question came from our site for professional and enthusiast programmers.

2 Answers 2

I don't think Mac OS X allows you to connect to your own machine for AFP mounts. For example, if you go to the Finder, select Go > Connect to Server, and type "afp://localhost", it puts up a dialog saying:

Connection Failed
The server "localhost" is available on your computer. Access the volumes and files locally.

share|improve this answer

Not exactly a solution to your problem, but I suggest you to create alias instead.

It's doing exactly what you wanted to do.

But if you still want to afp to local machine, read here.

It involves creating a SSH tunnel to trick OS X of connecting to another machine while it's just localhost.

ssh -L 1548:localhost:548 mypowerbook.local

1548 is the fake port, and mypowerbook.local is your machine's host name. You do need root for this.

Then connect to the afp server with "localhost:1548", and it should work.

But, it's an outdated post, I'm not sure if it will work. Anyway, good luck!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.