LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-08-2021, 01:50 AM   #1
Barx
Member
 
Registered: Jun 2004
Location: Italy
Distribution: Slack x64 current
Posts: 143

Rep: Reputation: 26
NetworkManager and SMB mounts in fstab not auto mounting


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 Barisone
 
Old 06-08-2021, 02:19 AM   #2
marav
Member
 
Registered: Sep 2018
Location: Paris, France
Distribution: Slackware
Posts: 344

Rep: Reputation: 196Reputation: 196
Hi,

You could add the _netdev option in your /etc/fstab

manpage of mount(8)
Code:
_netdev
  The filesystem resides on a device that requires network access
  (used to prevent the system from attempting to mount these filesystems
  until the network has been enabled on the system).
 
Old 06-08-2021, 02:24 AM   #3
Barx
Member
 
Registered: Jun 2004
Location: Italy
Distribution: Slack x64 current
Posts: 143

Original Poster
Rep: Reputation: 26
Quote:
Originally Posted by marav View Post
Hi,

You could add the _netdev option in your /etc/fstab
Thank you! I added this option, next boot I'll report here the effect

Kind regards

Alessandro
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 32GB USB drive mounts Read Only while 4GB mounts RW CollieJim Ubuntu 10 06-13-2020 07:11 AM
Auto mounting smb fstab pr0xibus Slackware 6 10-21-2014 07:30 AM
Why are all my fstab mounts not mounting on boot? lhughes08 Linux - Newbie 1 04-07-2008 10:26 AM
fstab smb mounts fail at boot litlmary Linux - Networking 2 09-26-2006 11:09 PM
smb mounts in fstab failing gw1500se Mandriva 4 05-31-2004 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration