Home Forums Older Versions of Mac OS X and iOS Mac OS X Server 10.3 General Discussion cron/terminal/script/mount questions

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #356718
    Lukasha
    Participant

    Hi, I’m new to the board and I have what I hope is a simple questions for you gurus out there. I have Panther server running and I would like to setup a cron job to mount a remote drive so that I can run a backup on it and then have another script to unmount the drive when it’s finished. What’s the syntax for mounting and unmounting a drive in a script? Thanks in advance for any help.

    Jeff

    jeff_langston mac.com

    #356764
    Lukasha
    Participant

    Okay, I tried playing with the mount command and I’m having issues with it. Even logged in as an admin user when I issue the command I get this result:

    mount_afp: the mount flags are 0000 the altflags are 0020
    mount_afp: AFPMountURL returned error -5019, errno is 2

    I can’t find the error messages anywhere so I don’t know what the problem is. This also happens if I use sudo to perform the command as root.

    Also, there appears to be no unmount command although it is listed in the manpages.

    Thanks again for your help.

    Jeff Langston

    #356766
    Lukasha
    Participant

    The command I type in is this:

    mount -t afp afp://tonyangellotti:[email protected]/Backup /Volumes/

    When I type in the format you first showed me:

    mount -t afp afp://tonyangellotti:[email protected]/Backup /Volumes/Backup

    I get the error:

    mount_afp: The mountpoint: /Volumes/Backup does not exist, stat returns 2

    If I try:

    mount -t afp afp://tonyangellotti:[email protected]/Backup /Volumes/Backup/

    I get:

    mount: realpath /Volumes/Backup: No such file or directory

    Thanks.

    Jeff

    #356768
    Lukasha
    Participant

    I got the error:

    mount_afp: the mount flags are 0000 the altflags are 0020
    mount_afp: AFPMountURL returned error -5019, errno is 2

    That’s creating the Backup dir as an admin user and as root and trying to mount as both.

    Jeff

    #356789
    Lukasha
    Participant

    Hey MacTroll, I got it working, thanks. In all my gyrations, I had forgotten that I had renamed the share on the server. I got it working with your last set of instructions. Thanks a bunch.

    Jeff

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed