-   Linux - Newbie (
-   -   Mount Nfs when booting (

hilou 11-14-2013 02:03 AM

Mount Nfs when booting

I want to know why nfs could be mounted by writing it to /etc/fstab since network started later than mount filesystem.

Thanks in advance.

jpollard 11-14-2013 07:14 AM

Mount recognizes that the network isn't ready and waits (or it will tell you it can't mount).

Other systems don't actually mount it until it is done during the NFS client initialization script runs, which then does a "mount -t nfs" which mounts any NFS filesystems in the /etc/fstab.

It really depends on the system. Fedora systemd recognizes it as a network (the fstab entry is supposed to have the added option "network"), which causes systemd to delay the attempted mount until the network is supposed to be ready (it fails sometimes- but helped a lot if you also add a "NetworkManager-wait-online" to introduce additional delays.

Andre.Smit 11-17-2013 12:44 AM

Yes, nfs will work even over slow internet connection, could be frustrating, but it waits for things to happen... nfs understands that networks are typically much slower than local hdd...

All times are GMT -5. The time now is 09:36 PM.