New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.3 - Mount NFS/SMB Shares in Terminal so they appear on Desktop


Post Reply New Thread Subscribe

 
Thread Tools
icpeanuts

 
Member Since: May 11, 2007
Posts: 5
icpeanuts is on a distinguished road

icpeanuts is offline
How do I mount NFS/SMB Shares in Terminal using the command line in Mac OS 10.3 so the mount appears on the desktop?

I tried the following, but I get an error that the that the directory does not exist.

sudo mount nfsserver:/exported/path /private/mnt

I tried creating the /private/mnt dir, I can access the content when I mount in the /private/mnt dir, but it does not show up on the desktop. Please show me what to do to get this to work. I do not want to use the finder to connect to the nfs share.

Let me know where to edit so the mount will automatically appear on boot. Thanks
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
Quote:
Originally Posted by icpeanuts View Post
How do I mount NFS/SMB Shares in Terminal using the command line in Mac OS 10.3 so the mount appears on the desktop?

I tried the following, but I get an error that the that the directory does not exist.

sudo mount nfsserver:/exported/path /private/mnt

I tried creating the /private/mnt dir, I can access the content when I mount in the /private/mnt dir, but it does not show up on the desktop. Please show me what to do to get this to work. I do not want to use the finder to connect to the nfs share.

Let me know where to edit so the mount will automatically appear on boot. Thanks
Is this what you're referring too?

Automatically mount SMB shares on login

Quote:
To mount a SMB share with the Finder, the classical technique is to go to the Network directory, then to WORKGROUP, then to MACHINE, and then to choose a SHARE. But I want this to be done automatically when I log in. My technique is to run a shell script at login. Using 10.3.0 to 10.3.2, you can simulate the behaviour of the Finder by using this shell command:
cd /Network/WORKGROUP/MACHINE/SHARE
This comment is worth noting:

Quote:
Dunno why people are always coming up with new ways to automount smb at startup. It doens't really get any more simple than mounting your smb once, then dragging the icon AT THE TOP OF THE MOUNTED DRIVES WINDOW into the Login Items PrefPane. It seems to require the icon at the top of the mounted drives icon as opposed to the icon off the desktop, etc. Seems like the only way that you can actually capture the login info so you don't have to enter it each time is using that icon.
Having read the 2nd half of the above, I must add that I just dragged the Mounted Share icon from my desktop and it worked fine.
QUOTE Thanks
icpeanuts

 
Member Since: May 11, 2007
Posts: 5
icpeanuts is on a distinguished road

icpeanuts is offline
I want to mount an nfs share in the terminal so the mounted share appears on the Desktop.
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
Quote:
Originally Posted by icpeanuts View Post
I want to mount an nfs share in the terminal so the mounted share appears on the Desktop.
Automount NFS on MacOS X

NFS from Mac OS X

Quote:
To mount from the terminal:

Use this command:

sudo mount -o -P nfsserver:/exported/path /private/mnt

Make sure you use the P option because NFS communicates through a privileged port, and the Mac default is to try a non-privileged port.

That command should mount your drive on your desktop, or you can access it through the terminal: cd /private/mnt

Mac OS X as an NFS Client
QUOTE Thanks

Post Reply New Thread Subscribe


« Data Recovery | Putting a tigger on g4 350 »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Can't Get Zip Drive To Mount On Desktop grampah Apple Notebooks 4 10-04-2012 08:31 PM
Mount NFS Share via Terminal appear on Desktop icpeanuts Internet, Networking, and Wireless 0 05-18-2007 12:54 AM
FAT Partition won't mount on Mac Desktop wildnight Running Windows (or anything else) on your Mac 1 01-23-2007 10:38 AM
noob question... can you mount a terminal to the desktop? jamesmccain Switcher Hangout 7 09-05-2006 02:11 PM
N-gage MMC doesn't mount on desktop anymore koert Other Hardware and Peripherals 3 03-31-2005 05:37 AM

All times are GMT -4. The time now is 02:17 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?