Jump to content

Mount SMB Network Drive permanently


  • Please log in to reply
3 replies to this topic

#1
StefanM

StefanM

    InsanelyMac Protégé

  • Members
  • Pip
  • 41 posts
Hi,

how do i mount a smb network drive permanently in Mac OSX Leopard?
when i connect to a server, the connection is lost after next restart!

I want to use a smb network share for parallels and also always use this drive for my documents.

So i need a permanent connection.
This was possible in Tiger...

#2
ntsmkfob

ntsmkfob

    InsanelyMac Geek

  • Donators
  • 225 posts

Hi,

how do i mount a smb network drive permanently in Mac OSX Leopard?
when i connect to a server, the connection is lost after next restart!

I want to use a smb network share for parallels and also always use this drive for my documents.

So i need a permanent connection.
This was possible in Tiger...


Create script (Applications/Applescript/Script Editor) containing :
try
tell application "Finder"
mount volume "smb://john:pswd@ls-gl5d7/cctvpatio"
mount volume "smb://john:pswd@ls-gl5d7/macstuff"
mount volume "smb://john:pswd@edmini/share"
end tell
end try

with your own user id and password. Save the script as say Mounts in Users/John/Library/Scripts

Go to System Preferences/Accounts/Login Items and add it (Mounts) to your startup list.

On reboot, it will make the links.

#3
Halfabit

Halfabit

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
  • Location:Moskaw

Hi,

how do i mount a smb network drive permanently in Mac OSX Leopard?
when i connect to a server, the connection is lost after next restart!

I want to use a smb network share for parallels and also always use this drive for my documents.

So i need a permanent connection.
This was possible in Tiger...


Another way (without scripting):

1. Mount drive in Finder
2. Go to System Pteferences > Accounts > Login Items
3. Add this drive in the list of objects as if it were an application ;-)

#4
Ashtor

Ashtor

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

Create script (Applications/Applescript/Script Editor) containing :
try
tell application "Finder"
mount volume "smb://john:pswd@ls-gl5d7/cctvpatio"
mount volume "smb://john:pswd@ls-gl5d7/macstuff"
mount volume "smb://john:pswd@edmini/share"
end tell
end try

with your own user id and password. Save the script as say Mounts in Users/John/Library/Scripts

Go to System Preferences/Accounts/Login Items and add it (Mounts) to your startup list.

On reboot, it will make the links.

 

Thank you for this ! Works like a charm and is easily updated.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy