jethro Posted June 29, 2007 Report Share Posted June 29, 2007 Hi everybody, I have the following two entries in my fstab: //192.168.150.15/muziek /home/jethro/mnt/muziek cifs rw,guest 0 0 //192.168.150.200/Maven$ /home/jethro/mnt/Maven$ cifs rw,username=xxx,password=xxx 0 0 I want these two shares to be mounted automatically. However, I get the following error in dmesg: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101 CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101 When I manually go to /etc/rc.d/init.d/ and run ./netfs restart, the mounting goes fine: [root@localhost jethro]# cd /etc/rc.d/init.d/[root@localhost init.d]# ./netfs Usage: netfs {start|stop|restart|reload|status} [root@localhost init.d]# netfs restart bash: netfs: command not found [root@localhost init.d]# ./netfs restart Mounting CIFS filesystems: [ OK ] Mounting other filesystems: [ OK ] Best regards, Jethro Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted June 29, 2007 Report Share Posted June 29, 2007 It's probably a timing issue; the network isn't fully up when the mount is attempted. That's my best guess. To test, you can put these commands at the end of /etc/rc.d/rc.local: cd /etc/rc.d/init.d/ ./netfs restart rc.local is the last init script to run before X starts so if it is a timing issue putting those commands in rc.local may fix it. Quote Link to comment Share on other sites More sharing options...
jethro Posted July 2, 2007 Author Report Share Posted July 2, 2007 Dear pmpatrick, Your solution sounded logical, but it doesn't work. I added the code to /etc/rc.d/rc.local which resulted in the command "./netfs restart" to be executed. This however produces the same error. This is what I see in dmesg now: NET: Registered protocol family 10lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:00:1b.0 to 64 NET: Registered protocol family 17 Intel® PRO/1000 Network Driver - version 7.1.9-k4 Copyright © 1999-2006 Intel Corporation. ACPI: PCI Interrupt 0000:00:19.0[A] -> GSI 21 (level, low) -> IRQ 22 PCI: Setting latency timer of device 0000:00:19.0 to 64 e1000: 0000:00:19.0: e1000_probe: (PCI Express:2.5Gb/s:Width x4) 00:19:d1:80:2d:54 e1000: eth0: e1000_probe: Intel® PRO/1000 Network Connection ADDRCONF(NETDEV_UP): eth0: link is not ready e1000: eth0: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex e1000: eth0: e1000_watchdog_task: 10/100 speed: disabling TSO ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101 CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101 nvidia: module license 'NVIDIA' taints kernel. ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16 PCI: Setting latency timer of device 0000:01:00.0 to 64 NVRM: loading NVIDIA UNIX x86 Kernel Module 100.14.11 Wed Jun 13 18:21:22 PDT 2007 CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101 CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101 bootsplash 3.1.6-2004/03/31: looking for picture...<6>...found (1280x1024, 33330 bytes, v3). bootsplash: status on console 0 changed to on bootsplash 3.1.6-2004/03/31: looking for picture...<6>...found (1280x1024, 33330 bytes, v3). bootsplash: status on console 1 changed to on bootsplash 3.1.6-2004/03/31: looking for picture...<6>...found (1280x1024, 33330 bytes, v3). bootsplash: status on console 2 changed to on bootsplash 3.1.6-2004/03/31: looking for picture...<6>...found (1280x1024, 33330 bytes, v3). bootsplash: status on console 3 changed to on bootsplash 3.1.6-2004/03/31: looking for picture...<6>...found (1280x1024, 33330 bytes, v3). bootsplash: status on console 4 changed to on bootsplash 3.1.6-2004/03/31: looking for picture...<6>...found (1280x1024, 33330 bytes, v3). bootsplash: status on console 5 changed to on eth0: no IPv6 routers present Please note that this is a more complete copy/paste then the one in my first post. If I manually execute the following code after login in, everything works fine: cd /etc/rc.d/init.d/ ./netfs restart Best regards, Jethro Quote Link to comment Share on other sites More sharing options...
Guest DCC Posted July 7, 2009 Report Share Posted July 7, 2009 I have this same problem and when I manually execute it works fine for me also. I think my problem is I only have a wireless network card and it isn't working when the system goes to map the drives. Is there a way to get around this problem if that is what it is? Dear pmpatrick, Your solution sounded logical, but it doesn't work. I added the code to /etc/rc.d/rc.local which resulted in the command "./netfs restart" to be executed. This however produces the same error. This is what I see in dmesg now: Please note that this is a more complete copy/paste then the one in my first post. If I manually execute the following code after login in, everything works fine: cd /etc/rc.d/init.d/ ./netfs restart Best regards, Jethro Quote Link to comment Share on other sites More sharing options...
scarecrow Posted July 7, 2009 Report Share Posted July 7, 2009 (edited) Try adding the "noatime" flag in your fstab for the CIFS entries. Since I do not have any Mandriva handy right now, can you tell me if the netfs daemon is loaded before, or after hal? You may also have to change the permissions for cifs.mount and cifs.umount, e.g # chmod u+x mount.cifs etc Edited July 7, 2009 by scarecrow Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.