Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th May 2012, 08:30 PM
WizkidN Offline
Registered User
 
Join Date: May 2012
Location: The Netherlands
Posts: 3
linuxchrome
fstab not respecting _netdev for CIFS mount

Hi,

I'd like to automatically mount a CIFS-network-share on boot. It was my understanding that I could do this with the _netdev option, to make sure it waits until I have a connection. It seems however that this is not being done. I end up with the mount failing on boot.

This is what dmesg shows:
Code:
[    4.254921] e1000e 0000:00:19.0: irq 57 for MSI/MSI-X
[    4.305742] e1000e 0000:00:19.0: irq 57 for MSI/MSI-X
[    4.306547] ADDRCONF(NETDEV_UP): em1: link is not ready
[    4.308039] iscsi: registered transport (iser)
[    4.309737] FS-Cache: Loaded
[    4.310424] 8021q: 802.1Q VLAN Support v1.8
[    4.311429] FS-Cache: Netfs 'cifs' registered for caching
[    4.315231] CIFS VFS: Error connecting to socket. Aborting operation
[    4.315414] CIFS VFS: cifs_mount failed w/return code = -101
[    4.315441] libcxgbi:libcxgbi_init_module: tag itt 0x1fff, 13 bits, age 0xf, 4 bits.
[    4.315442] libcxgbi:ddp_setup_host_page_size: system PAGE 4096, ddp idx 0.
[    4.315587] Chelsio T3 iSCSI Driver cxgb3i v2.0.0 (Jun. 2010)
[    4.315599] iscsi: registered transport (cxgb3i)
[    4.316839] Chelsio T4 iSCSI Driver cxgb4i v0.9.1 (Aug. 2010)
[    4.316849] iscsi: registered transport (cxgb4i)
[    4.317600] cnic: Broadcom NetXtreme II CNIC Driver cnic v2.5.8 (Jan 3, 2012)
[    4.325117] systemd[1]: home-niels-data.mount mount process exited, code=exited status=32
[    4.384036] ADDRCONF(NETDEV_UP): p4p1: link is not ready
[    4.384077] 8021q: adding VLAN 0 to HW filter on device p4p1
[    4.385266] Broadcom NetXtreme II iSCSI Driver bnx2i v2.7.0.3 (Jun 15, 2011)
[    4.385302] iscsi: registered transport (bnx2i)
[    4.390174] iscsi: registered transport (be2iscsi)
[    4.413989] netlink: 12 bytes leftover after parsing attributes.
[    4.413994] netlink: 12 bytes leftover after parsing attributes.
[    4.414083] netlink: 12 bytes leftover after parsing attributes.
[    7.081123] e1000e: p4p1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[    7.082266] ADDRCONF(NETDEV_CHANGE): p4p1: link becomes ready
As you can see, the link does not become ready until 7.08, but it tries to mount at 4.31/4.32.

This is my fstab line

Code:
//192.168.1.112/myshare /home/USER/data        cifs    _netdev,username=USERNAME,password=MYPASSWORD,uid=UID,gid=GID	0 0
Anything I'm doing wrong? I played around with the position of _netdev, but doesn't seem to work >.<

I'm on Fedora 16 - 64bit

Thanks all,

Niels
Reply With Quote
  #2  
Old 25th May 2012, 08:45 PM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,291
linuxchrome
Re: fstab not respecting _netdev for CIFS mount

My /etc/fstab (nas related)
Code:
//ocean/Linux 	 /home/simon/Linux 	cifs credentials=/etc/samba/smb.cred 0	0
//ocean/Music 	 /home/simon/Music 	cifs credentials=/etc/samba/smb.cred 0	0
//ocean/Pictures /home/simon/Pictures 	cifs credentials=/etc/samba/smb.cred 0	0
/etc/samba/smb.cred
Code:
username = MYNAME
  domain = MYDOMAIN
password = MYPASSWORD
Until your post here, i didnt know about the _netdev option.
As you can see, for me this works just as well.

Hope this help.
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot

Last edited by sea; 25th May 2012 at 08:52 PM.
Reply With Quote
  #3  
Old 25th May 2012, 09:03 PM
WizkidN Offline
Registered User
 
