[SOLVED] : “CIFS VFS: Server has not responded” error

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
nonymous

[SOLVED] : “CIFS VFS: Server has not responded” error

Post by nonymous »

Hi,

LM17.1 / KDE on Asus Laptop, wireless connection.

Each time I shutdown, reboot or hibernate, I have to wait about 120 seconds.
During this time, the console displays this message :

Code: Select all

nm.dispatcher.action: Caught signal 15, shutting down...
After 120 seconds, a brief message appears :

Code: Select all

CIFS VFS: Server 192.168.0.100 has not responded in 120 seconds. Reconnecting...
...and then the PC reboots (or shuts down).

192.168.0.100 is my DLink ReadyNas102 NAS, mounted with this line in /etc/fstab :

Code: Select all

//192.168.0.100/partages /mnt/nas01 cifs rsize=130048,wsize=130048,user=theuser,password=thepassword,rw,uid=1000,gid=1000,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
It seems that I'm experiencing a bug where network-manager is down before cifs mounts are unmounted, so unmounting takes forever (120 seconds) before failing : https://bugs.launchpad.net/ubuntu/+sour ... bug/211631
Googling my issue, I've found some posts like this one where a possible workaround is to unmount all cifs mounts on shutdown.

I'm not sure where to do this correctly, I've tried to create links to /etc/init.d/umountnfs.sh in rc0.d et rc6.d (like in this post) but it did not resolve the problem.

Thanks for your help
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11704
Joined: Tue Feb 03, 2009 10:27 am

Re: “CIFS VFS: Server has not responded” error on shutdown

Post by altair4 »

I've been staring at your post for a good 40 minutes debating with myself if I should respond or not.

Here's my problem. I wrote a Howto on something called AutoFS which may be one option for you. It would replace the way you are doing it in fstab. The HowTo is here:
Auto Mounting Samba Shares Using AutoFS: http://forums.linuxmint.com/viewtopic.php?f=42&t=144997

AutoFS is an "automounter" which means it doesn't mount at boot or login it only mounts when the mount point is accessed. It also unmounts by itself when the share is not being used. From the HowTO:
How this will work:
*** For all the shares specified in auto.sambashares you do not mount them under Network in your File Manager or "Connect to Server".
*** You access ( and mount ) them by accessing the mount point itself under /mnt/Samba in whatever application you are using.
*** Autofs will create the /mnt/Samba directory and the /mnt/Samba/ShareName mount point by itself based on the files you edited above.
*** The mount will automatically unmount itself after 30 ( based on "--timeout=30" in auto.master ) seconds of non use but you can adjust that to your needs. This is really all transparent to the user since any access will keep it alive.
The problem for me is I am not a KDE user and although AutoFS is desktop agnostic I have no idea what issues you may have in following this suggestion. It is however easy enough to undo. I have Mint KDE in a VBox guest and went through the HowTo with a simple share and it appears to work but this is my very first use of autofs on KDE.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
nonymous

Re: “CIFS VFS: Server has not responded” error on shutdown

Post by nonymous »

Hi altair4,

Thank you for your answer, and for staring at my post for 40 minutes :D
I'll try autofs tonight, and keep you in touch.
nonymous

Re: “CIFS VFS: Server has not responded” error on shutdown

Post by nonymous »

Hi Altair4,

I have followed your howto and set up autofs.
It solved my issue, so thank you !
My PC shuts down or reboots immediately.

Great work !
Thanks
altair4
Level 20
Level 20
Posts: 11704
Joined: Tue Feb 03, 2009 10:27 am

Re: [SOLVED] : “CIFS VFS: Server has not responded” error

Post by altair4 »

Thank you very much for getting back to this.

Like I said I don't have much experience with KDE so I was afraid if you had issues I wouldn't be able to navigate through the environment to help you.

So whew :!:
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Installation & Boot”