Several users have reported that they cannot format or partition an NTFS drive using DiskUtility on MacOS. Affected users report encountering the following error: »MediaKit reports that there is not enough space on the device for the requested operation«. Most affected users report that the target drive has a lot of free space left, so the source of the problem is elsewhere.
The press kit reports that there is not enough space on the device for the requested operation
What is causing the MediaKit error that there is not enough space on the device for the requested operation?
We investigated this particular issue by looking at various user reports and the repair strategies they used to resolve the error message.. From what we have collected, there are a couple of common scenarios that will trigger this particular error message:
-
Leftover partitions created automatically during a Bootcamp installation: according to various user reports, partitions like these are often responsible for this error, since they cannot be erased in a conventional way (Most of the time).
-
Disk utility cannot reformat the drive from NTFS to APFS: this cannot be done from disk utility, but the terminal (either directly on Mac or using a Linux Live CD) can be used to avoid the problem.
If you are having difficulty finding a way to fix this particular issue, this article will provide you with several troubleshooting strategies. Below are several methods that other users in a similar situation have used to solve the problem.
For best results, Follow the methods listed below in order until you find a solution that is effective in your particular situation.
Method 1: Terminal unit partition
Several users struggling to format the drive have been able to avoid the error »MediaKit reports that there is not enough space on the device for the requested operation» by using the terminal to identify, unmount and partition the drive that is causing the error in Disk Utility.
Note: note that the following procedure cannot be used on a single partition. It will affect the whole unit.
Here is a quick guide on how to partition the drive using the terminal:
-
Click the search icon (Right upper corner) and look for “terminal”. Then double click on Terminal to open the utility.
Open the Terminal app in OsX
-
Start by typing the following command to get the name of the disk you are trying to format:
diskil list
-
In our example, we need to format the disk disks03. To make sure you are aiming at the correct drive, replace disk0s3 disks with correct disk.
-
Now to unmount the disk, type the following command and hit Enter:
diskutil unmountDisk force disk0s3
-
Then, we will have to write zeros to the boot sector to ensure that the procedure will look for a more complex bootloader. To do this, we write the following command and press Enter:
sudo dd if=/dev/zero of=/dev/disk0s3 bs=1024 count=1024
-
Once the zeros have been written to the boot sector, try creating a new partition by typing below command and hitting Enter:
diskutil partitionDisk disk0 GPT JHFS+ "Partition Name" 0g
Note: Replace the partition name with the name you want to give your new partition.
If this method did not allow you to bypass the MediaKit reports that there is not enough space on the device for the requested operation using Terminal to partition the disk, proceed to the next method below.
Method 2: use a Linux Live CD to partition the drive
Several users struggling to solve the same problem have managed to solve it by booting from a Linux Live CD and using the gdisk and GParted utility to create an NTFS partition from the disk's free space..
Later, they used the gdisk utility again to sort the partition table accordingly and enter the recovery and transform menu. From there, managed to create a new hybrid MBR which finally allowed them to complete the partitioning process.
This procedure is frequently used by users trying to install Windows on a drive that also has a partition reserved for OSX. If this procedure applies to what you have in mind, follow the steps below to use a Linux Live CD to partition the drive:
PROFESSIONAL SUGGESTION: If the problem is with your computer or laptop, you should try using Reimage Plus, which can scan repositories and replace damaged and lost files. This works in most cases, when the problem originates due to system corruption. You can download Reimage for By clicking here
-
Boot a Linux Live CD on your Mac as Ubuntu Live CD, Parted Magic of System Rescue CD . A free Linux-based operating system capable of booting via live USB should work.
-
If you are using an Ubuntu Live CD, click Test Ubuntu to load the Live CD version.
Click Try Ubuntu to start the Live CD version
-
Once the Linux Live CD is loaded, open a window at the terminal. You can do this by clicking the Show application icon and searching »terminal» using the search function.
Access Terminal on Linux
-
Inside the Terminal window, type the following command to make sure you are using root privileges:
sudo -i
-
Once you have root privileges, type the following command to start the Gdisk utility on the disk:
gdisk /dev/sda
-
Once the gdisk utility starts, scribe $ 0027 v $ 0027 and hit Enter to check the disk structures. If you see a message that says there are no problems, go to next step.
Verify the integrity of the disk
Note: This is not mandatory, but it is a precautionary diagnostic step that will help us identify any errors that may be contributing to our problem.
-
After verification is complete, exit the Gdisk utility by typing $ 0027 q $ 0027 and pressing Enter.
Exit the gdisk utility
-
Then, start GParted on the same disk by typing the following command in the same Terminal window. You can also start GParted by opening it directly from the menu.
gparted /dev/sda
-
Once the GParted utility opens, create an NTFS partition with your free space, but be sure to leave at least 128 MB of unpartitioned space between it and the OSX partition. Press the Add button to start creating the new partition.
Create a new NTFS partition and hit Add
-
Once the operation has been completed successfully, exit the GParted utility and return to the terminal through step 3. Later, follow the steps 4 Y 5 again to grant root privileges and start the gdisk utility.
All operations were completed successfully
-
Once you return to the gdisk utility, scribe “p” to see your partition table. At this stage, should have three partitions: an EFI system partition (ESP), a Windows partition (NTFS), the one we created earlier, and an OS X partition.
-
If you confirm it, type »r» to enter the Recovery and Transformation menu. Later, scribe $ 0027h $ 0027 and hit Enter to create a new hybrid MBR. Then write »1 2 3»And press Enter to form the three partition numbers.
Setting the three partition numbers
-
Then write “Y” and press Enter (Return) at the EFI GPT prompt (0xEE). When asked if you want to set a boot flag, type »Y» and press Enter (Return) again. Then write “Y” and press Enter (Return) when asked if you want to use free space to protect more partitions. Finally, enter the default MBR hex code (ee) and press Enter (Return) one more time.
Setting the Hybrid MBR Partition Options
-
Once the configuration part is complete, enter the password $ 0027w $ 0027 and hit Enter (Return) to save changes and proceed to final checks. When asked if you want to continue, scribe $ 0027 Y $ 0027 and press Enter (Return) one more time.
The operation has been completed successfully.
Namely, the free space that previously failed with the error »MediaKit reports that there is not enough space on the device for the requested operation» has been partitioned with gdisk and Gparted.
SUGGESTION: If none of the methods have solved your problem, we recommend that you use the Reimage repair tool, which can scan repositories to replace damaged and lost files. This works in most cases, when the problem originates due to a system corruption. Reimage will also optimize your system for maximum performance. You can download Reimage for By clicking here