Article 5JSJ9 NetworkManager and SMB mounts in fstab not auto mounting

NetworkManager and SMB mounts in fstab not auto mounting

by
Barx
from LinuxQuestions.org on (#5JSJ9)
Hi all

I'm running slackware64 current. Until now I had my network configured statically in rc.inet1.conf and I have some SMB filesystems in my fstab, that was mounting automatically on boot, and all was working great (in its simplicity, anyway).

Now I have changed network configuration enabling NetworkManager, basically because I need to use some OpenVPN configs from NetworkManager itself.

So I configured a static IP for my NIC in the NetworkManager. From that moment, SMB filesystems in fstab no longer auto mounts on boot, because the network is not yet ready when the system tries to mount network filesystems

I don't know if this is related to my NIC (RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c) ), but before I started to use NetworkManager SMB filesystems was always mounted on boot

please find the relevant part of dmesg output

Code:[ 8.850140] Generic FE-GE Realtek PHY r8169-300:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
[ 9.015231] r8169 0000:03:00.0 eth0: Link is Down
[ 9.023908] FS-Cache: Loaded
[ 9.046335] FS-Cache: Netfs 'cifs' registered for caching
[ 9.046488] Key type cifs.spnego registered
[ 9.046532] Key type cifs.idmap registered
[ 9.046962] CIFS: Attempting to mount //192.168.7.2/www
[ 9.052115] CIFS: Attempting to mount //192.168.7.2/Ale
[ 9.057774] CIFS: Attempting to mount //192.168.7.2/Public
[ 9.064882] CIFS: Attempting to mount //192.168.7.2/Clienti
[ 9.073783] CIFS: Attempting to mount //192.168.7.2/contabilita
[ 9.083237] CIFS: Attempting to mount //192.168.7.2/gdpr
[ 9.112422] CIFS: Attempting to mount //192.168.7.2/www
[ 9.113606] CIFS: Attempting to mount //192.168.7.2/Ale
[ 9.114771] CIFS: Attempting to mount //192.168.7.2/Public
[ 9.115928] CIFS: Attempting to mount //192.168.7.2/Clienti
[ 9.117068] CIFS: Attempting to mount //192.168.7.2/contabilita
[ 9.118236] CIFS: Attempting to mount //192.168.7.2/gdpr
[ 10.107853] [drm] pstate took longer than expected ~152us
[ 11.928295] r8169 0000:03:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 11.928313] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 47.338465] fuse: init (API version 7.32)if you need more details about my system config and/or logs please let me know

Kind regards

Alessandro Barisonelatest?d=yIl2AUoC8zA latest?i=3DlPJ3hM6kE:RVHZkWcTZQA:F7zBnMy latest?i=3DlPJ3hM6kE:RVHZkWcTZQA:V_sGLiP latest?d=qj6IDK7rITs latest?i=3DlPJ3hM6kE:RVHZkWcTZQA:gIN9vFw3DlPJ3hM6kE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments