Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 6 of 6

Thread: Automount NAS

  1. #1
    scruff is offline Registered User
    Join Date
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  2. #2
    thewelshman is offline Registered User
    Join Date
    Feb 2005
    Location
    Aberdeen Scotland
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  3. #3
    Robn Kester's Avatar
    Robn Kester is offline I heart nothing
    Join Date
    Sep 2000
    Location
    A house
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  4. #4
    thewelshman is offline Registered User
    Join Date
    Feb 2005
    Location
    Aberdeen Scotland
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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
    Last edited by thewelshman; March 9th, 2005 at 04:19 AM.
    ------------------------------------------------------------
    17" PowerBook G4, 2xG4, 3xG3, 2xSun Sparc 1000e (8 cpu), 2xLINUX (Fedora II (Dell), Mandrake 9(Compaq))

  5. #5
    Robn Kester's Avatar
    Robn Kester is offline I heart nothing
    Join Date
    Sep 2000
    Location
    A house
    Posts
    191
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  6. #6
    Carlo's Avatar
    Carlo is offline All your base are belong
    Join Date
    Apr 2001
    Location
    Sydney, Australia
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •