Sponsored Content
Full Discussion: AFP mounting Errors
Operating Systems OS X (Apple) AFP mounting Errors Post 302470305 by sbjones25 on Tuesday 9th of November 2010 05:31:41 PM
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
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
GVFS(7) 						   Conventions and miscellaneous						   GVFS(7)

NAME
gvfs - GIO virtual file system DESCRIPTION
GIO provides a VFS API to GLib applications. It includes a 'local' implementation using POSIX. gvfs provides implementations that go beyond that and allow to access files and storage using many protocols, such as ftp, http, sftp, dav, obexftp, etc. It also provides support for trash folders, for cd burning and for monitoring interesting devices and volumes on the computer. Applications use gvfs indirectly, by means of GIO loading the gvfs module that implements the GIO extension points. The gvfs support for volume monitoring is included in a separate loadable module. The actual gvfs implementation is distributed over a number of processes. None of these are expected to be started from the commandline, except for debugging purposes. Main processes: o gvfsd - the main gvfs daemon o gvfs-fuse-daemon - mounts gvfs as a fuse filesystem o gvfsd-metadata - writes gvfs metadata Volume monitors: o gvfs-udisks2-volume-monitor - a udisks-based volume monitor o gvfs-afc-volume-monitor - a volume monitor for Apple iPhone/iPod Touch devices Mount backends: o gvfsd-afc - mounts iPhone/iPod touch volumes o gvfsd-afp - mounts Apple Filing Protocol volumes o gvfsd-afp-browse - browses Apple Filing Protocol volumes o gvfsd-archive - mounts archive files in various formats o gvfsd-burn - provides a location for burning CDs o gvfsd-cdda - mounts audio CDs o gvfsd-computer - provides computer:// o gvfsd-dav - mounts DAV filesystems o gvfsd-dnssd - browses dnssd o gvfsd-ftp - mounts over FTP o gvfsd-http - mounts over HTTP o gvfsd-localtest - a test backend o gvfsd-network - provides network:// o gvfsd-obexftp - mounts over obexftp o gvfsd-recent - provides recent:// o gvfsd-sftp - mounts over sftp o gvfsd-smb - mounts Windows Shares Filesystem volumes o gvfsd-smb-browse - browses Windows Shares Filesystem volumes o gvfsd-trash - provides trash:// ENVIRONMENT
GIO_USE_VFS If set, specifies the GIO vfs implementation to use. Possible values include 'local' and 'gvfs'. GIO_USE_VOLUME_MONITOR If set, specifies the GIO volume monitor implementation to use. Possible values include 'unix', 'GProxyVolumeMonitorUDisks2', as well as other native volume monitors that are described in the key files in $XDG_DATA_DIRS/gvfs/remote-volume-monitors. FILES
$XDG_DATA_DIRS/gvfs/mounts This directory contains key files describing mount daemons. $XDG_DATA_DIRS/gvfs/remote-volume-monitors This directory contains key files describing remote volume monitors. SEE ALSO
GIO documentation[1], gvfsd(1), gvfsd-fuse(1), gvfsd-metadata(1) NOTES
1. GIO documentation http://developer.gnome.org/gio gvfs GVFS(7)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy