[Guide] Solving Media Kit reports not enough space on device for requested operation error!
This is a guide which I decided to make after solving the problem “Media Kit reports not enough space on device for requested operation” on my laptop.
Try to format a partition for installing Mac on your laptop, but it reports the above problem.
Tried Deleting the partition and creating a new one, but the same error.
Tried formatting it in a different format, like exFat, Fat32, but the same error.
Tried reformatting an already created Mac OS Extended Volume(Journaled).
Tried formatting/reformatting/partitioning using Terminal but no success.
Tried formatting using Gparted but no success.
The main cause of this error is because your EFI partition is below 200mb, Mac needs an EFI partition of at least 200mb(as said by RehabMan) to perform any Disk Utility function.
How did this happened?:
For me, this happened because I created partition using Windows, and first installed Windows 8 UEFI, and Windows 8 creates an EFI Partition of 100mb.
The solution is simple, all we have to do is shrink any partition by 200mb or more.
Then, create a new EFI partition, and then add Microsoft Boot files.
What all will work after applying this solution?:
You could format and partition using Disk Utility.
Boot into Windows.
Boot into Mac OS.
Dual Boot both OS. (I am dual booting using Clover).
In the following procedure, I had my windows working, in case,if you can’t boot your windows or have problem related to booting, probably the same solution can be applied, as it creates a new bootloader.
1) The first thing is make a backup of your current EFI Partition, to do so, follow the steps below:
a) Open CMD using Admin rights.
b) Type the following code:
Type the number of your HDD where windows is installed
In my case, the EFI partition was volume 4 , under Label, “EFI” or “SYSTEM” would be named, it is in Fat32 format and around 100mb, select the volume according to what’s shown in your system
Now you can see a new partition with letter Z in your windows explorer, but when you try to open it you will have an error. To solve this error, do the following:
Open Task Manager, Go to Details (In windows 8), select “explorer.exe” and end task.
Then go to File > New Task, and type “explorer.exe” and Check “Create this task with administrative privileges”.
Now you can open the Z partition.
Make a Backup by copying all the files to a drive which can be accessible later. Certain files may show an error while copying, this can be resolve by applying the above procedure from a startup repair disk.
2)Now again Switch back to CMD – Diskpart. Now we have to shrink a partition by 200mb or more, if you already have unallocated space then no need to follow this step, skip it. In my case, I shrink my C: drive by 400 mb. To do so:
Select your C: partition, Volume 1 in my case.
CWindows) Partition will get shrink by 400mb.
3) Now that we have 400mb of unallocated space, all we have to do is create a new EFI Partition.
To do so, type:
I made my efi partition of 400mb, minimum is 200mb to enable Disk Utility to perform functions.
Now you have successfully created a new efi partition.
4) All you have to do now is create bootloader, there are two methods,
i) Either copy the Backup files back into this drive by again selecting this volume and assigning a letter then reopening windows explorer with admin privileges.
ii) Create new bootloader using bootrec command, I recommend doing so using windows repair tool, type the following command:
C: is my windows drive, and I assigned letter V to my newly created EFI partition.
5) That’s it, you have successfully created a new EFI Partition.
6) Now when you will restart, upon boot selection there will be two “Windows Boot Manager” , try booting in with both the Boot Options, if you face any error booting, just boot in windows repair and click “Start-up Repair” or if that does not work then try System Restore.
System Restore worked for me.
7) If everything is good, you could delete the older EFI Partition of 100 mb, by assigning letter then formatting it.
8) Now boot in Mac Installation Disc. TaDa! you can now successfully format your partition.