Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to mount a network drive via AFP on an Ubuntu 10.04 server machine. After installing AFP support, I use the following command:

sudo mount_afp afp://USER:PASS@afp.host.com/directory/ /media/dir

This seems to work and it tells me that mounting succeeded. However, when I navigate to /media/dir I get the following error:

cd: cfs: Input/output error

Permissions in /media are:

d?????????  ? ?              ?                ? dir/
drwx------ 12 user        4.0K 2010-10-25 16:08 otherdisk/

So there is a permissions problem here. I eventually want to mount this drive automatically using fstab. What do I need to do to make the disk accessible?

share|improve this question

1 Answer 1

You need to make sure that the directory was created with a non-root user.

I also recommend uncommenting the user_allow_other line in /etc/fuse.conf, and then adding an entry in /etc/fstab that mounts it as the user that will need to access it (though the group must be fuse), like so:

afpfs#afp://USER:PASS@afp.host.com/directory/ /media/dir fuse user=USER,group=fuse 0 0

Now you should be able to do sudo mount /media/dir and be able to access it.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.