Answer the question
In order to leave comments, you need to log in
Need help: Ubuntu stopped mounting cifs?
I have a computer with ubuntu-server 10.04. Until yesterday it was working fine. Yesterday I installed the next updates (I'm not sure what's the matter with them, but suddenly). Network drives fell off last night: a script launched from cron reported (/ net / win7 - network drive from win-7):
ls: cannot access / net / win7: Cannot allocate memory
Just in case, rebooted the server (it happened already that after updates Everything was up and running until the reboot. Ubuntu happily announced that "Disk drive for /foo/bar is not ready yet or not present" and waited for me to press S (continue without mounting). Moreover, /foo/bar is a local directory mounted via bindfs, it doesn’t smell like a network there.
Pressed S, everything loaded, but neither the network drive nor /foo/bar was mounted. The latter was later mounted by hand - apparently, the only thing here is that it goes to fstab later than the network one, and the turn just didn’t reach it (but I would like to hear confirmation from experts).
Trying to manually mount a network drive does not lead to anything good:
# mount /net/win7
mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (eg man mount.cifs)
Looked at dmesg, it says :
CIFS: Unknown mount option codepage
CIFS: Unknown mount option unicode
CIFS VFS: Send error in SessSetup = -12
CIFS VFS: cifs_mount failed w/return code = -12
Looks like something is wrong in fstab:
//WIN7/blah /net/win7 cifs guest,iocharset=utf8,codepage=unicode,unicode 0 0
Until yesterday it worked, then for some reason it stopped.
In general, I would very much like to know how to cure the patient.
And another question: is it possible to make sure that ubunta does not ask me to press buttons on mounting errors, but continues to boot (the disk is not critical)? I communicate with this server most often remotely and I cannot press the button.
Answer the question
In order to leave comments, you need to log in
Probably you shouldn't give links to Yandex, but still yandex.ru/yandsearch?text=mount+error%2812%29%3A+Cannot+allocate+memory&from=fx3&clid=46510&lr=2 won't help?
first link white-knight-is-alive.blogspot.com/2009/10/ubuntu.html point 3, might be the answer
Mount error "mount error 12 = Cannot allocate memory" when trying to connect to a Windows shared folder.
A possible reason is that there is not enough memory on the server (that is, in Windows), and not on the client. In this case, changing the Windows registry may help: ...\LanmanServer
\Parameters\IRPStackSize (for XP, 2000, NT) or .../LanmanServer\Parameters\Size and ...\Session Manager\Memory Management\LargeSystemCache (for Windows 7).
The IRPStackSize entry did not exist for me so I created it as DWORD and set it to 20 per somyou need to create an IRPStackSize entry, type dword and set the value to 20.
After installing Norton AntiVirus for Windows or IBM AntiVirus 3.01N (build 301.590)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question