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:
[ 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: 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 v220.127.116.11 (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
//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