Author Topic: Mount error 12 - cannot allocate memory to share printer  (Read 2260 times)

Offline brencam

  • Jr. Member
  • **
  • Posts: 26
Mount error 12 - cannot allocate memory to share printer
« on: May 27, 2010, 10:56:44 AM »
Just installed PCLOS on my laptop as a dual boot (with XP). I also have a linux server setup with samba shares server on my printer and on some server directories.

When I boot laptop in XP all the shares are accessible and work correcty. When I boot the laptop in PCLOS and start SMB4 I can see the shared resources, but cannot mount the printer. I am getting a 'Mount error 12 - cannot allocate memory' from  smb4.

I've seen this error reported elsewhere when working with WIndows shares and there apparently is a registry fix for this. However this is not relevant here since my (Samba) shares are running on the Linux server.

Any ideas/suggestions?

Patrick


Take my advice - I'm not using it <g>

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12657
Re: Mount error 12 - cannot allocate memory to share printer
« Reply #1 on: May 27, 2010, 10:59:21 AM »
Make sure your printer share doesn't have any spaces in the name.


Thanks to everyone who donates. You keep the servers running.
Follow me on Twitter for the latest development info.

Offline brencam

  • Jr. Member
  • **
  • Posts: 26
Re: Mount error 12 - cannot allocate memory to share printer
« Reply #2 on: May 27, 2010, 12:09:33 PM »
Just checked the share name - no spaces - format is '//HOSTNAME/HL-5250DN-series'. (It's a Brother 5250 model printer). As stated earlier everything works correctly when booted from XP. When I try to mount from PCLOS/smb4 I get the previously mentioned 'Mount 12 error - can't allocate memory'

I'm wondering if  it has a problem with the '-' chars in the share name. Could that be a problem?

Thx for looking.   
Take my advice - I'm not using it <g>

Online YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5383
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Mount error 12 - cannot allocate memory to share printer
« Reply #3 on: May 27, 2010, 04:42:23 PM »
Just checked the share name - no spaces - format is '//HOSTNAME/HL-5250DN-series'. (It's a Brother 5250 model printer). As stated earlier everything works correctly when booted from XP. When I try to mount from PCLOS/smb4 I get the previously mentioned 'Mount 12 error - can't allocate memory'

I'm wondering if  it has a problem with the '-' chars in the share name. Could that be a problem?

Thx for looking.   

I think that you are correct with the "-" being the issue




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: Mount error 12 - cannot allocate memory to share printer
« Reply #4 on: May 27, 2010, 04:55:47 PM »
Found the following here:  http://linux.derkeiler.com/Newsgroups/comp.os.linux.networking/2006-10/msg00629.html

Quote
Check the Event Log on the Windows machine that fails to allow it's share
to be mounted under System. Look for a red X, and the word Error. The
Source is Srv. The error will be:

The server's configuration parameter "irpstacksize" is too small for the
server to use a local device. Please increase the value of this
parameter.

If you have this error on the Windows machine that fails to have it's
share mounted, then do the following...

This key in the system registry must be modifed or created:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer
\Parameters\IRPStackSize

If the key is there, increase it a bit to say 15 or 18. If the key does
not exist, as in my case, create a new DWORD Valute. Name it
IRPStackSize. Double click on it to edit the value, put a check on the
Decimal radio button for the Base so that you can see the parameter value
as a decimal value and not a hexidecimal value. Give the new key a value
of 15 and reboot. If that is not enough, raise it a litte to let's say 18
and then reboot again. The problem is solved. Go mount your samba shares.




I'd check the Windows host first.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline brencam

  • Jr. Member
  • **
  • Posts: 26
Re: Mount error 12 - cannot allocate memory to share printer
« Reply #5 on: May 27, 2010, 11:20:20 PM »
@djohnston - Sorry but this is an all Linux setup that I'm testng. If you read my initial post carefully  you'll see that the server and printer are running Linux - so Windows is irrelevant here.

Whille I can access my Samba shares, I can't mount the printer.

Take my advice - I'm not using it <g>