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
Solved

mount share in terminal

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

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

Suggested Solutions

Title # Comments Views Activity
MAC Startup Program 12 54
Adding a continue option in a script 9 55
Safari Won't Go Full Screen 7 89
Problem to App 4 97
If you other experts are anything like me you are always looking into and testing out new features. While I was doing some research one day I ran across an app that I installed on my Mac and used as a security system. Mac OS X: SecureHome uses your …
The /etc/authorization file in Mac OS X 10.x can be used to control access to the various panes of the System Preferences amongst other things. It’s used by some of us Mac Sys Admin’s to give Standard Users access to System Prefs panes that only adm…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

837 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