Solved

mount share in terminal

Posted on 2009-05-11
7
552 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
  • 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MAC Startup Program 12 47
Mac devices Integration with Active Directory 3 51
adobe premier render 10 50
Migrate Application To New Mac 5 52
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

822 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