Join Date: May 2012
Location: The Netherlands
Posts: 3
linuxchrome
Re: fstab not respecting _netdev for CIFS mount

Hi,

Thanks, but unfortunately, it doesn't work for me. The command itself works, so having a credentials-file can be handy for passwords and such - but I still get the same issue:

Code:
[    4.293292] Loading iSCSI transport class v2.0-870.
[    4.293836] iscsi: registered transport (tcp)
[    4.311681] e1000e 0000:00:19.0: irq 57 for MSI/MSI-X
[    4.362501] e1000e 0000:00:19.0: irq 57 for MSI/MSI-X
[    4.363305] ADDRCONF(NETDEV_UP): em1: link is not ready
[    4.364103] iscsi: registered transport (iser)
[    4.366616] 8021q: 802.1Q VLAN Support v1.8
[    4.368239] FS-Cache: Loaded
[    4.369413] libcxgbi:libcxgbi_init_module: tag itt 0x1fff, 13 bits, age 0xf, 4 bits.
[    4.369418] libcxgbi:ddp_setup_host_page_size: system PAGE 4096, ddp idx 0.
[    4.369945] Chelsio T3 iSCSI Driver cxgb3i v2.0.0 (Jun. 2010)
[    4.369976] iscsi: registered transport (cxgb3i)
[    4.370424] FS-Cache: Netfs 'cifs' registered for caching
[    4.373541] Chelsio T4 iSCSI Driver cxgb4i v0.9.1 (Aug. 2010)
[    4.373572] iscsi: registered transport (cxgb4i)
[    4.376153] CIFS VFS: Error connecting to socket. Aborting operation
[    4.376216] cnic: Broadcom NetXtreme II CNIC Driver cnic v2.5.8 (Jan 3, 2012)
[    4.376221] CIFS VFS: cifs_mount failed w/return code = -101
[    4.447790] ADDRCONF(NETDEV_UP): p4p1: link is not ready
[    4.447796] 8021q: adding VLAN 0 to HW filter on device p4p1
[    4.447951] netlink: 12 bytes leftover after parsing attributes.
[    4.447960] netlink: 12 bytes leftover after parsing attributes.
[    4.448081] netlink: 12 bytes leftover after parsing attributes.
[    4.449604] Broadcom NetXtreme II iSCSI Driver bnx2i v2.7.0.3 (Jun 15, 2011)
[    4.449651] iscsi: registered transport (bnx2i)
[    4.453203] iscsi: registered transport (be2iscsi)
[    7.073942] e1000e: p4p1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
[    7.075058] ADDRCONF(NETDEV_CHANGE): p4p1: link becomes ready
[   16.248079] fuse init (API version 7.18)
I tried this with, and without _netdev, but the result was the same

Niels
Reply With Quote
  #4  
Old 25th May 2012, 09:29 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,814
linuxfirefox
Re: fstab not respecting _netdev for CIFS mount

I don't think it has anything to do with fstab...

Looks to me like it may be NetworkManager (assuming you are using it) messing up again.

The network mount tries to go as soon a systemd thinks the network is ready... but it isn't ready.

Do you have NetworkManager-wait-online.service enabled?

If not, this may help as it is supposed to cause systemd to delay network mounts until it completes (which is listening for NetworkManager to say the network is ready).

Doesn't always work, but still.
Reply With Quote
  #5  
Old 25th May 2012, 10:27 PM
WizkidN Offline
Registered User
 
Join Date: May 2012
Location: The Netherlands
Posts: 3
linuxchrome
Re: fstab not respecting _netdev for CIFS mount

I found that the wait-online.service can be enabled with this command:
Code:
systemctl enable NetworkManager-wait-online.service
Rebooted afterwards, but still the same. Thanks though...
Reply With Quote
  #6  
Old 19th December 2013, 08:56 AM
TheNom Online
Registered User
 
Join Date: Jun 2011
Location: UK
Posts: 57
linuxfirefox
Re: fstab not respecting _netdev for CIFS mount

Hi,

Did you ever get a solution to this? I have had it for a while and now on F20 and still having the same issue.

Thanks.
Reply With Quote
  #7  
Old 19th December 2013, 09:15 AM
TheNom Online
Registered User
 
Join Date: Jun 2011
Location: UK
Posts: 57
linuxfirefox
Re: fstab not respecting _netdev for CIFS mount

Not sure if this applies to yourself but it seems it does for me on F20...

Might help you.

http://forums.fedoraforum.org/showthread.php?t=295456
Reply With Quote
  #8  
Old 19th December 2013, 10:14 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,814
linuxfirefox
Re: fstab not respecting _netdev for CIFS mount

As a workaround, does it work correctly if you disable NetworkManager and enable networks?
Reply With Quote
  #9  
Old 19th December 2013, 06:20 PM
rclark Offline
Registered User
 
Join Date: Nov 2004
Location: MT USA
Posts: 689
windows_xp_2003firefox
Re: fstab not respecting _netdev for CIFS mount

I am having this issue with straight NFS share in fstab. Worked fine in 19, but not after the upgrade (via fedup) to 20. The share mounts just fine if you mount it manually in 20. I'll check into if I am using 'networks' or 'Network Manager' but it 'was' working in 19. Not whining to much .... but why oh why do they have to change such basic functionality? ...
Reply With Quote
  #10  
Old 19th December 2013, 06:25 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,814
linuxfirefox
Re: fstab not respecting _netdev for CIFS mount

Quote:
Originally Posted by rclark View Post
I am having this issue with straight NFS share in fstab. Worked fine in 19, but not after the upgrade (via fedup) to 20. The share mounts just fine if you mount it manually in 20. I'll check into if I am using 'networks' or 'Network Manager' but it 'was' working in 19. Not whining to much .... but why oh why do they have to change such basic functionality? ...
It may have only worked accidentally... Changing other things could have altered the timing to the point that it now fails.

Really hard to tell what caused the problem.
Reply With Quote
  #11  
Old 20th December 2013, 06:21 AM
bobclifford Offline
Registered User
 
Join Date: Mar 2013
Location: us
Posts: 46
linuxopera
Re: fstab not respecting _netdev for CIFS mount

Nfs mounts did not work for me on start up via fstab until I installed "Really wait for the damn network" :

http://www.spinics.net/lists/fedora-...msg118136.html
Reply With Quote
  #12  
Old 20th December 2013, 03:08 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: fstab not respecting _netdev for CIFS mount

There was a NetworkManager update that was just put out that is supposed to fix this issue. So, hopefully, within the next few days, everyone should have it and things should be fixed.
Reply With Quote
  #13  
Old 20th December 2013, 04:36 PM
bobclifford Offline
Registered User
 
Join Date: Mar 2013
Location: us
Posts: 46
linuxopera
Re: fstab not respecting _netdev for CIFS mount

Quote:
Originally Posted by DBelton View Post
There was a NetworkManager update that was just put out that is supposed to fix this issue. So, hopefully, within the next few days, everyone should have it and things should be fixed.
Thank you for the good news.
Reply With Quote
  #14  
Old 22nd December 2013, 03:11 PM
lightman47 Online
Registered User
 
Join Date: Apr 2009
Location: central NY, USA
Posts: 572
linuxfirefox
Re: fstab not respecting _netdev for CIFS mount

NOTE: Just solved the failed NFS mounts in my F20 system - after going through the above, I checked NFS in the firewall and rebooted. I don't recall having to do that in previous versions.
Reply With Quote
  #15  
Old 22nd December 2013, 03:32 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,814
linuxfirefox
Re: fstab not respecting _netdev for CIFS mount

Odd that it would make a difference when starting afterwards though. I would have expected it to have been blocked all the time.
Reply With Quote
Reply

Tags
cifs, fstab, mount, netdev, respecting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cifs or mount.cifs in fstab? pwjohnston Using Fedora 0 2nd January 2012 08:42 PM
smbfs/cifs mount point in fstab not mounting on boot rgladwell Servers & Networking 5 15th January 2006 10:05 PM
mount.cifs in /etc/fstab bob49 Servers & Networking 0 16th June 2004 10:25 PM


Current GMT-time: 15:59 (Thursday, 21-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat