Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 06-24-2008, 05:23 PM   #1
LQ Newbie
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
cifs mount - cp read Cannot allocate memory


I am having an issue that I hope someone can help with.

I am connecting to a Windows 2003 file server using CIFS. I am in the process of upgrading from RHEL 4.0 to RHEL 5 and installing new harddrives. Before upgrading I backed up all of my data to the file server. Now that I have installed the new drives and RHEL 5 I am unable to restore the data which is in a 200GB tar file (If i knew then what I know now it would have been multiple tar files).

I have mounted the Windows 2003 file server using CIFS. When I copy the tar file it proceeds fine (slowly) but stops after it has copied 25GB. CP stops with the error "cp: reading 'file.tar': Cannot allocate memory". Does anyone have any suggestions as to what might be causing this problem?

Here is a little more information:

1. The data file is 200GB.
2. The copy to the file server using RHEL 4 worked fine (at least as far as I know)
3. My desktop has 8GB of RAM and 20GB swap, so hopefully it is not running out of memory. I have monitored top during the copy and have not any memory errors.
4. I have tried to untar the file directly from the share and that results in a similar error.
5. I tried to use split to copy the file in smaller chunks, but that results in a similar error as well.
6. my mount string is:
"mount -t cifs -o credentials=sambapass,uid=cameron,gid=cameron, //IP/share /home/cameron/share"
7. Neither ifconfig nor ping -f result in dropped packets.
8. As best as I can tell there are no file size quotas on my account.
ulimit -a, file size is unlimited
9. My filesystem is ext3 with a 4KB block size (should support files up to 2 TB, right?)
10. kernel version is 2.6.18-92.1.1.el5
11. My new harddrives are 2TB total, with at least 1.8 TB free on the partition that I am copying to.
12. Using the directio option in the mount string does not fix the problem.

Please let me know if there is any other useful information that might help you understand the problem.

I apologize if this is a replicate of a different thread, I was unable to find something similar when I searched.

Thanks for your help.


Last edited by ccraddock; 06-24-2008 at 05:44 PM. Reason: more information


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mount -cifs giving read only error kiwidesign Linux - Newbie 9 03-20-2014 10:59 PM
Kerberised NFS, mount: Cannot allocate memory athreyavc Linux - Server 4 05-02-2008 01:11 AM
Error inserting CIFS: Cannot allocate memory pazo Linux - General 0 12-18-2007 12:47 PM
cifs read error when accessing a samba mount mathfeel Linux - Networking 0 12-09-2006 03:18 AM
Mandrake 10.0 - trying to mount flash memory read-only rubba19 Linux - Newbie 0 10-18-2004 03:06 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration