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

25th May 2012, 08:30 PM
|
|
Registered User
|
|
Join Date: May 2012
Location: The Netherlands
Posts: 3

|
|
|
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
|

25th May 2012, 08:45 PM
|
 |
"Shells" (of a sub world)
|
|
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,608

|
|
|
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.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Last edited by sea; 25th May 2012 at 08:52 PM.
|

25th May 2012, 09:03 PM
|
|
Registered User
|
|
Join Date: May 2012
Location: The Netherlands
Posts: 3

|
|
|
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
|

25th May 2012, 09:29 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105

|
|
|
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.
|

25th May 2012, 10:27 PM
|
|
Registered User
|
|
Join Date: May 2012
Location: The Netherlands
Posts: 3

|
|
|
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...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:37 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|