Page 1 of 1

Samba: CIFS debugging

Posted: Tue May 22, 2012 12:37 pm
by ^rooker
In case you need to hunt nasty things with smbfs/cifs on the GNU/Linux-Samba side, it might be a good idea to enable CIFS debugging messages:

Code: Select all

echo 1 > /proc/fs/cifs/cifsFYI
You can then check status of mounted CIFS shares, like this:

Code: Select all

cat /proc/fs/cifs/DebugData
WARNING: Enabling this debug information can really (like "really!") fill up your logfiles!
On my system, I've recently had a 30 GB (!) "/var/log/kern.log" file, a 23 GB "/var/log/syslog" - and a 32 GB "/var/log/debug" :shock:
So be careful and don't enable this option for too long.

Additionally, here's a list of smbfs/cifs related threads, here in "Das-Werkstatt" forum: And here are links to additional information: