View Full Version : [ubuntu] Trying to mount NAS (Caddy + HDD) getting mount error(12): Cannot allocate memory

March 30th, 2010, 07:55 PM

I have a Network Attached Storage device which is a hard drive + caddy. I can access it fine using smb://, I can map a network drive in Windows and I can also mount through gnome. However I want to permanently mount it, I have added this to /etc/fstab

// /media/storage cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=07 77 0 0

All I get after sudo mount -a is

mount error(12): Cannot allocate memory

Driving me a little nuts, is anyone able to help? Most of the past posts focus on a full windows machine being the server but mine is just a caddy + hard drive with a web interface.

Thanks in advance


April 10th, 2010, 04:28 PM

September 6th, 2010, 08:33 AM
This has been annoying me for a while - I finally *really* needed to get this to work (setting up a Firefly media server).

After a bit of searching, I found that you need to add "nounix" to the options:

sudo mount -t smbfs //host/share /mountpoint -o nounix,iocharset=utf8

// /media/storage cifs nounix,guest,rw,iocharset=utf8,file_mode=0777,dir_ mode=07 77 0 0

Original here: