PartedUtil failed with the message: Error: Can’t have a partition outside the disk ! – how to resolve?

When I was installing ESXi on bare metal server, i got an error as operation failed “PartedUtil failed with the message: Error: Can’t have a partition outside the disk ! ” as shown below,


When I saw that error, immediately i could able to remember that, I missed to create a partition on the storage device where I am trying install ESXi.

In my case storage device was SD card.

Why do we need to create a partition on SD card? Can’t I install directly (considering during the install stage let the  ESXi creates partition automatically)?

– Actual reason behind is ESXi will not create partitions for “high traffic” (eg: VMFS datastores or Scratch partitions) partition requirements on SD/USB devices, it can create the required partitions for the hypervisor and core dumps only.

So, to resolve this, we have to create a normal MS-DOS partition on the affected disks (in my case its SD card) using partedUtil tool.

Now, where to create the MS-DOS partition? Let’s find out…

first, we need to obtain the disk device names which can be managed by partedUtil, to obtain, run below command in ESXi shell prompt

ls /vmfs/devices/disks/

output shows as below in my case,


And now, how to identify what devices are connected/mapped to these disk device names,

Before verifying that, Let’s check the SD card present in my case which  was 62 GB, and i could able to check it from ESXi installation screen and hardware management console.



Now, let’s verify, to which disk device this SD card (62 GB) is connected to,

run following command which generate a list of LUNs connected to the ESXi hosts, there is a KB article KB1014953 to idetify disk when working with ESXi.

esxcfg-scsidevs -l

above command gives you a list of all the disk device details, to read it easily, you can just read less lines, command as below,

esxcfg-scsidevs -l | less

I got an output as,


From the output above what we can understand is,

SD card 60901 MB connected to hardware is identified as Local USB direct access and it’s disk device path is mentioned below.


we have identified the actual disk device path now, let’s do the MS-DOS partition using partedUtil tool, command mentioned below, reference KB1036609

partedUtil mklabel /vmfs/devices/disks/mpx.vmhba32:C0:T0:L0 msdos

I got an output as,


Problem is fixed, let’s do the ESXi install on SD card again,



Boom !! this time no error 🙂

Key parameter which we have to keep in mind is how to find out disk device names where SD card/USB devices are connected. Use command mentioned below

esxcfg-scsidevs -l

Leave a Reply

Your email address will not be published. Required fields are marked *