Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

POSIX reports: The operation couldn’t be completed. Cannot allocate memory

Hi, I've got a HP SimpleSave 2Tb external hard drive that I'm trying to fix for a friend, they said it stopped working so I plugged it in to my iMac and Finder told me I needed to initialize the disk because there were no volumes on it, so I tried everything in Disk Utility, Partitioning, erasing, restoring, all the tricks and nothing worked. Every time I got the same error : "Disk Erase failed with the error: POSIX reports: The operation couldn’t be completed. Cannot allocate memory"
I tried some diskutil and fdisk commands in Terminal and still nothing works.
I was wondering if there's ANYTHING I can do to try and get it back? I don't even need to get the files back just the hard drive itself. Please help if you know anything.

Thanks in advance
Harry

iMac 20", Mac OS X (10.6.6)

Posted on Mar 8, 2011 3:46 AM

Reply
Question marked as Best reply

Posted on Mar 8, 2011 10:18 AM

Probably the partition table is corrupt. When it does this, it becomes difficult to
unmount (actually it gets stuck in a loop trying to mount the file system, to no avail
because the file system is corrupt).

This procedure forces a dismount, but does not eject the drive.
This breaks the loop and allows erasing the partition table:

open terminal.app

note: I wrote these instructions were for a boot volume
with that condition (booting from the install DVD), so the
disk numbers are not going to be accurate.

at the prompt:
diskutil list
(press enter)
that will give you the device name of your drive.
It most likely will be "disk0".

next command:
diskutil unmount force /dev/<disk_name>
example:
diskutil unmount force /dev/disk0

next command:
diskutil zeroDisk /dev/<disk_name>
example:
diskutil zeroDisk /dev/disk0
(press return)

After disk is zeroed, you may resume normal partitioning.
#

Bear in mind, since this is an external disk, the USB/ translation layer
may interfere with accessing the disk directly and foul up the procedure.

Looking at the drive specs, it says it only supports use under windows,
whatever that means. Perhaps it requires a proprietary USB driver or something.
Some folks claim it works on a Mac though.
http://techpatio.com/2010/reviews/hp-simplesave-2tb-usb-launcher-mac-blue-led

The USB interface (inside the unit) might be hosed.
Sales poop says it has a two year warranty. If still in warranty, send it back.

Kj
36 replies

Jan 14, 2012 5:31 AM in response to KJK555

I have a similar issue which my external drives. I have 2, 2TB drives that I've connected, was able to format disk2, but disk 1 doesn't have any partitions as seen in the screenshot and i get the Cannot allocate memory error mentioned in the previous post. Any ideas? It shows up in disk utility which makes me think the drive works, but then can't format it



In disk utility, my external drive shows up as disk1 (which makes me think the drive works), however when i try to format it, im getting the above mentiond error stating it cannot allocate memory. I tried formatting and zeroing out form terminal with no success as I get the same error as above. I was able to format disk2 which is the same exact hard drive, but disk 1 doesn't have any partitions as seen in the terminal screenshot. Any ideas?


User uploaded file

Feb 13, 2013 6:14 PM in response to CitizenX

@CitizenX, you were able to pop the drive back in the Mac and get it work after formatting it? Could it be that the cable issue was a connectivity one that was resolved from unplugging/plugging? For me, I tried removing the drive, formatting it (which worked), and put it back in the laptop: still didn't work. Nor did the new hard drive I purchased to use. Brought it to the Genius Bar, they diagnosed it within 10 minutes or less, swapped the cable out, and I was good to go. Bad cable!

Feb 13, 2013 6:25 PM in response to devingabriel

It worked fine as a Windows formatted volume. I used that as my "is the drive good" and "is the USB port" good check.


My eventual resolution was to format it connected with the firewire cable. It formatted with no problem when connected in that manner. I then put it back into my USB enclosure and it is working to this day.


It may be a cable problem. Perhaps the cable didn't have a drive select line cut or it did have the drive select cut but should also apply the the firewire interface.

Feb 23, 2014 10:10 AM in response to HJATKINS

I have the error "POSIX reports: The operation couldn’t be completed. Cannot allocate memory" when trying to partition an internal MBP 13" Mid-2010 on Snow Leopard OS. And I receive a different error if I try to partition the drive using the Lion install disc. It was something like "error: wiping volume data to prevent future accidental probing failed".


If you have these errors I'm fairly certain it's the Hard Drive cable that needs replaced. It worked for me, but you might want to try simply disconnecting the cable from the motherboard and reconnecting it (gently pull the cable and do not use any metal tools near the motherboard).


For more detail, I installed a second hard drive in my MBP when I first got it and I can dual boot Snow Leopard from my original hard drive and Lion from and solid state drive I installed. The Lion disk is where my original hard drive was and I moved the original hard drive into a little caddy that fits where the optical drive was (and I put the optical drive into an external USB enclosure so I can still use it). I had an issue on my Lion disk after 3 years where every open app was throwing crazy errors. I recycled the power and it hung on the gray apple screen with a spinning bar underneath and would never boot into Lion again. I messed around with a whole bunch of stuff I found online, but ultimately it was the hard drive ribbon. Oh, also I wanted to mention my battery is getting very old and can't hold a charge which I thought may have played a factor so I swapped my battery too while I was in there swapping the hard drive cable. Good luck to anyone that finds this!

Mar 31, 2014 1:23 AM in response to CitizenX

Hi there,

It's 2014 and this thread is still relevant. I have been trying to erase a 60gig drive in my external enclosure and getting the "POSIX reports: The operation couldn’t be completed. Cannot allocate memory" problem as well. After trying everything here, including the Terminal commands, the bad cable suggestions jogged my memory - I remembered that my enclosure has Firewire ports as well as USB. I hunted around for the right firewire cable and adaptor, and PROBLEM SOLVED. I had previously swapped several USB cables to make sure i had a good one.

POSIX reports: The operation couldn’t be completed. Cannot allocate memory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.