maschinsky

Automount Network Drives

10 posts in this topic

Hi, All!

 

I just got my brandnew MacPro all new and shiny, installed my software and am generally happy with it's performance and speed. While I'm waiting for the most important software package to be released in universal binary (Avid Media Composer) I primarily use the MacPro for encoding, transcoding and playing World of Warcraft. Man is this thing fast.

 

On my trusty olg G5 I had networkdrives on my NAS set up to automount on boot. I think I did this back in the days by just dragging a mountef network-volume on the start-objects of my user. Anyway it always worked. Now I tried the same thing on the MacPro and the drives don't mount on startup. After e reboot they show up in the startup objects the drives are marked "unknown".

 

What do I do wrong? The NAS (La Cie Network Disk, Volumes are mounted via samba) still automount on the G5.

 

Help appreciated.

 

Florian

0

Share this post


Link to post
Share on other sites

might help us to know what version of OS X the G5 is using.

0

Share this post


Link to post
Share on other sites

Did you drag the share to the startup items (after manually mounting it and saving the password in keychain), or did you accidentally drag the server alias from the Network area in Finder to the startup items?

0

Share this post


Link to post
Share on other sites

I know this is not giving you an answer to why your automount is not working, however I use an applescript applicaiton in my login items to mount drives.

Here is an example for you to customise if you want to try another way.

 

try
--Check to see if the mac is on with ping
set ping_result to (do shell script "ping -c 1 192.168.0.x")

-- If Mac is on; ask which drive to mount, then mount that drive
display dialog "Which drive do you want to mount?" buttons ["Drive1", "Drive2", "Drive3"]
if button returned of result is "Drive1" then
	tell application "Finder"
		mount volume "afp://username1:passwd1@192.168.0.x/Drive1"
	end tell
else if button returned of result is "Drive2" then
	tell application "Finder"
		mount volume "afp://username2:passwd2@192.168.0.x/Drive2"
	end tell
else
	tell application "Finder"
		mount volume "afp://username3:passwd3@192.168.0.x/Drive3"
	end tell
end if

--If Mac is off; error 2 is returned, display the message
on error errStatement number errNum
if (errNum = 2) then
	display dialog "No response was received. Make sure Mac is awake."
end if
end try

0

Share this post


Link to post
Share on other sites

Thanks for the code, but for me anything with programming is beyond me. Will hunt for anwers elsewhere ans keep you posted on any results.

0

Share this post


Link to post
Share on other sites
I know this is not giving you an answer to why your automount is not working, however I use an applescript applicaiton in my login items to mount drives.

Here is an example for you to customise if you want to try another way.

 

try
--Check to see if the mac is on with ping
set ping_result to (do shell script "ping -c 1 192.168.0.x")

-- If Mac is on; ask which drive to mount, then mount that drive
display dialog "Which drive do you want to mount?" buttons ["Drive1", "Drive2", "Drive3"]
if button returned of result is "Drive1" then
	tell application "Finder"
		mount volume "afp://username1:passwd1@192.168.0.x/Drive1"
	end tell
else if button returned of result is "Drive2" then
	tell application "Finder"
		mount volume "afp://username2:passwd2@192.168.0.x/Drive2"
	end tell
else
	tell application "Finder"
		mount volume "afp://username3:passwd3@192.168.0.x/Drive3"
	end tell
end if

--If Mac is off; error 2 is returned, display the message
on error errStatement number errNum
if (errNum = 2) then
	display dialog "No response was received. Make sure Mac is awake."
end if
end try

Thats a nice, handy little piece of code. Although I would change the error message a little. Anyway though, how about walking through using that code in an applescript.

0

Share this post


Link to post
Share on other sites
Anyway though, how about walking through using that code in an applescript.

 

Do you mean how to get from the code on the website, to a working Applescript? or explain more what the Applescript code does?

 

Happy to help either way.

0

Share this post


Link to post
Share on other sites
Do you mean how to get from the code on the website, to a working Applescript? or explain more what the Applescript code does?

 

Happy to help either way.

get from the code on the website, to a working Applescript

Edited by joshr
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now