Solved

mount share in terminal

Posted on 2009-05-11
7
559 Views
Last Modified: 2013-12-21
I'm looking for 1 line of code to mount to an apple share that I can connect to using afp://macosxserver/public/ as guest.

I think the command is something like
osascript -e 'mount volume "afp://macosxserver/Public"'
0
Comment
Question by:LouisSanchez
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 32

Expert Comment

by:nappy_d
ID: 24357165
I think you actually need to do this /sbin/mount -t afpfs //ServerName/shareName "/Volumes/shareName"
0
 

Author Comment

by:LouisSanchez
ID: 24363399
I keep getting "mount: realpath /Volumes/testdrive: No such file or directory
0
 
LVL 4

Expert Comment

by:homepup
ID: 24456616
mkdir /Volumes/public; mount_afp "afp://;AUTH=No%20User%20Authent@macosxserver/public" /Volumes/public/
            
0
 
LVL 4

Accepted Solution

by:
homepup earned 500 total points
ID: 24456624
Oops, forgot a space. try:

mkdir /Volumes/public ; mount_afp "afp://;AUTH=No%20User%20Authent@macosxserver/public" /Volumes/public/

use

umount /Volumes/public

to disconnect from it.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question