EdgarWallace Posted November 27, 2013 Posted November 27, 2013 The script is still working well under Mavericks. With the announcement of unRAID 5.0.3 we have the following changes (amongst some others): - emhttp: avahi smb service name changed from "%h-SMB" to "%h" (%h is your server hostname) - emhttp: avahi afp service name changed from "%h" to "%h-AFP"; and generate proper time-machine records I'm using different network drives with SMB and AFP (the script contains the afp protocol) but since I upgraded today to 5.0.3 I do see only those drives, that are included in the script. Are there any changes needed with unRAID 5.0.3 ? Anyone else who experienced the issue?
gfjardim Posted November 27, 2013 Posted November 27, 2013 The script is still working well under Mavericks. With the announcement of unRAID 5.0.3 we have the following changes (amongst some others): - emhttp: avahi smb service name changed from "%h-SMB" to "%h" (%h is your server hostname) - emhttp: avahi afp service name changed from "%h" to "%h-AFP"; and generate proper time-machine records I'm using different network drives with SMB and AFP (the script contains the afp protocol) but since I upgraded today to 5.0.3 I do see only those drives, that are included in the script. Are there any changes needed with unRAID 5.0.3 ? Anyone else who experienced the issue? If you're using afp, HOSTNAME must be set to HOSTNAME-AFP
EdgarWallace Posted November 27, 2013 Posted November 27, 2013 I took the advise from here: http://lime-technology.com/forum/index.php?topic=30452.msg273813#msg273813 Worked out for me as well. Thanks a lot.
johnand Posted January 13, 2014 Posted January 13, 2014 Script no longer works with OSX 10.9.1 and UNRAID 5.0.4. When I run the script in Terminal, I get the following error: Mounting Media mount_afp: AFPMountURL returned error -1069, errno is -1069 Media mount failed. Check settings/server. Removing mount point. Any ideas on solving this issue?
smoldersonline Posted February 25, 2014 Posted February 25, 2014 The script still works for me (with 10.9.1 and 5.0.3), to a certain extent. When I don't change it (so leave HOSTNAME - hence without adding -AFP) it will mount the shares properly (like before). However, when I try to SMB mount (HOSTNAME) I get the AFP shares and the SMB disks (incl flash drive) are not accessible. Will try some more troubleshooting. edit: when I change the script to HOSTNAME-AFP it doesn't seem to work.
starcat Posted March 1, 2014 Posted March 1, 2014 Running unRAID 5.0.3, both SMB and AFP. Can't mount a single SMB share from latest Mavericks... unRAID itself works fine from other clients. Any hints highly appreciated? Thanks!
DaleWilliams Posted March 1, 2014 Posted March 1, 2014 Running unRAID 5.0.3, both SMB and AFP. Can't mount a single SMB share from latest Mavericks... unRAID itself works fine from other clients. Any hints highly appreciated? Thanks! Well...in Mavericks there's not a lot you can do to turn off SMB...and in unRAID 5.0.3, SMB + Mavericks work great for me...although it took me a bit to figure it out. (OBTW: You might want to upgrade unRAID to 5.0.5. There are a couple of minor improvements but that won't fix your problem.) Try this: You say SMB works fine from other clients, so the following may not be productive. on unRAID web interface, go to TOWER/SETTINGS/SMB and make sure 'enable SMB' is 'YES (WORKGROUP)', and that your enduserid (not 'root') is authorized. Local master is 'yes'. Then in the USER SHARE you're trying to get to, for the SMB Share settings, make sure the share is EXPORTED and SECURITY is set correctly. ('YES',and 'PUBLIC' if you dont' care about privacy. ('YES' and 'PRIVATE' if you do...in which case, make sure your end-user-id is on the allowed access list.) Then try this on your Mac: go to FINDER/GO/CONNECT TO SERVER.../ and select your tower. The address is important here...try 'smb://192.168.1.xx' where '192.168.1.xx' is your local IP address. It *may* work as 'smb://tower.local'. Connect using your end-user-id and pswd (not 'root')
starcat Posted March 1, 2014 Posted March 1, 2014 Got it - root was saved as the share user and unraid do not allow root. Changed it and all the shares were visible. Thanks DaleWilliams.
roma Posted March 6, 2014 Posted March 6, 2014 Hi, First of, thanks a lot for this script. a great solution compared to the programs that are available. And thanks for sharing it. As a relatively new OSX user, I'm wondering if it is possible to start iTunes minimized. I run a Mac Mini as a media player with Plex. iTunes always runs minimized so my music is available for AirPlay. The script reopens iTunes when the server is available again, but iTunes takes focus. It would be nice if there is a way to open iTunes minimized.
kizer Posted March 6, 2014 Posted March 6, 2014 @Roma. I've not tried it, but this is what they say. https://discussions.apple.com/thread/3678708
roma Posted March 6, 2014 Posted March 6, 2014 Thanks kizer. This works indeed when the Mac boots up and opens iTunes the first time. It doesn't work when the scripts opens iTunes.
starcat Posted March 6, 2014 Posted March 6, 2014 After you do something with iTunes, minimize it then. There is a command to minimize the app in focus.
DaleWilliams Posted March 6, 2014 Posted March 6, 2014 Thanks kizer. This works indeed when the Mac boots up and opens iTunes the first time. It doesn't work when the scripts opens iTunes. Try here: https://discussions.apple.com/message/9621589 ...and at the bottom.
speeding_ant Posted March 7, 2014 Author Posted March 7, 2014 You could try this... Adding argument -g to the open command will apparently not open the Application in the foreground. Open the script in a good text editor (like TextWrangler, etc), and edit the line: ... echo "Attempting to open iTunes" open /Applications/iTunes.app/ ... TO: ... echo "Attempting to open iTunes" open -g /Applications/iTunes.app/ ...
roma Posted March 7, 2014 Posted March 7, 2014 Thanks speeding_ant, this was exactly where I was looking for. Works flawless.
speeding_ant Posted March 7, 2014 Author Posted March 7, 2014 FYI - I found the best way to mount AFP volumes within the script: # Hostname for server HOSTNAME="ServerName._afpovertcp._tcp.local" Any other way won't reliably show the volumes mounted in the sidebar of Finder.
darbronnoco Posted March 25, 2014 Posted March 25, 2014 I'm having a problem getting my afp drive to mount. I have a share that uses a guest account and no password. I also tried HOSTNAME="tower._afpovertcp._tcp.local" I have run the script manually from terminal and get the results below. If I manually mount the share by clicking on tower in my side bar and my music iTunes opens right up and works properly. So the checking of the mount status automatically is working and the problem seems to just be with mounting the share. I'm running 10.9.2 for what it's worth. _______________________ # Script Location SCRIPTLOCATION="/Scripts" # Username for server USERNAME="guest" # Password for server, check notes PASSWORD="" # IP Address/hostname for ping PING="10.0.1.200" # Hostname for server. Try sername.local, hostname or IP HOSTNAME="tower-afp.local" # Protocol in lowercase, afp or smb PROTOCOL="afp" # Shares, check notes SHARES="Our%20Music" _________________________ --- 10.0.1.200 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.396/0.492/0.810/0.159 ms Mounting Our Music mount_afp: AFPMountURL returned error -1069, errno is -1069 Our Music mount failed. Check settings/server. Removing mount point. ************* Attempting to close iTunes MacVM:~ brad$
saudkh Posted May 4, 2014 Posted May 4, 2014 can you mount a folder in a share? or do you have to mount the whole share? also, does the WOL act as a spin up for all the drivers? also, thanks for this!
roma Posted September 5, 2014 Posted September 5, 2014 So far the script worked flawless on two Mac's for me. This week I bought a new Mac Mini, installed the script as stated in the first post. No luck. I am unable to launch com.media.mount.plist. It doesn't show in the list when typing launchctl list. When typing /Scripts/mount.sh the script runs and mounts the volumes. It just is not working automated anymore. Tried a lot of different options. Copying the script from a working machine, checking the script for typo's or wrong formatting, repaired permissions and even a clean install of OSX. It seems I'm missing something, any pointers for me?
darbronnoco Posted September 5, 2014 Posted September 5, 2014 So far the script worked flawless on two Mac's for me. This week I bought a new Mac Mini, installed the script as stated in the first post. No luck. I am unable to launch com.media.mount.plist. It doesn't show in the list when typing launchctl list. When typing /Scripts/mount.sh the script runs and mounts the volumes. It just is not working automated anymore. Tried a lot of different options. Copying the script from a working machine, checking the script for typo's or wrong formatting, repaired permissions and even a clean install of OSX. It seems I'm missing something, any pointers for me? I'm in the same boat. I had it working on my main laptop but I trying to get it setup on a virtual mac on my server farm at home to use as my central iTunes library for my whole house sound system and hopefully setup all of our i devices to wirelessly sync off the central "mac server" Having the iTunes server would be great as I could make all the changes too playlists there and my wives devices would update automatically. Eventually I would like to present iTunes like a remote app but thats down the road.
roma Posted September 7, 2014 Posted September 7, 2014 My problem is fixed. At another forum I was pointed at Lingon x. Though I have not figured out what the exact problem was, this app fixed the issue for me. Might have been a formatting thing, or maybe rights. It's fixed though. Maybe it can solve your issue too darbronnoco.
coppit Posted September 24, 2014 Posted September 24, 2014 Thanks for this great script! On Mavericks, I invoked this tool from a cron job, and "command not found" errors for ping and umount. The problem is that cron has a restricted PATH. You might consider adding: PATH="$PATH:/sbin" to the top of the script, or change all the sbin commands to use the full path.
speeding_ant Posted September 24, 2014 Author Posted September 24, 2014 Thanks for this great script! On Mavericks, I invoked this tool from a cron job, and "command not found" errors for ping and umount. The problem is that cron has a restricted PATH. You might consider adding: PATH="$PATH:/sbin" to the top of the script, or change all the sbin commands to use the full path. Best option is to use launchd. Feel free to modify the script as required :-)
darbronnoco Posted September 26, 2014 Posted September 26, 2014 Thanks for this great script! On Mavericks, I invoked this tool from a cron job, and "command not found" errors for ping and umount. The problem is that cron has a restricted PATH. You might consider adding: PATH="$PATH:/sbin" to the top of the script, or change all the sbin commands to use the full path. So do I add PATH="$PATH:/sbin" to the top of speedingant's mount.sh script? Best option is to use launchd. Feel free to modify the script as required :-)
erikssone Posted October 27, 2014 Posted October 27, 2014 Is there a way to mount the afp shares with read and write permission for all administrative users? As of now only the user that runs the script gets to read the volumes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.