LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   No mount on boot for network drive 14.1 (https://www.linuxquestions.org/questions/slackware-14/no-mount-on-boot-for-network-drive-14-1-a-4175486827/)

Richard Cranium 12-13-2013 05:34 AM

Quote:

Originally Posted by tux_dude (Post 5076983)
Could you not use autofs?

I'll second this suggestion since it's a fairly good solution for random NFS mounts; the nfs shares for a given server (machine_name are mounted as subdirectories when you access the directory /net/machine_name. The autofs code will also quietly umount the shares if you aren't using them for a given length of time.

All in all, pretty nice and probably worth learning about in your Copious Free Time. :D

TSquaredF 12-13-2013 01:59 PM

Just a note: I used the loop method in rc.local for quite a while to mount nfs shares. It worked, 98% of the time. The other 2% of the time, something messed up & I had all kinds of problems. Then I found autofs. It really is the way to go for nfs. Stop playing around & set up autofs.
Regards,
Bill

mostlyharmless 12-15-2013 06:28 PM

Yeah, well, I set up autofs and then I wanted to set up a bridge for my virtual machine, and NetworkManager was just getting in the way. So... back to the traditional rc.inet1 and inet2 (I love Slackware) and the problem is solved by avoidance. But not actually [SOLVED]

TSquaredF 12-15-2013 08:41 PM

Posted by mostlyharmless:
Quote:

So... back to the traditional rc.inet1 and inet2 (I love Slackware) and the problem is solved by avoidance. But not actually [SOLVED]
What does this have to do with mounting nfs?
Regards,
Bill

mostlyharmless 12-16-2013 06:19 AM

Well, now that I'm doing the traditional inet scripts instead of NetworkManager, the nfs mount in fstab works. No need for anything in rc.local.


All times are GMT -5. The time now is 12:00 AM.