If you get the following errors while trying to mount a Windows XP volume on Linux then some registry work on the XP box might resolve it.
- Via mount -t cifs
- mount error 12 = Cannot allocate memory
- Via smbclient
It’s the cifs message that is confusing. It sounds like the memory problem is on the Linux side but that is not the case. It is a problem on the Windows side. The smbclient program returns a more useful error. Examine the Event Viewer system log and you will probably see some srv related errors. If clicking on the error displays the following:
The Server's configuration parameter "IRPStackSize" is too small for the server to use a local device. Please increase the value of this parameter.
then this fix documented on Microsoft’s site under Event 2011 may work for you. The IRPStackSize entry did not exist for me so I created it as DWORD and set it to 20 per some web discussions. After a reboot I was able to connect from my Linux Ubuntu box.
It’s always good to try a basic reboot on Windows XP first, just in case.