LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-20-2008, 02:56 AM   #1
netjack
Member
 
Registered: Sep 2003
Location: Italy
Distribution: ubuntu 20.04.4 LTS
Posts: 99

Rep: Reputation: 15
Samba issue when doing shutdown (CIFS VFS...)


Hello,

whenever I try to shutdown (halt or reboot) my ubuntu, I get this error, to a certain point:
Code:
CIFS VFS: Server not responding
CIFS VFS: no response for cmd 50 mid 30
and I have to force shutdown by pressing the On/Off button on my laptop.

Everything else with Samba works fine; it's just this behaviour when I shutdown or reboot my machine.

I looked for smb.conf, I think it's a problem when Samba somehow "logs off" from the server from where I get access to the files on a Windows machine, but I can't find what to change.

Any hints? Thanks in advance!

~netjack
 
Old 03-20-2008, 03:52 AM   #2
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
I'm a bit confused. Are you accessing files on a windows machine form your ubuntu box, because in that case, you're not using samba. You're using the kernel cifs or smbfs modules. From the error your getting, it looks like this is the case. What I guess is happening is that when you shutdown, the network is getting disabled before you unmount all the network file systems. So when it gets to the unmounting bit in the shutdown process it fails, and the shutdown hangs.
Not sure how to fix it in Ubuntu (I don't suppose it's supposed to work like this, something must've got messed up somewhere), but and ugly hack way to do it would be to put an 'unmount' script into the /etc/rc.d/rc.6 directory, and have it numbered to run before the network switches off.

Found this on the Ubuntu forums. Looks like your not the only one having this problem. It's the script you'd need to do what I said above.

Last edited by beadyallen; 03-20-2008 at 04:04 AM.
 
Old 04-05-2009, 07:57 AM   #3
crasher35
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: Disabled
Thumbs up

Thank you to netjack for posting the question, and thank you to beadyallen for your response.

I am having the same problem after mounting my new NAS through fstab. Thanks to your help, I was able to find this link [I will post below as this is my first post and the forum does not allow me to] which (hopefully) helped me fix this problem. I don't know yet, I'm going to have to restart first so I'll be crossing my fingers.
 
Old 04-05-2009, 07:57 AM   #4
crasher35
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: Disabled
Here is the aforementioned link.

http://whereofwecannotspeak.wordpres...own-or-reboot/
 
  


Reply

Tags
cifs, cmd, response, samba, vfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cifs in fstab and lethargic shutdown/reboot litlmary Linux - Networking 3 02-10-2010 02:32 AM
CIFS VFS: Send error in FindClose = -9 punt Linux - Networking 3 07-12-2007 11:00 PM
A work-around for reboot/shutdown problems when cifs shares are open PTrenholme Fedora 0 01-31-2007 10:14 AM
Problem mounting a samba share "CIFS VFS: Send error in SETFSUnixInfo = -5" mrcoffee11 Linux - Software 1 11-07-2006 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration