I've been having a problem with Windows shares listed in fstab not being mounted. Here's the line I was using:
I was advised to put a further mount attempt into /etc/init.d/rc.local. But that still didn't work. So I tried this addition to rc.local:
This does work, and the file /var/log/mediavault.tries contains this:
That shows that (a) there is a significant delay before the mount can be done, and (b) my solution to the problem actually works.
BUT:
(1) It would be nice to have a simple and general solution that handles any and all smb mounts.
(2) The need to dance this quadrille is the result of a longstanding bug.
(3) mount.nsf provides a bg option that appears to do what is wanted, but it doesn't apply to smb mounts as far as I can tell.
//hpmediavault/FileShare /media/mediavault smbfs defaults,sec=none,user,users 0 0
Code:
# Ensure that mediavault is mounted ( n=0 until grep mediavault /proc/mounts; do n=$((n+1)) mount /media/mediavault sleep 2 done printf "mediavault mounted after %d tries\n" $n > /var/log/mediavault.tries )&
mediavault mounted after 11 tries
BUT:
(1) It would be nice to have a simple and general solution that handles any and all smb mounts.
(2) The need to dance this quadrille is the result of a longstanding bug.
(3) mount.nsf provides a bg option that appears to do what is wanted, but it doesn't apply to smb mounts as far as I can tell.
Comment