image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old February 24th, 2005, 02:06 PM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
scruff is on a distinguished road
Automount NAS

Hi all. Can anyone tell me how to set up a Mac running 10.3 to automount my NAS during boot? I store all my mp3's on this NAS device and set up iTunes to rip tunes to there, but it always reverts to the default iTunes folder after boot. I am assuming it doesn't see the NAS so it heads to where it knows, but I don't want to have to remember to mount this thing every time I start the computer.

Ideas?

Scruff
Reply With Quote
  #2  
Old February 24th, 2005, 05:22 PM
Registered User
 
Join Date: Feb 2005
Location: Aberdeen Scotland
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
thewelshman is on a distinguished road
A pointer maybe to take a look a what happens when you make a link to a large local disk (called iTunes). The link is done from the "terminal.app" or UNIX prompt, and is in /Users/USERNAME/Music

cd /Users/USERNAME/Music
mv iTunes orig.iTunes
ln -s /Volumes/iTunes iTunes

I use this to link all users to the same Library on the same computer.

Ok /Volumes/iTunes is another locally attached disk, and ok automounter is not employed here. Its not easy to see whats the best way to do this under MacOSX, do I use UNIX or do I use the GUI to do it. Automounter in the generally accepted sense requires a NIS master with all the maps to the filesystems on remote machines, you may not have this.
Reply With Quote
  #3  
Old March 8th, 2005, 03:36 PM
Robn Kester's Avatar
I heart nothing
 
Join Date: Sep 2000
Location: A house
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
Robn Kester is on a distinguished road
How is your NAS device mounted normally? As AFS? NFS?

I assume a simple AppleScript could easily automount the shares at boot time for you in these cases.

THis is the applescript I use for at home for my AFS drives on my server (a g4 mac):


tell application "Finder"
mount volume "afp://machinename/volumename" as user name "username" with password "password"
end tell

i just made it an application and added it to my startup items. i also leave it whre I can run it if needed.

Not sure if it works the same for NFS but should, then again I chould be wrong.

Does this help?
__________________
mac mini 1.42 - my baby
ipod 3rd gen 20gig color - my new music baby
ipod 1st gen 5gig - dead and trashed
g4/466 - my server and an old friend
imac 333 - sold
6100/66av - dead
IIsi - paperweight
mac se30 - burned and dead
mac plus with radius FPD - burned and dead
-
mac user since 1988
Reply With Quote
  #4  
Old March 9th, 2005, 04:25 AM
Registered User
 
Join Date: Feb 2005
Location: Aberdeen Scotland
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
thewelshman is on a distinguished road
Applescript 2 Application

"Robn" sounds good, the nfs format looks to be very similar.

mount volume "nfs://machinename/volumename /Volumes/volumename" or close to something like that.

One thing though, as I've not used Applescript, how do you turn it into an AppleSctipts into Application? Thanks
__________________
------------------------------------------------------------
17" PowerBook G4, 2xG4, 3xG3, 2xSun Sparc 1000e (8 cpu), 2xLINUX (Fedora II (Dell), Mandrake 9(Compaq))

Last edited by thewelshman; March 9th, 2005 at 05:19 AM.
Reply With Quote
  #5  
Old March 9th, 2005, 09:20 AM
Robn Kester's Avatar
I heart nothing
 
Join Date: Sep 2000
Location: A house
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
Robn Kester is on a distinguished road
It's really quite simple and you'd slap yourself for asking... when you Save, select the file type as Application and it's that easy.

The whole process is easy really... open Script Editor, paste that code into the window, change the machine name, volume name, name and password, repeat for each drive. I believe for nfs, as above you just change afs to nfs. then click Compile, then Run to make sure it works. If it does, save it as above. Then add it to your startup items and you are golden.

It doesnt do any checks for if the machine or volumes are actually there, so it will error if they arent. Im sadly also new to AppleScript and this was provided to me when I posed a similar question elsewhere.

it looks so amazingly simple, im really surprized I havent picked up AppleScript ages ago. y aknow?
__________________
mac mini 1.42 - my baby
ipod 3rd gen 20gig color - my new music baby
ipod 1st gen 5gig - dead and trashed
g4/466 - my server and an old friend
imac 333 - sold
6100/66av - dead
IIsi - paperweight
mac se30 - burned and dead
mac plus with radius FPD - burned and dead
-
mac user since 1988
Reply With Quote
  #6  
Old March 23rd, 2005, 12:28 AM
Carlo's Avatar
All your base are belong
 
Join Date: Apr 2001
Location: Sydney, Australia
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Carlo is on a distinguished road
Is their a way to do this so it keeps the password encrypted in the users keychain.

I am only new to applescript, its something i figure I should learn as it looks to be pritty easy.
__________________
Carlo
-----------
PowerMac G5 Dual 1.8, 1.2GB Ram, 320GB, 10.4
iBook G4 800, 768mb Ram, 40GB Hdd, 10.4
PowerMac G4 450, 1GB Ram, 80gig, OSX 10.3 Server
I mac therefore I am!
Reply With Quote
Reply

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 06:01 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.