May 24, 20233 yr I was trying to have a 10min delay on auto mount remote drive to my unraid everytime the array start. I had the following script but didn't work. Quote #!/bin/bash # Wait for 10 minutes before attempting to mount the shared drives sleep 600 # Define the shared drive information nl3s-vm-dsm="//192.168.4.172/nl3s_appdata backup" nl3b="//192.168.4.216/nl3s_appdata backup" # Mount the shared drives mount -t cifs -o username=marco,password=19980928MMCmmc "$nl3s-vm-dsm" /mnt/remotes mount -t cifs -o username=marco,password=19980928MMCmmc "$nl3b" /mnt/remotes # Verify if the drives are mounted successfully if mountpoint -q /mnt/remotes; then echo "Shared drives mounted successfully." else echo "Failed to mount one or more shared drives." fi northernlight3s-diagnostics-20230524-2340.zip
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.