Can't get mount_afp to work
Hi - I have written a small script to mount the disk of another iMac running Leopard. I can mount the disk no problem using the Finder "Connect to Server..." menu option but when I try doing this from a shell script I always get an error:
sh-3.2# ./mount.sh
/Volumes/bbb hd not mounted
/bin/mkdir "/Volumes/bbb hd"
total 16
drwxrwxrwt@ 6 root admin 204 3 Oct 12:44 .
drwxrwxr-t 37 root admin 1326 29 Sep 22:02 ..
drwx------ 13 mmm staff 918 3 Oct 07:25 aaa
drwxr-xr-x 2 root admin 68 3 Oct 12:44 bbb hd
lrwxr-xr-x 1 root admin 1 3 Oct 07:24 drago hd -> /
lrwxr-xr-x 1 mmm admin 15 3 Oct 07:24 iDisk -> /Volumes/aaa
/sbin/mount_afp "afp://root:[email protected]/bbb hd" "/Volumes/bbb hd"
mount_afp: AFPMountURL returned error 1, errno is 2
Refreshing Disk Arbitration ...
As you can see the mount point is there but no matter what I try I get this error 1.
Looking on the INternet I found a few postings, mainly to do with Apple TV, and I can confirm that everything is in place:
sh-3.2# ls -al /System/Library/Filesystems
total 24
drwxr-xr-x 19 root wheel 646 12 Sep 12:09 .
drwxr-xr-x 63 root wheel 2142 28 Sep 14:46 ..
-rw-r--r--@ 1 mmm staff 6148 6 Mar 2008 .DS_Store
drwxr-xr-x 7 root wheel 238 23 Jul 05:56 AppleShare
drwxr-xr-x 7 root wheel 238 23 Jul 05:39 URLMount
lrwxr-xr-x 1 root wheel 49 23 Jul 05:36 afpfs.fs -> /System/Library/Filesystems/AppleShare/afpfs.kext
drwxr-xr-x 6 root wheel 204 24 Sep 07:12 cd9660.fs
drwxr-xr-x 3 root wheel 102 10 Jun 03:41 cddafs.fs
drwxr-xr-x 5 root wheel 170 5 Mar 2008 ftp.fs
drwxr-xr-x 5 root wheel 170 23 Jul 05:36 hfs.fs
drwxr-xr-x 4 root wheel 136 10 Jun 03:43 msdos.fs
drwxr-xr-x 3 root wheel 102 29 Nov 2007 nfs.fs
drwxr-xr-x 4 root wheel 136 10 Jun 14:29 ntfs.fs
drwxr-xr-x@ 8 root wheel 272 12 Sep 12:09 retrospectcd.fs
drwxr-xr-x 3 root wheel 102 10 Jun 14:37 smbfs.fs
drwxr-xr-x 4 root wheel 136 10 Jun 04:42 udf.fs
drwxr-xr-x 4 root wheel 136 7 Mar 2008 ufs.fs
drwxr-xr-x 4 root wheel 136 10 Jun 14:35 webdav.fs
drwxr-xr-x 4 root wheel 136 10 Jun 16:17 zfs.fs
sh-3.2# ls -al /System/Library/Filesystems/AppleShare
total 160
drwxr-xr-x 7 root wheel 238 23 Jul 05:56 .
drwxr-xr-x 19 root wheel 646 12 Sep 12:09 ..
-rwsr-xr-x 1 root wheel 38704 5 Mar 2008 afpLoad
drwxr-xr-x 3 root wheel 102 10 Jun 03:43 afpfs.kext
drwxr-xr-x 3 root wheel 102 10 Jun 04:49 asp_tcp.kext
drwxr-xr-x 3 root wheel 102 23 Jul 05:56 check_afp.app
-rwxr-xr-x 1 root wheel 38144 5 Mar 2008 sshHelper
sh-3.2# ls -al /sbin/mount_afp
-r-xr-xr-x 1 root wheel 46928 5 Mar 2008 /sbin/mount_afp
I just don't know what's wrong.
Any suggestions welcome.
Cheers
Michael
I continued my investigation and noticed that I was getting the same "error 1" message when the remote computer wasn't even switched on. This led me to believe that the mount attempt wasn't even sent to the remote computer. I did a snoop on the network i/f and there was indeed no activity when I ran this command from a root shell:
sh-3.2# /sbin/mount_afp "afp://root:[email protected]/bbb hd" "/Volumes/bbb hd"
mount_afp: AFPMountURL returned error 1, errno is 2
So I tried a different approach and ran this:
sh-3.2# /sbin/mount_afp -i "afp://[email protected]/bbb hd" "/Volumes/bbb hd"
Password:
mount_afp: AFPMountURL returned error -5023, errno is -5023
This was confirmed in the snoop log:
Data Stream Interface
Flags: Reply (0x01)
Command: Command (2)
Request ID: 3
Error code: user not authenticated (-5023)
Length: 0 bytes
Reserved: 0x00000000
I checked the destination machine and file sharing and remote login are enabled. I can ssh into the machine and username and password are correct. Yet, when trying to use mount_afp I get "user not authenticated".
Cheers
Michael
Similar Messages
-
Have entrourage and want to use Mail. Can't get it to work.
I had a macbook and purchased the Microsoft office for Mac which included Entrourage.
I have now purchased a new macbook Pro and want to begin to use Mail rather than Entrourage.
I have Entrourage on my new computer but i can't get it to transfer my information to the the Mail program
I am on Charter.net at my office and sbcglobal.net at home.
How can i get this to work. I can receive on Mail, but i can't send.check your outgoing port settings and make sure it's using a specific port and not the default port, also you might want to check to see if it is using SSL, TLS or any other encryption. Verify the setting from your old machine setup.
-
got my password wrong twice and my mini is disable. I connected to iTunes, but can't get it to work. Can some one guide my through?
If it's showing the red disabled screen due to incorrect passcodes then you may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad via your computer's iTunes and restore/resync your content to it
-
HT1151 i have a new apple external dvd drive, and i can't get it to work with my iMac?
I have a new apple dvd drive, I was told it will work with my imac, but when i plug it in ...nothing... iv been for update... still nothing. How can i get it to work???
If it is this drive, note that it is for MBA's and Mini's only:
http://store.apple.com/us/product/MC684ZM/A
Ciao. -
Is there a way to reset my messages account, I can't get iMessage to work on IPad nor Mac osx. Help please this is really frustrating.
Hi,
Is there an iPhone involved ?
If not, what happens if you remove the Apple ID on the iPad and then set it in Airplane Mode (allow a couple of minutes at this point) followed by re-adding the Apple ID ?
What, if any error messages are appearing on the Mac when you try to launch the App or Login to the iMessages server ?
Is the Apple ID linked to an iCloud account ?
In Messages 7 (Mountain Lion) this did not seem to be important but it seems it is in Mavericks/Messages 8
9:14 pm Friday; April 11, 2014
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
I bought an IR receiver and an Apple Remote, and I can't get it to work. What am I doing wrong? The receiver is a Lenovo eHome OVU430006/01 USB IR Receiver.
Hello,
You would need to pair the Apple Remote with the receiver. So I would use the generic Mac/PC receiver and follow these instructions:
http://support.apple.com/kb/HT1619
If that doesn't work then check in System Profiler to see if the IR receiver has been recognized by the PowerBook's hardware. You may require the install of drivers for this device to be recognized.
Best of luck -
I have a go daddy email account and I can't get it to work on my iPad
I have a go daddy email account and I can't get it to work on my iPad
Try turning the email account off and then turn it on again. Settings>Mail, Contacts, Calendars>select your gmail account>Off. Go to the mail app and then come back to the account in the settings and turn it on again.
If you can't find any other way for the iPad to accept the password, delete the email account and then add it back onto the iPad. -
I have a Mac Mini and I can't get it to work with my Ricoh Aficio MP 161. Any ideas?
I have a Mac Mini and I can't get it to work with my Ricoh Aficio MP 161. Any ideas?
The latest Apple driver support begins with the MP 171.
Here is Ricoh's official driver download page specifically for the Afico MP 161. Note that new drivers for this device were released on Aug 2, and include Lion and Mountain Lion.
Hopefully, this will solve your device issues. -
Iphone 5 went black. Tried pushing on/off and circle at the same time. Worked yesterday and then did it again today. Can't get it to work.
You need to hold those button longer until you see the apple logo, then release, then wait for the phone to boot back up.
-
I just bought a new computer and had files transferred along with itunes to the new computer. I can't get it to work. It doesn't recognize the extensions for itunes. I also tried downloading Quicktime and couldn't get it to download.
iOS: Device not recognized in iTunes for Windows
I would start with:
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7 -
I bought a DATAPILOT to transfer pictures to my macbook and can't get it to work. Any suggestions please?
Best if you try and explain what you are trying to acheive.
Iphoto is a different paradigm than you're used to. I don't understand why you are trying to transfer your edited photos back to an external disk.
There are tutorials here
http://www.apple.com/findouthow/photos/
Regards
TD -
I have signed up for adobe conversion to microsoft word and i can't get it to work - can you help me
I have signed up for adobe conversion to microsoft word and I can not get it to work - can you help me?
Hi Mike,
I've checked your account. I see that you just purchased the subscription this morning. The order is still pending processing, which is why you haven't yet been able to log in an use your subscription. It can take 24-48 hours for a subscription to process fully. Once it does, you'll be able to log in and convert files.
I apologize for the inconvenience.
Best,
Sara -
Trying to connect 2010 Mac mini to alba hd tv but can't get it to work, any theories?
Trying to connect 2010 Mac mini to alba hd tv but can't get it to work, any theories?
Welcome to the Apple Community.
The iPad 1 is only able to do basic AirPlay, many providers of programming have blocked their apps from working with AirPlay. -
I just bought Quick time Pro and I can't get it to install. It shows a yellow box in my application folder, but I can't get it to work. Help!
you launch QT then go to its REGISTRATION
-
Downloaded the App Sales Call Manager. I can't get it to work on either my Iphone 4s or my Ipad2? Can anybody advise how to fix or even get back my money that i paid for it?
Contact the app developer for support. A link to their website will be in the apps description in the AppStore.
Maybe you are looking for
-
GR/IR account showing open balance in FBL3N
Hi All, There are no open GRN for booking still there is difference of amount in FBL3N. what could be the reason for showing open line item in fbl3n? Thanks chinna
-
How to remove the element with Iterators
I have a programm like this Vector ts = new Vector(); ts.add("abc"); ts.add("abd"); Iterator it = ts.iterator(); ts.remove("abc"); it.remove(); while(it.hasNext()) { System.out.println("val = " + it.next()); } What is the problem if I use remove with
-
Can I take the user input in SQL or PL/SQL please tell the procedure how can I do that suppose I am interested to get the information of the employee by respect to his age where age will be the user input (any person who will run the query prompted t
-
AD Authentication error from Infoview - BO XI R2
We have installed BO XI R2 in a Windows 2003 Enterprise R2 environment, Our CMS is in one server and the Web Application Server is in another server in Windows 2003 Server using IIS as the web server. We configured the CMC to use windows authenticat
-
WTK http stack implementation bug: malformed URL
Hi the WTK emulators dont parse URLs correctly. The following code throws an "java.lang.IllegalArgumentException: malformed URL" exception. It works on most phones and the SonyEricsson J2ME SDK tho. c = (HttpConnection) Connector.open("http://www.495