NFS auto mount not working
copy from http://forums.opensuse.org/english/get-technical-help-here/hardware/419781-nfs-share-wont-automount.html Code: #!/bin/bash #echo "$0: This is it" m1=$( mount |grep 192.168.1.10:/home/backup -c ) m2=$( mount |grep 192.168.1.10:/mnt/sdb1/Data -c ) if test $m1 -eq 1 && test $m2 -eq 1 then echo 1 else echo 0 fi , the second script I did is to mount the nfs folders Code: #!/bin/bash mount 192.168.1.10:/home/backup /media/backup mount 192.168.1.10:/mnt/sdb1/Data /media/Data Then I added new line in /etc/crontab like this Code: */5 * * * * root /home/arcull/nfs_not_mounted && /home/arcull/nfs_mount


0 Comments:
Post a Comment
<< Home