Quantcast
Channel: » AIX
Viewing all articles
Browse latest Browse all 11

How to fix ‘mount error 12 = Cannot allocate memory’ Error in Linux ?

$
0
0

When trying to mount a Windows share on a Linux machine, I’m getting an error which is “mount error 12 = Cannot allocate memory”.
So when i checked then i got to know that this is not a Linux error, but its a Windows error.

So to solve the error follow the below steps :

1. Check Windows Event Log

Need to check the Windows System Log. You should see an error with the source of “srv” and a message similar to, “The server’s configuration parameter “irpstacksize” is too small for the server to use a local device. Increase the value of this parameter”.

2. Change Registry Value

Open the Registry Editor and navigate to “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\IRPStackSize”.
If the IRPStackSize key is there then change it to anywhere between 15-18.
And if it’s not there then create a new DWORD value named “IRPStackSize” and change the value to somewhere between 15-18.
If the issue persists after setting it to 18, you can increase the value up to 50. There are known issues with values between 33-38.

3. Restart Server Service

Go to your services and restart the Server service.

4. Mount Shares

Go back to your Linux system and mount the shares again.

It's only fair to share...Share on FacebookShare on Google+Share on LinkedInPin on PinterestShare on RedditShare on StumbleUponShare on TumblrDigg thisTweet about this on Twitter

Viewing all articles
Browse latest Browse all 11

Trending Articles