Samba: CIFS debugging

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Samba: CIFS debugging

Post 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:
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply