?
Solved

mount share in terminal

Posted on 2009-05-11
7
Medium Priority
?
562 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 2000 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
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…

752 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