Hi, I installed the Samba client on Kubuntu 11.4 and set up a Samba network drive over WLAN to my QNAP NAS TS-110. Therefore, I made following entry in /etc/fstab to mount the network drive on startup. //192.168.2.200/ben /media/NAS/ben cifs credentials=/home/ben/.smbcredentials,uid=1000,gid=1000 0 0 Automount and write-access are working, but since then my computer hangs on shutdown with following error messages: mount error(101): Network is unreachable Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) mountall: mount /media/NAS/ben [903] terminated with status 32 Best Regards, Benedikt
I get this error messages on boot: CIFS VFS: Error connecting to socket. Aborting operation CIFS VFS: cifs_mount failed w/return code = -101
Am 03.06.2011 23:50, schrieb Chris Weiss:> On Fri, Jun 3, 2011 at 4:11 PM, <beweta at gmx.com> wrote: >> I get this error messages on boot: >> >> CIFS VFS: Error connecting to socket. Aborting operation >> CIFS VFS: cifs_mount failed w/return code = -101 >> > > I have seen these before.OK, I'm not the only one.> as I recall, it's trying to mount before the network comes fully up, > and downing the network before unmounting the cifs.I have the same suspicion, but don't know how to fix it.>I do not recall the solution, and I don't use cifs in fstab anymore.What are you using instead of CIFS? When I tried NFS, there were similar errors. Best Regards, Benedikt
Am 04.06.2011 16:40, schrieb Harry Jede:> On 16:30:33 wrote beweta at gmx.com: >> Am 03.06.2011 23:50, schrieb Chris Weiss: >>> On Fri, Jun 3, 2011 at 4:11 PM, <beweta at gmx.com> wrote: >>>> I get this error messages on boot: >>>> >>>> CIFS VFS: Error connecting to socket. Aborting operation >>>> CIFS VFS: cifs_mount failed w/return code = -101 >>> >>> I have seen these before. >> >> OK, I'm not the only one. >> >>> as I recall, it's trying to mount before the network comes fully >>> up, and downing the network before unmounting the cifs. >> >> I have the same suspicion, but don't know how to fix it. >> >>> I do not recall the solution, and I don't use cifs in fstab anymore. >> >> What are you using instead of CIFS? > Use the pam mount helper. They run, when a user is logging in. > > man pam_mount > man pam_mount.confI followed this step-by-step guide [1], but it doesn't work. The error messages in /var/log/auth.log look quite familiar to me: pam_mount(mount.c:72): mount error(101): Network is unreachable pam_mount(mount.c:72): Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) pam_mount(pam_mount.c:521): mount of ben failed [1] https://wiki.ubuntu.com/MountWindowsSharesPermanently Best Regards, Benedikt