Usually, Mac operations do not create issues unless there is some unavoidable circumstances do not appear. People who use Mac systems in their daily life routine, might have faced different unknown errors while partitioning or formatting Mac hard drive, external drive or a USB flash media. Here, in this article you will get to know about such errors that you may come across while performing different operation in Mac hard drives using Disk Utility.
For Example, if you are trying to partitionand format various Mac based USB hard drives, and suddenly you have encountered an error message ‘Disk Erase failed with the error: POSIX reports: The operation couldn’t be completed. Cannot allocate memory‘ and your work stopped in mid. Basically such type of problem is not common in all types of disks. These errors are more specific for the USB chipsets and firmware versions or settings in certain drive enclosures. Except this, there could be multiple errors that your Mac system could have been affected by concerning POSIX error. Most of the people think that this error might have resolved by replacing drives, swapping or wiping drives, replacing memory modules, installing OS, etc. and get confused again when the same issue replicates.
Whenever you encounter a POSIX error message while working over Disk Utility, the first thing you should do is to check whether your system boots up or not. If yes, then verify whether it copies and pastes files over System Disk. However, if not, then try to boot up your system from external OS drive and when your internal system drive is mounted, try the same process of coping and pasting again for your internal drive.
In case you are unable to write on disk or disk taking long time to boot, then there is a high possibility that the actual problem is specifically for USB connections such as: the SATA cable or SATA cable assembly in the portables.
Therefore, check USB connections to troubleshoot such issues, specifically those ones, which are connected with drives and change SATA (assembly) cable connections before concluding that the system Drive is failed. Now, check whether they are able to properly format through those connections. If by using another alternative connection, your drive starts working normally and you are able to format it, it means that the problem is with Disk Utility itself. The disk utility is not able to manage specific partition setups over the USB connection.
If your problem is to overcome the default partition scheme or formatting issues over USB connections while using Disk Utility, try to use terminal commands as an alternatives option, where initially you have to format the drive, after that it will become accessible via Disk Utility again.
You have to find out the disk identifier for the attached USB drive before running these commands. In order to do this, run Disk Utility and choose the drive device itself. Now, select the ‘info’ button and note the name of the ‘Disk Identifier’ field.
Enter the ‘diskutil’ command in the Terminal to format the drive. Now, replace the ‘NAME’ with your desired name of the drive, and ‘IDENTIFIER’ with the drive’s ID found in Disk Utility:
diskutil eraseVolume HFS+ NAME IDENTIFIER
This is an alternative command to the “diskutil” command is ‘fdisk’, which is used to create partitions and set up the drive. Like the diskutil command, here also you need to replace the IDENTIFIER portion with the ID found in Disk Utility:
fdisk -a hfs /dev/IDENTIFIER
With the use of these above mentioned commands try to manage the drive again in the Disk Utility.