AFP mounting Errors

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) AFP mounting Errors
# 1  
Old 11-09-2010
Question AFP mounting Errors

Hello All,

I've have created a script today that will mount my shared afp volumes to my system successfully, however, I've come across a very interesting issue that I can't seem to get by, so maybe someone will be kind enough to lend some advice. I am working on OS X 10.6.4 and using the terminal. Here's my problem.

To mount an AFP drive, the command I use in the terminal is:
:mkdir /Volumes/DriveName
:mount -t afp afp://Username:Password@10.0.0.1/DriveName /Volumes/DriveName

Works GREAT!Smilie When I use this code in my .sh script, it works as expected ONLY if at least one other volume has been mounted from the shared storage. KICKER If I am trying to mount the FIRST volume to the system I get the following error:
mount_afp: AFPMountURL returned error -5023, errno is -5023
(does anyone know of a place to get information on these error codes?)

What I don't understand is that when I do this manually without the script and no other volumes are mounted I do not get this error. When I run the script and at least one volume is mounted I do not get this error. Only when I have no other volumes mounted at all and I run my script, I get this error. I can recreate this error over and over again.

If anyone has any ideas on how to get around this issue it would be really helpful. This is an unusual issue that I'm not accustom to. I'm not a rookie at shell scripting, but I don't claim to be an expert. If I need to post the script I will be glad to do so. Thanks for any help.


Cheers,
Stephen
# 2  
Old 12-06-2010
How exactly are you running the script? Also, could you post the whole script so I could take a look at it?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to convert AFP files to Text?

Hi I am trying to locate a unix utility to convert AFP files to readable text format There are plenty of windows tools, but I need a unix equivilant. Can anyone help? Sample Windows tool that works: AFP To Text Converter 2 2 Download page - AFP To Text Converter Shareware Download ... (5 Replies)
Discussion started by: frustrated1
5 Replies

2. OS X (Apple)

AFP mount + Chown/Chgrp respecting

Hello all... Does anyone know how to make an AFP mount of home directories (/Volumes/users off of another server) so that any users doing an ssh login retain write permission to their individual folders, read-write permissions to folders chowned to appropriate group... and so that newly created... (0 Replies)
Discussion started by: drkdev
0 Replies

3. Filesystems, Disks and Memory

mounting

I generally use mount many times to mount an iso image or as a bind between directories or mounting a squash file system. Y does one require root permission to do a mount --bind between two of his own directories or just mount an iso/squash image in directory he owns? Also I wish mount had an... (0 Replies)
Discussion started by: bbala
0 Replies

4. BSD

Mounting

Hi I mounted disk which have two partition C: , D: ( i am not sure if both partition have same file system) with this commad: mount -t msdosfs /dev/ad2s1 /mnt/windows but this is mounted only first partition with fat file system. ( in windows XP C: ) How can i mount another partition... (2 Replies)
Discussion started by: sniper007
2 Replies

5. UNIX for Dummies Questions & Answers

Major OS errors/Bash errors help!!!!

Hi all, dummy here.... I have major errors on entering the shell. On login I get: -bash: dircolors: command not found -bash: tr: command not found -bash: fgrep: command not found -bash: grep: command not found -bash: grep: command not found -bash: id: command not found -bash: [: =: unary... (12 Replies)
Discussion started by: wcmmlynn
12 Replies

6. UNIX for Advanced & Expert Users

Extracting data from an AFP file

Hello Anybody any idea how to extract data from an AFP file using UNIX commands? I could make the AFP to PDF or if there is any other to change it to to make the extraction simplar. I'm open to ideas. Cheers (4 Replies)
Discussion started by: Dolph
4 Replies

7. AIX

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (2 Replies)
Discussion started by: mcastill66
2 Replies

8. UNIX for Advanced & Expert Users

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies

9. UNIX for Advanced & Expert Users

AFP & FTP Bandwidth Monitoring?

Is there a way to monitor FTP and AFP bandwidth on a per user basis? AFP = AppleFilesharingProtocol, and by monitor, I don't mean graphs, I mean getting raw byte counts I can use in my scripts any way I choose. I am attempting to use mod_watch to monitor virtual domain bandwidth usage, but I really... (0 Replies)
Discussion started by: l008com
0 Replies

10. Filesystems, Disks and Memory

Mounting...?

Hi everyone, this is the first time I have ever properly used Linux - I run Red Hat Linux 8. I have two hardrives, my main 80gig, and my "extra" 15gig, I would like to be able to gain access to my 15gig and view the files. I know to view files on a floppy disk or a cd you need to mount the... (1 Reply)
Discussion started by: mo0ness
1 Replies
Login or Register to Ask a Question